4242 # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
4343 run : |
4444 source actions-ci/install.sh
45- - name : Pip install pylint, Sphinx, pre-commit
45+ - name : Pip install Sphinx, pre-commit
4646 run : |
47- pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
47+ pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
4848 - name : Library version
4949 run : git describe --dirty --always --tags
5050 - name : Setup problem matchers
@@ -53,28 +53,25 @@ jobs:
5353 run : |
5454 pre-commit run --all-files
5555 - name : Build assets
56- run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . --package_folder_prefix "adafruit_, asyncio"
56+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
5757 - name : Archive bundles
5858 uses : actions/upload-artifact@v2
5959 with :
6060 name : bundles
6161 path : ${{ github.workspace }}/bundles/
62- - name : Check For docs folder
63- id : need-docs
64- run : |
65- echo ::set-output name=docs::$( find . -wholename './docs' )
6662 - name : Build docs
67- if : contains(steps.need-docs.outputs.docs, 'docs')
6863 working-directory : docs
6964 run : sphinx-build -E -W -b html . _build/html
70- - name : Check For setup.py
65+ - name : Check For pyproject.toml
7166 id : need-pypi
7267 run : |
73- echo ::set-output name=setup-py ::$( find . -wholename './setup.py ' )
68+ echo ::set-output name=pyproject-toml ::$( find . -wholename './pyproject.toml ' )
7469 - name : Build Python package
75- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
70+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
7671 run : |
77- pip install --upgrade setuptools wheel twine readme_renderer testresources
78- python setup.py sdist
79- python setup.py bdist_wheel --universal
72+ pip install --upgrade build twine
73+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
74+ sed -i -e "s/0.0.0-auto.0/1.2.3/" $file;
75+ done;
76+ python -m build
8077 twine check dist/*
0 commit comments