diff --git a/setup.py b/setup.py index 560a505..bde0e15 100644 --- a/setup.py +++ b/setup.py @@ -26,13 +26,11 @@ long_description = (here / "README.md").read_text(encoding="utf-8") # Load the package's version.py module as a dictionary. -about = {} -with open(os.path.join(here, "version.py")) as f: - exec(f.read(), about) +from version import __version__ setup( name=NAME, - version=about["__version__"], + version=__version__, author=AUTHOR, author_email=EMAIL, description=DESCRIPTION,