More changes and ran pre-commit
This commit is contained in:
parent
8794838fab
commit
0c3fbc1b0a
3 changed files with 4 additions and 9 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
|
@ -16,10 +16,10 @@ jobs:
|
|||
- name: Translate Repo Name For Build Tools filename_prefix
|
||||
id: repo-name
|
||||
run: echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT
|
||||
- name: Set up Python 3.11
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.11
|
||||
python-version: 3.8
|
||||
- name: Versions
|
||||
run: |
|
||||
python3 --version
|
||||
|
|
@ -47,12 +47,7 @@ jobs:
|
|||
- name: Build docs
|
||||
working-directory: docs
|
||||
run: sphinx-build -E -W -b html . _build/html
|
||||
- name: Check For pyproject.toml
|
||||
id: need-pypi
|
||||
run: |
|
||||
echo "pyproject-toml=$( find . -wholename './pyproject.toml' )" >> $GITHUB_OUTPUT
|
||||
- name: Build Python package
|
||||
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
|
||||
run: |
|
||||
pip install --upgrade build twine
|
||||
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -34,4 +34,4 @@ jobs:
|
|||
sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
|
||||
done;
|
||||
python -m build
|
||||
twine upload dist/*
|
||||
twine upload dist/*
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@
|
|||
|
||||
# (the -e above is optional). you could also just install the package
|
||||
# normally with just the line below (after uncommenting)
|
||||
.
|
||||
.
|
||||
|
|
|
|||
Loading…
Reference in a new issue