diff --git a/MANIFEST.in b/MANIFEST.in index 7939230..5524af8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,5 +3,6 @@ recursive-include src *.py include CHANGELOG include LICENSE include README.md +include VERSION global-exclude *.py[cod] __pycache__ diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8b0beab --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +20.11.0 diff --git a/setup.py b/setup.py index 4153cf0..dd920c1 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,15 @@ from setuptools import setup, find_packages -with open("README.md", "r") as fh: - long_description = fh.read() +with open("VERSION", "r") as f: + version = f.read().strip() + +with open("README.md", "r") as f: + long_description = f.read() setup( name="isoduration", - version="20.11.0", + version=version, author="Víctor Muñoz", author_email="victorm@marshland.es", description="Operations with ISO 8601 durations",