PyKubeGrader 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {PyKubeGrader-0.0.7.dist-info → PyKubeGrader-0.0.9.dist-info}/METADATA +13 -6
- {PyKubeGrader-0.0.7.dist-info → PyKubeGrader-0.0.9.dist-info}/RECORD +9 -8
- pykubegrader/__init__.py +1 -7
- pykubegrader/initialize.py +18 -0
- pykubegrader/mc_widget.py +1 -1
- pykubegrader/select_base.py +4 -1
- {PyKubeGrader-0.0.7.dist-info → PyKubeGrader-0.0.9.dist-info}/LICENSE.txt +0 -0
- {PyKubeGrader-0.0.7.dist-info → PyKubeGrader-0.0.9.dist-info}/WHEEL +0 -0
- {PyKubeGrader-0.0.7.dist-info → PyKubeGrader-0.0.9.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: PyKubeGrader
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.9
|
4
4
|
Summary: Add a short description here!
|
5
5
|
Home-page: https://github.com/pyscaffold/pyscaffold/
|
6
6
|
Author: jagar2
|
@@ -13,11 +13,18 @@ Classifier: Programming Language :: Python
|
|
13
13
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
14
14
|
License-File: LICENSE.txt
|
15
15
|
Requires-Dist: importlib-metadata; python_version < "3.8"
|
16
|
-
Requires-Dist: ipython
|
17
|
-
Requires-Dist:
|
18
|
-
Requires-Dist:
|
19
|
-
Requires-Dist:
|
20
|
-
Requires-Dist:
|
16
|
+
Requires-Dist: ipython
|
17
|
+
Requires-Dist: mypy
|
18
|
+
Requires-Dist: numpy
|
19
|
+
Requires-Dist: panel
|
20
|
+
Requires-Dist: pynacl
|
21
|
+
Requires-Dist: pytest
|
22
|
+
Requires-Dist: requests
|
23
|
+
Requires-Dist: ruff
|
24
|
+
Requires-Dist: setuptools
|
25
|
+
Requires-Dist: sphinx
|
26
|
+
Requires-Dist: types-requests
|
27
|
+
Requires-Dist: types-setuptools
|
21
28
|
Provides-Extra: testing
|
22
29
|
Requires-Dist: setuptools; extra == "testing"
|
23
30
|
Requires-Dist: pytest; extra == "testing"
|
@@ -1,17 +1,18 @@
|
|
1
|
-
pykubegrader/__init__.py,sha256=
|
1
|
+
pykubegrader/__init__.py,sha256=L_TI3XcAgChNAmXaeDyMEdtgIclVl5czyC2f8Vhg_oE,355
|
2
2
|
pykubegrader/info_widget.py,sha256=x73heTqmqJQ9XkaE3eW4eLXTGJlmmTdGEkGtbIcY7uY,3532
|
3
|
-
pykubegrader/
|
3
|
+
pykubegrader/initialize.py,sha256=-s2hR8254hPz2-vKvlhHMDuNMBOZCqxxNdUpduBhYJs,444
|
4
|
+
pykubegrader/mc_widget.py,sha256=_qmJ4ZvU-KXamS726LqnCgecRg29hDd7w5WOerkLvuA,2022
|
4
5
|
pykubegrader/misc.py,sha256=dKw6SyRYU3DWRgD3xER7wq-C9e1daWPkqr901LpcwiQ,642
|
5
6
|
pykubegrader/multi_select_base.py,sha256=GJQ-xFJTErar94cFwTxsSmLKPPmywJRUQELhAbv-uFs,3102
|
6
7
|
pykubegrader/reading_base.py,sha256=vSoyThl2vFbnbgB_LDc-DDRPWCM2xGbazEptDjNn4uA,5311
|
7
8
|
pykubegrader/reading_widget.py,sha256=e8lXSzGI9dHCxW7fIvwJUU6j8qWQgHnKR06ke2W1k7w,3022
|
8
|
-
pykubegrader/select_base.py,sha256=
|
9
|
+
pykubegrader/select_base.py,sha256=90EnUPoNhJphkH1HXXxEgSmJDBrTWOqLNDha3DaZpGM,2178
|
9
10
|
pykubegrader/select_many_widget.py,sha256=Rmb9Es42qzSdPfhU6ypcKnw_30PwuARX2UKVwgwbQhg,3772
|
10
11
|
pykubegrader/telemetry.py,sha256=3GhItJ9dw18XcFutfQEk4z-DllCVtKXCKKLesf_jxzQ,3194
|
11
12
|
pykubegrader/types_widget.py,sha256=FOrnR2x1eNM-pcFNIC8JnQdylgSUSUzuACmiIRuFTbQ,2244
|
12
13
|
pykubegrader/validate.py,sha256=guEj0yeu9A_-Ig6S8diOfaNEWxud3k7t4tI-i4Steak,10585
|
13
|
-
PyKubeGrader-0.0.
|
14
|
-
PyKubeGrader-0.0.
|
15
|
-
PyKubeGrader-0.0.
|
16
|
-
PyKubeGrader-0.0.
|
17
|
-
PyKubeGrader-0.0.
|
14
|
+
PyKubeGrader-0.0.9.dist-info/LICENSE.txt,sha256=YTp-Ewc8Kems8PJEE27KnBPFnZSxoWvSg7nnknzPyYw,1546
|
15
|
+
PyKubeGrader-0.0.9.dist-info/METADATA,sha256=YifwDx2WiOdMXZTYNtSIIjEBi5AAsqUSdzOdM7szOaY,2640
|
16
|
+
PyKubeGrader-0.0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
17
|
+
PyKubeGrader-0.0.9.dist-info/top_level.txt,sha256=e550Klfze6higFxER1V62fnGOcIgiKRbsrl9CC4UdtQ,13
|
18
|
+
PyKubeGrader-0.0.9.dist-info/RECORD,,
|
pykubegrader/__init__.py
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
if sys.version_info[:2] >= (3, 8):
|
4
|
-
# TODO: Import directly (no need for conditional) when `python_requires = >= 3.8`
|
5
|
-
from importlib.metadata import PackageNotFoundError, version # pragma: no cover
|
6
|
-
else:
|
7
|
-
from importlib_metadata import PackageNotFoundError, version # pragma: no cover
|
1
|
+
from importlib.metadata import PackageNotFoundError, version # pragma: no cover
|
8
2
|
|
9
3
|
try:
|
10
4
|
# Change here if project is renamed and does not equal the package name
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import panel as pn
|
2
|
+
from IPython import get_ipython
|
3
|
+
|
4
|
+
from .telemetry import telemetry
|
5
|
+
|
6
|
+
# Check if in a Jupyter environment
|
7
|
+
ipython = get_ipython()
|
8
|
+
|
9
|
+
if ipython is not None:
|
10
|
+
# Initialize Panel extension
|
11
|
+
pn.extension()
|
12
|
+
|
13
|
+
# Register telemetry with pre_run_cell event
|
14
|
+
ipython.events.register("pre_run_cell", telemetry)
|
15
|
+
|
16
|
+
print("Setup completed successfully")
|
17
|
+
else:
|
18
|
+
print("Setup unsuccessful. Are you in a Jupyter environment?")
|
pykubegrader/mc_widget.py
CHANGED
pykubegrader/select_base.py
CHANGED
@@ -49,7 +49,10 @@ class SelectQuestion:
|
|
49
49
|
|
50
50
|
self.layout = pn.Column(
|
51
51
|
f"# Question {self.question_number}: {title}",
|
52
|
-
*(
|
52
|
+
*(
|
53
|
+
pn.Column(desc_widget, pn.Row(dropdown))
|
54
|
+
for desc_widget, dropdown in widget_pairs
|
55
|
+
),
|
53
56
|
self.submit_button,
|
54
57
|
)
|
55
58
|
|
File without changes
|
File without changes
|
File without changes
|