diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/VERSION b/VERSION deleted file mode 100644 index 9084fa2..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.1.0 diff --git a/mdrsclient/VERSION b/mdrsclient/VERSION new file mode 100644 index 0000000..524cb55 --- /dev/null +++ b/mdrsclient/VERSION @@ -0,0 +1 @@ +1.1.1 diff --git a/mdrsclient/__version__.py b/mdrsclient/__version__.py index 925a68c..6036a39 100644 --- a/mdrsclient/__version__.py +++ b/mdrsclient/__version__.py @@ -1,8 +1,8 @@ import os here = os.path.realpath(os.path.dirname(__file__)) -__all__ = ["__version__"] - -with open(os.path.join(os.path.dirname(here), "VERSION")) as version_file: +with open(os.path.join(here, "VERSION")) as version_file: __version__ = version_file.read().strip() + +__all__ = ["__version__"] diff --git a/setup.py b/setup.py index 4e144cd..becc950 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,9 @@ from typing import Final from setuptools import find_packages, setup -BASE_DIR: Final[str] = os.path.abspath(os.path.dirname(__file__)) +from mdrsclient import __version__ -with open(os.path.join(BASE_DIR, "VERSION")) as f: - __version__ = f.read().strip() +BASE_DIR: Final[str] = os.path.realpath(os.path.dirname(__file__)) with open(os.path.join(BASE_DIR, "requirements.txt")) as f: __requirements__ = f.read().splitlines() @@ -34,12 +33,7 @@ setup( packages=find_packages(), include_package_data=True, package_data={ - "": [ - os.path.join(BASE_DIR, "README.md"), - os.path.join(BASE_DIR, "LICENSE"), - os.path.join(BASE_DIR, "VERSION"), - os.path.join(BASE_DIR, "requirements.txt"), - ] + "mdrsclient": ["VERSION"], }, install_requires=__requirements__, entry_points={"console_scripts": ["mdrs=mdrsclient.__main__:main"]},