pythonlings 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pythonlings/cli.py CHANGED
@@ -3,9 +3,13 @@ from __future__ import annotations
3
3
 
4
4
  import argparse
5
5
  import sys
6
+ from importlib.metadata import PackageNotFoundError, version as _package_version
6
7
  from pathlib import Path
7
8
 
8
- __version__ = "0.3.0"
9
+ try:
10
+ __version__ = _package_version("pythonlings")
11
+ except PackageNotFoundError: # running from a source checkout without an install
12
+ __version__ = "0.0.0+unknown"
9
13
 
10
14
 
11
15
  def _build_parser() -> argparse.ArgumentParser:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonlings
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Python learnings, Rustlings-style, in a terminal TUI.
5
5
  Project-URL: Homepage, https://github.com/abhiksark/pythonlings
6
6
  Project-URL: Repository, https://github.com/abhiksark/pythonlings
@@ -62,7 +62,7 @@ cd learn-python && uvx pythonlings
62
62
  How it works: **edit** the broken exercise in the built-in editor → checks
63
63
  rerun as you type and advance you to the next one. That's the whole loop.
64
64
 
65
- Status: `v0.3.0`, alpha — published on PyPI as `pythonlings`.
65
+ Status: `v0.3.1`, alpha — published on PyPI as `pythonlings`.
66
66
 
67
67
  ![Coding screen](docs/assets/screenshots/coding-screen.png)
68
68
 
@@ -1,7 +1,7 @@
1
1
  pythonlings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pythonlings/__main__.py,sha256=uSvclvHiv4C9zXiw2cdtV_56ba4i6VeKB0wyCd06k-s,90
3
3
  pythonlings/app.py,sha256=aaj3CtSP08_fN8d7OZxHccC8A1TQOcqZkE5BGncQmmg,2605
4
- pythonlings/cli.py,sha256=MglnM8VZgVWl8XRCswbLijBbg6S23f_Frn-Z4h0gj34,10608
4
+ pythonlings/cli.py,sha256=UtsMFibL5_ZwTRW6e9ZYT9hXv4yG9w3m_5CCSjCg7wU,10838
5
5
  pythonlings/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  pythonlings/core/curriculum.py,sha256=VM4Z854vY-Udq511-7DHv1scPgvji0wTQnJkItmOMvQ,3449
7
7
  pythonlings/core/docs.py,sha256=caRAYtu-bYd7qetL9ZfgBOVcFRR0SyI0hfXPP5_VDtQ,1892
@@ -935,8 +935,8 @@ pythonlings/curriculum/solutions/variables6.py,sha256=7UIUOJNTTWft93V4pDFNZlriym
935
935
  pythonlings/curriculum/solutions/variables7.py,sha256=7UIUOJNTTWft93V4pDFNZlriymc-fjEhdWotp8wxIWo,64
936
936
  pythonlings/curriculum/solutions/variables8.py,sha256=7UIUOJNTTWft93V4pDFNZlriymc-fjEhdWotp8wxIWo,64
937
937
  pythonlings/curriculum/solutions/variables9.py,sha256=7UIUOJNTTWft93V4pDFNZlriymc-fjEhdWotp8wxIWo,64
938
- pythonlings-0.3.0.dist-info/METADATA,sha256=K7lJWJl4knMSDj4A4GhPLYMkqU4VWHHy_srQGhQuLus,9542
939
- pythonlings-0.3.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
940
- pythonlings-0.3.0.dist-info/entry_points.txt,sha256=x3HLcXJL_k5cqbwij4PL_Rr-q_BsBbm2ofJHMpeFbr8,53
941
- pythonlings-0.3.0.dist-info/licenses/LICENSE,sha256=FV2UAm_ETO065zJVIcDAWp2kWCShPts33fXrNASIMXs,1069
942
- pythonlings-0.3.0.dist-info/RECORD,,
938
+ pythonlings-0.3.1.dist-info/METADATA,sha256=-4kMLeSYt69qsvsjOsRRg1KiCqDv1a_LOq4H_mPBVto,9542
939
+ pythonlings-0.3.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
940
+ pythonlings-0.3.1.dist-info/entry_points.txt,sha256=x3HLcXJL_k5cqbwij4PL_Rr-q_BsBbm2ofJHMpeFbr8,53
941
+ pythonlings-0.3.1.dist-info/licenses/LICENSE,sha256=FV2UAm_ETO065zJVIcDAWp2kWCShPts33fXrNASIMXs,1069
942
+ pythonlings-0.3.1.dist-info/RECORD,,