diff --git a/datahub/package_version.txt b/datahub/package_version.txt index 3eefcb9..7dea76e 100644 --- a/datahub/package_version.txt +++ b/datahub/package_version.txt @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/setup.py b/setup.py index 2776f5b..9314263 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,13 @@ PACKAGE_PREFIX = "psi-" PACKAGE_NAME = "datahub" +VERSION_FILE = "package_version.txt" def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def version(): - p = pathlib.Path(__file__).parent.joinpath(PACKAGE_NAME).joinpath("package_version.txt") + p = pathlib.Path(__file__).parent.joinpath(PACKAGE_NAME).joinpath(VERSION_FILE) with open(p, "r") as f1: return f1.read()[:-1] @@ -27,13 +28,19 @@ def version(): long_description=read('Readme.md'), long_description_content_type="text/markdown", install_requires=[ + "numpy", + "requests", + "h5py", ], entry_points={ 'console_scripts': [ f'{PACKAGE_NAME} = {PACKAGE_NAME}.main:main', ], }, - data_files=[ - (f"{PACKAGE_NAME}", [f"{PACKAGE_NAME}/package_version.txt"]) - ] + # Include the non-code file (package_version.txt) in the package folder + include_package_data=True, + package_data={ + # Include the text file in the package directory + PACKAGE_NAME: [VERSION_FILE], + }, ) \ No newline at end of file