File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 4747 pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
4848 - name : Library version
4949 run : git describe --dirty --always --tags
50+ - name : Setup problem matchers
51+ uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
5052 - name : Pre-commit hooks
5153 run : |
5254 pre-commit run --all-files
6870 if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
6971 run : |
7072 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;
7176 python -m build
7277 twine check dist/*
73- - name : Setup problem matchers
74- uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
Original file line number Diff line number Diff line change 8181 TWINE_USERNAME : ${{ secrets.pypi_username }}
8282 TWINE_PASSWORD : ${{ secrets.pypi_password }}
8383 run : |
84+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85+ sed -i -e "s/0.0.0-auto.0/${{github.event.release.tag_name}}/" $file;
86+ done;
8487 python -m build
8588 twine upload dist/*
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ requires = [
1212[project ]
1313name = " adafruit-circuitpython-ina219"
1414description = " CircuitPython library for INA219 high side DC current sensor."
15+ version = " 0.0.0-auto.0"
1516readme = " README.rst"
1617authors = [
1718 {name = " Adafruit Industries" , email = " circuitpython@adafruit.com" }
@@ -40,12 +41,10 @@ classifiers = [
4041 " License :: OSI Approved :: MIT License" ,
4142 " Programming Language :: Python :: 3" ,
4243]
43- dynamic = [" version " , " dependencies" ]
44+ dynamic = [" dependencies" ]
4445
4546[tool .setuptools ]
4647py-modules = [" adafruit_ina219" ]
4748
4849[tool .setuptools .dynamic ]
4950dependencies = {file = [" requirements.txt" ]}
50-
51- [tool .setuptools_scm ]
You can’t perform that action at this time.
0 commit comments