-
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.
* build with poetry and publish to pypi with API token * add python 3.8 and 3.9 to testing matrix * 3.11.0-beta.1 failed with an error on os.linesep. Will resolve later
- Loading branch information
1 parent
3ce36fb
commit a58d2bf
Showing
4 changed files
with
39 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: published | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
- name: Build and publish | ||
run: | | ||
poetry version $(git describe --tags --abbrev=0) | ||
poetry build | ||
poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python | ||
|
||
# we use poetry for our build, but this file seems to be required | ||
# in order to get GitHub dependencies graph to work. | ||
# via https://patrick.wtf/posts/til-how-to-show-dependents-packages-on-github-when-using-poetry | ||
# and https://github.com/Textualize/rich/blob/bf23d03893305d974e1ad9f44cfc45d71903a243/setup.py | ||
import setuptools | ||
|
||
|
||
if __name__ == "__main__": | ||
setuptools.setup(name="sqlean") |