Skip to content

Commit d9e8091

Browse files
authored
Merge pull request #23 from superannotateai/update_setup_py
update setup install_requires conf
2 parents 04c5cc4 + 125e72a commit d9e8091

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

setup.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,35 @@
66
this_directory = Path(__file__).parent
77
long_description = (this_directory / "README.md").read_text()
88

9+
910
def get_version():
1011
init = open(os.path.join(this_directory, 'src', 'superannotate_schemas', '__init__.py')).read()
1112
match = re.search(r'^__version__ = [\'"]([^\'"]+)[\'"]', init, re.M)
1213
if not match:
1314
raise RuntimeError('Unable to find version string.')
1415
return match.group(1)
1516

17+
18+
requirements = []
19+
20+
with open("requirements.txt") as f:
21+
requirements.extend(f.read().splitlines())
22+
1623
setup(
1724
name='superannotate_schemas',
1825
long_description=long_description,
1926
long_description_content_type='text/markdown',
2027
version=get_version(),
2128
package_dir={"": "src"},
2229
packages=find_packages(where="src"),
30+
install_requires=requirements,
2331
description='SuperAnnotate JSON Schemas',
2432
author='Vaghinak Basentsyan',
2533
author_email='vaghinak@superannotate.con',
2634
url='https://www.superannotate.com/',
2735
license='MIT',
2836
description_file="README.md",
2937
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+
)

src/superannotate_schemas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
except ImportError: # for Python<3.8
3434
import importlib_metadata as metadata
3535

36-
__version__ = '1.0.46b1'
36+
__version__ = '1.0.48'

0 commit comments

Comments
 (0)