diff --git a/setup.py b/setup.py index b1f1fc4..2386d4b 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() + def get_version(): init = open(os.path.join(this_directory, 'src', 'superannotate_schemas', '__init__.py')).read() match = re.search(r'^__version__ = [\'"]([^\'"]+)[\'"]', init, re.M) @@ -13,6 +14,12 @@ def get_version(): raise RuntimeError('Unable to find version string.') return match.group(1) + +requirements = [] + +with open("requirements.txt") as f: + requirements.extend(f.read().splitlines()) + setup( name='superannotate_schemas', long_description=long_description, @@ -20,6 +27,7 @@ def get_version(): version=get_version(), package_dir={"": "src"}, packages=find_packages(where="src"), + install_requires=requirements, description='SuperAnnotate JSON Schemas', author='Vaghinak Basentsyan', author_email='vaghinak@superannotate.con', @@ -27,6 +35,6 @@ def get_version(): license='MIT', description_file="README.md", entry_points={ - 'console_scripts': ['superannotate_schemas = superannotate_schemas.bin.app:main'] - }, - ) + 'console_scripts': ['superannotate_schemas = superannotate_schemas.bin.app:main'] + }, +) diff --git a/src/superannotate_schemas/__init__.py b/src/superannotate_schemas/__init__.py index ca57d34..1074464 100644 --- a/src/superannotate_schemas/__init__.py +++ b/src/superannotate_schemas/__init__.py @@ -33,4 +33,4 @@ except ImportError: # for Python<3.8 import importlib_metadata as metadata -__version__ = '1.0.46b1' +__version__ = '1.0.48'