Skip to content

Commit bd183a2

Browse files
committed
Update release.yml
1 parent 14308f4 commit bd183a2

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Publish distribution 📦 to Test PyPI
3232
uses: pypa/gh-action-pypi-publish@master
3333
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}
34+
password: ${{ secrets.test_pypi_password }}
3535
repository_url: https://test.pypi.org/legacy/
3636
- name: Publish distribution 📦 to PyPI
3737
if: startsWith(github.ref, 'refs/tags')

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
## Annotation Json Schemas
22
* [General info](#general-info)
3-
* [Technologies](#technologies)
43
* [Setup](#setup)
54

65
## General info
76
This project is SuperAnnotate annotations JSON schema generator.
87

9-
## Technologies
10-
Project is created with:
11-
* Python 3.6 +
12-
* Pydantic: 1.8 +
13-
14-
158
## Setup
16-
To run this projectnpm:
9+
```
10+
$ pip install superannotate_schemas
11+
$ superannotate_schemas generate_schemas {path}
12+
```
1713

14+
## Example
15+
```
16+
$ superannotate_schema validate <annotation_path>
17+
$ superannotate_schema validate <annotation_path>, <annotation_path>
1818
```
19-
$ cd ../JsonSchemas
20-
$ pip install -r requirements.txt
21-
$ python main.py generate_schemas {path}
22-
```
19+
- To print validation report set --verbose True
20+
- To store reports in the file set --report-path

setup.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
from setuptools import setup
2-
from setuptools import find_packages
2+
from pathlib import Path
3+
4+
this_directory = Path(__file__).parent
5+
long_description = (this_directory / "README.md").read_text()
6+
37

48
setup(
59
name='superannotate_schemas',
6-
version='0.0.1',
7-
packages=find_packages('src'),
10+
long_description=long_description,
11+
long_description_content_type='text/markdown',
12+
version='1.0',
813
package_dir={"": "src"},
914
description='SuperAnnotate JSON Schemas',
1015
author='Vaghinak Basentsyan',
@@ -13,7 +18,6 @@
1318
license='MIT',
1419
description_file="README.md",
1520
entry_points={
16-
'console_scripts': ['superannotate_schemas = superannotate_schemas.bin.app:main']
17-
},
18-
python_requires='>=3.6'
19-
)
21+
'console_scripts': ['superannotate_schemas = bin.app:main']
22+
},
23+
)

0 commit comments

Comments
 (0)