Skip to content

Commit c4189d6

Browse files
davitavagyanVaghinakDev
authored andcommitted
Update release.yml
1 parent a85cc09 commit c4189d6

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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
@@ -28,13 +28,8 @@ jobs:
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 }}

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from setuptools import setup
21
from pathlib import Path
2+
from setuptools import find_packages, setup
33

44
this_directory = Path(__file__).parent
55
long_description = (this_directory / "README.md").read_text()
@@ -11,13 +11,14 @@
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
)

src/superannotate_schemas/bin/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fire
22

3-
from bin.interface import CLIInterface
3+
from superannotate_schemas.bin.interface import CLIInterface
44

55

66
def main():

src/superannotate_schemas/bin/interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import errno
44
from 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
88
from superannotate_schemas.schemas.external import VideoAnnotation as ExternalVideoAnnotation
99
from superannotate_schemas.schemas.external import DocumentAnnotation as ExternalDocumentAnnotation
1010

@@ -14,7 +14,7 @@
1414
from superannotate_schemas.schemas.internal import DocumentAnnotation as InternalDocumentAnnotation
1515
from superannotate_schemas.exceptions import InvalidInput
1616

17-
from src import __version__
17+
from superannotate_schemas import __version__
1818
from superannotate_schemas.utils import uniquify
1919
from superannotate_schemas.validators import AnnotationValidators
2020

0 commit comments

Comments
 (0)