PK!êN5÷uupep440/__init__.py """ A simple Package that expose utils to check wether versions number match pep440. https://www.python.org/dev/peps/pep-0440/ Example >>> from pep440 import is_valid >>> is_valid('4.1.0') True >>> is_valid('4.2.1.beta2') # 4.2.1b2 is correct False """ __version__ = '0.0.1' import re pep440re = re.compile('^([1-9]\d*!)?' # [N!] '([1-9]\d*)' # N '(.[1-9]\d*)*' # (.N)* '((a|b|rc)[0-9]\d*)?' # [{a|b|rc}N] '(\.post[1-9]\d*)?' # [.postN] '(\.dev[1-9]\d*)?$' # [.devN] ) def is_valid(version): return pep440re.match(version) is not None def assert_valid(version): if not is_valid(version): raise ValueError("Versions String does apparently not match Pep 440 specification") PK!²Šþv[[pep440-0.0.1.dist-info/METADATAMetadata-Version: 1.2 Name: pep440 Version: 0.0.1 Summary: A simple Package that expose utils to check wether versions number match pep440. Home-page: https://github.com/Carreau/pep440 License: UNKNOWN Author: Matthias Bussonnier Author-email: bussonniermatthias@gmail.com Requires-Python: >=3.4 Classifier: License :: OSI Approved :: MIT License PK!߀øSSpep440-0.0.1.dist-info/RECORDpep440/__init__.py,sha256=b56bcb7fec0e6c7f4d8a4a9c70035f95a9a7c28c583316a29e150598134afe4a,885 pep440-0.0.1.dist-info/METADATA,sha256=98f88ccf85e5e47f74006dc82de39a459e259e7fcc3967ad9a337f7f55a9bd23,347 pep440-0.0.1.dist-info/WHEEL,sha256=afed90218420a32eca7af14424f4f7c3283795343ca16e7b68f828fb4b93738c,81 pep440-0.0.1.dist-info/RECORD,, PK!ø÷‡ïQQpep440-0.0.1.dist-info/WHEELWheel-Version: 1.0 Generator: flit 0.7.2 Root-Is-Purelib: true Tag: py3-none-any PK!êN5÷uupep440/__init__.pyPK!²Šþv[[¥pep440-0.0.1.dist-info/METADATAPK!߀øSS=pep440-0.0.1.dist-info/RECORDPK!ø÷‡ïQQËpep440-0.0.1.dist-info/WHEELPK"V