-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update pre-commit config * remove .flake8 file * updated .travis.yml python version * removed changelog and makefile * updated pyproject.toml and poetry.lock * apply formatters * remove .tools-version file * remove docs directory * update pre-commit hooks * chore: bump python versions in workflow * change classifiers
- Loading branch information
Showing
33 changed files
with
333 additions
and
1,208 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
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 |
---|---|---|
|
@@ -3,37 +3,37 @@ name: Build and Publish Python Package | |
on: | ||
push: | ||
tags: | ||
- '*' | ||
- "*" | ||
|
||
jobs: | ||
build-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Build Wheel | ||
run: poetry build -f wheel | ||
- name: Upload Wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/* | ||
- name: Check Version Format in Tag | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: nowsprinting/[email protected] | ||
id: check-version | ||
with: | ||
prefix: 'v' | ||
- name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
TWINE_USERNAME: '__token__' | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
pip install twine | ||
twine upload dist/* | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Build Wheel | ||
run: poetry build -f wheel | ||
- name: Upload Wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/* | ||
- name: Check Version Format in Tag | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: nowsprinting/[email protected] | ||
id: check-version | ||
with: | ||
prefix: "v" | ||
- name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
pip install twine | ||
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
dist: bionic | ||
language: python | ||
python: | ||
- "3.7" | ||
- "3.9" | ||
install: | ||
- pip install poetry | ||
script: | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.