|
6 | 6 | this_directory = Path(__file__).parent |
7 | 7 | long_description = (this_directory / "README.md").read_text() |
8 | 8 |
|
| 9 | + |
9 | 10 | def get_version(): |
10 | 11 | init = open(os.path.join(this_directory, 'src', 'superannotate_schemas', '__init__.py')).read() |
11 | 12 | match = re.search(r'^__version__ = [\'"]([^\'"]+)[\'"]', init, re.M) |
12 | 13 | if not match: |
13 | 14 | raise RuntimeError('Unable to find version string.') |
14 | 15 | return match.group(1) |
15 | 16 |
|
| 17 | + |
| 18 | +requirements = [] |
| 19 | + |
| 20 | +with open("requirements.txt") as f: |
| 21 | + requirements.extend(f.read().splitlines()) |
| 22 | + |
16 | 23 | setup( |
17 | 24 | name='superannotate_schemas', |
18 | 25 | long_description=long_description, |
19 | 26 | long_description_content_type='text/markdown', |
20 | 27 | version=get_version(), |
21 | 28 | package_dir={"": "src"}, |
22 | 29 | packages=find_packages(where="src"), |
| 30 | + install_requires=requirements, |
23 | 31 | description='SuperAnnotate JSON Schemas', |
24 | 32 | author='Vaghinak Basentsyan', |
25 | 33 | author_email='vaghinak@superannotate.con', |
26 | 34 | url='https://www.superannotate.com/', |
27 | 35 | license='MIT', |
28 | 36 | description_file="README.md", |
29 | 37 | entry_points={ |
30 | | - 'console_scripts': ['superannotate_schemas = superannotate_schemas.bin.app:main'] |
31 | | - }, |
32 | | - ) |
| 38 | + 'console_scripts': ['superannotate_schemas = superannotate_schemas.bin.app:main'] |
| 39 | + }, |
| 40 | +) |
0 commit comments