File tree Expand file tree Collapse file tree 3 files changed +73
-2
lines changed
Expand file tree Collapse file tree 3 files changed +73
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to pypi on Github release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ pypi-release :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+
13+ - name : Set up Python
14+ uses : actions/setup-python@v4
15+ with :
16+ python-version : " 3.10"
17+
18+ - name : Install build & twine
19+ run : python -m pip install build twine
20+
21+ - name : Publish to pypi
22+ run : |
23+ python -m build
24+ twine upload dist/*
25+ env :
26+ TWINE_USERNAME : __token__
27+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Auto-release on PR merge
2+
3+ on :
4+ # ATM, this is the closest trigger to a PR merging
5+ push :
6+ branches :
7+ - master
8+
9+ env :
10+ AUTO_VERSION : v10.37.6
11+
12+ jobs :
13+ auto-release :
14+ runs-on : ubuntu-latest
15+ if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
16+ steps :
17+ - uses : actions/checkout@v3
18+
19+ - name : Prepare repository
20+ # Fetch full git history and tags
21+ run : git fetch --unshallow --tags
22+
23+ - name : Unset header
24+ # checkout@v2 adds a header that makes branch protection report errors
25+ # because the Github action bot is not a collaborator on the repo
26+ run : git config --local --unset http.https://github.com/.extraheader
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v4
30+ with :
31+ python-version : " 3.10"
32+
33+ - name : Download auto
34+ run : |
35+ auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/tags/$AUTO_VERSION | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')"
36+ wget -O- "$auto_download_url" | gunzip > ~/auto
37+ chmod a+x ~/auto
38+
39+ - name : Create release
40+ run : |
41+ ~/auto shipit -vv
42+ env :
43+ GH_TOKEN : ${{ secrets.AUTO_USER_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,15 +14,16 @@ classifiers =
1414 Operating System :: OS Independent
1515 Programming Language :: Python :: 3
1616 Programming Language :: Python :: 3 :: Only
17- Programming Language :: Python :: 3.7
1817 Programming Language :: Python :: 3.8
1918 Programming Language :: Python :: 3.9
19+ Programming Language :: Python :: 3.10
20+ Programming Language :: Python :: 3.11
2021 Topic :: Software Development
2122 Topic :: Software Development :: Libraries :: Python Modules
2223
2324[options]
2425packages = find:
25- python_requires = >= 3.7
26+ python_requires = >= 3.8
2627install_requires =
2728 click
2829 etelemetry >= 0.2.0
You can’t perform that action at this time.
0 commit comments