-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8397c37
commit c4ad74e
Showing
3 changed files
with
207 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish Package to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' # Matches tags like v1.0.0 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
- name: Build package | ||
run: python -m build | ||
|
||
- name: Publish package | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: twine upload dist/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ authors = [ | |
{name = "Rodrigo Ceccato de Freitas", email = "[email protected]"}, | ||
{name = "Jhonatan Cléto", email="[email protected]"} | ||
] | ||
version = "0.0.1" | ||
|
||
dynamic = ["version"] | ||
|
||
requires-python = ">=3.9.12, <4" | ||
dependencies = [ | ||
"click==8.1.7", | ||
|
@@ -49,3 +51,11 @@ line_length = 79 | |
[tool.taskipy.tasks] | ||
lint = "black --check --diff . && isort --check --diff ." | ||
format = "black . && isort ." | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "release-branch-semver" | ||
local_scheme = "no-local-version" |