Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,35 @@
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)
if not match:
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,
long_description_content_type='text/markdown',
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',
url='https://www.superannotate.com/',
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']
},
)
2 changes: 1 addition & 1 deletion src/superannotate_schemas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
except ImportError: # for Python<3.8
import importlib_metadata as metadata

__version__ = '1.0.46b1'
__version__ = '1.0.48'