Skip to content

Commit 5700acb

Browse files
authored
Merge pull request #25 from mts-ai/upgrade-build-system-to-hatch
Upgrade build system to hatch
2 parents 736582d + 8db8add commit 5700acb

File tree

6 files changed

+611
-92
lines changed

6 files changed

+611
-92
lines changed

.github/workflows/python-publish.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,27 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
deploy:
19+
pypi-publish:
2020

2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
25-
- name: Set up Python
24+
- name: Set up Python 🐍
2625
uses: actions/setup-python@v3
2726
with:
2827
python-version: '3.x'
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
pip install setuptools wheel twine
33-
- name: Build and publish
34-
env:
35-
TWINE_USERNAME: __token__
36-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
37-
run: |
38-
python setup.py sdist bdist_wheel
39-
twine upload dist/*
28+
29+
- name: Install Hatch 🐣
30+
run: pip install --upgrade pip "hatch==1.7.0"
31+
32+
- name: Build 🔨
33+
run: hatch build
34+
35+
- name: Publish package 🚀
36+
uses: pypa/gh-action-pypi-publish@v1.8.6
37+
with:
38+
repository-url: https://pypi.org/project/FastAPI-JSONAPI/
39+
password: ${{ secrets.PYPI_PASSWORD }}
40+
41+
# fail loudly on duplicates
42+
# skip-existing: true

fastapi_jsonapi/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from fastapi_jsonapi.exceptions import BadRequest
77
from fastapi_jsonapi.querystring import QueryStringManager
88

9+
__version__ = "1.0.1"
10+
911
__all__ = [
1012
"BadRequest",
1113
"SqlalchemyEngine",

0 commit comments

Comments
 (0)