File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
- name : Translate Repo Name For Build Tools filename_prefix
17
17
id : repo-name
18
18
run : echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT
19
- - name : Set up Python 3.8
19
+ - name : Set up Python 3.11
20
20
uses : actions/setup-python@v4
21
21
with :
22
- python-version : 3.8
22
+ python-version : 3.11
23
23
- name : Versions
24
24
run : |
25
25
python3 --version
47
47
- name : Build docs
48
48
working-directory : docs
49
49
run : sphinx-build -E -W -b html . _build/html
50
+ - name : Check For pyproject.toml
51
+ id : need-pypi
52
+ run : |
53
+ echo "pyproject-toml=$( find . -wholename './pyproject.toml' )" >> $GITHUB_OUTPUT
50
54
- name : Build Python package
51
55
run : |
52
56
pip install --upgrade build twine
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
15
- - name : Check For setup.py
15
+ - name : Check For pyproject.toml
16
16
id : need-pypi
17
17
run : |
18
- echo "setup-py =$( find . -wholename './setup.py ' )" >> $GITHUB_OUTPUT
18
+ echo "pyproject-toml =$( find . -wholename './pyproject.toml ' )" >> $GITHUB_OUTPUT
19
19
- name : Set up Python
20
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
20
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
21
21
uses : actions/setup-python@v4
22
22
with :
23
- python-version : ' 3.x '
23
+ python-version : ' 3.11 '
24
24
- name : Install dependencies
25
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
25
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
26
26
run : |
27
27
python -m pip install --upgrade pip
28
28
pip install --upgrade build twine
29
29
- name : Build and publish
30
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
30
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
31
31
env :
32
32
TWINE_USERNAME : ${{ secrets.pypi_username }}
33
33
TWINE_PASSWORD : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments