File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed
src/superannotate_schemas/bin Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
1010 runs-on : ubuntu-18.04
1111 steps :
1212 - uses : actions/checkout@master
13- - name : Set up Python 3.9
13+ - name : Set up Python
1414 uses : actions/setup-python@v1
1515 with :
16- python-version : 3.9
16+ python-version : " 3.7 "
1717 - name : Install pypa/build
1818 run : >-
1919 python -m
2828 --wheel
2929 --outdir dist/
3030 .
31- - name : Publish distribution 📦 to Test PyPI
32- uses : pypa/gh-action-pypi-publish@master
33- with :
34- password : ${{ secrets.test_pypi_password }}
35- repository_url : https://test.pypi.org/legacy/
3631 - name : Publish distribution 📦 to PyPI
3732 if : startsWith(github.ref, 'refs/tags')
3833 uses : pypa/gh-action-pypi-publish@master
3934 with :
40- password : ${{ secrets.pypi_password }}
35+ password : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change 1- from setuptools import setup
21from pathlib import Path
2+ from setuptools import find_packages , setup
33
44this_directory = Path (__file__ ).parent
55long_description = (this_directory / "README.md" ).read_text ()
1111 long_description_content_type = 'text/markdown' ,
1212 version = '1.0.0' ,
1313 package_dir = {"" : "src" },
14+ packages = find_packages (where = "src" ),
1415 description = 'SuperAnnotate JSON Schemas' ,
1516 author = 'Vaghinak Basentsyan' ,
1617 author_email = 'vaghinak@superannotate.con' ,
1718 url = 'https://www.superannotate.com/' ,
1819 license = 'MIT' ,
1920 description_file = "README.md" ,
2021 entry_points = {
21- 'console_scripts' : ['superannotate_schemas = bin.app:main' ]
22+ 'console_scripts' : ['superannotate_schemas = superannotate_schemas. bin.app:main' ]
2223 },
2324 )
Original file line number Diff line number Diff line change 11import fire
22
3- from bin .interface import CLIInterface
3+ from superannotate_schemas . bin .interface import CLIInterface
44
55
66def main ():
Original file line number Diff line number Diff line change 33import errno
44from pathlib import Path
55
6- from schemas .external import PixelAnnotation as ExternalPixelAnnotation
7- from schemas .external import VectorAnnotation as ExternalVectorAnnotation
6+ from superannotate_schemas . schemas .external import PixelAnnotation as ExternalPixelAnnotation
7+ from superannotate_schemas . schemas .external import VectorAnnotation as ExternalVectorAnnotation
88from superannotate_schemas .schemas .external import VideoAnnotation as ExternalVideoAnnotation
99from superannotate_schemas .schemas .external import DocumentAnnotation as ExternalDocumentAnnotation
1010
1414from superannotate_schemas .schemas .internal import DocumentAnnotation as InternalDocumentAnnotation
1515from superannotate_schemas .exceptions import InvalidInput
1616
17- from src import __version__
17+ from superannotate_schemas import __version__
1818from superannotate_schemas .utils import uniquify
1919from superannotate_schemas .validators import AnnotationValidators
2020
You can’t perform that action at this time.
0 commit comments