File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 47
47
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
48
48
- name : Library version
49
49
run : git describe --dirty --always --tags
50
+ - name : Setup problem matchers
51
+ uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
50
52
- name : Pre-commit hooks
51
53
run : |
52
54
pre-commit run --all-files
68
70
if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
69
71
run : |
70
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;
71
76
python -m build
72
77
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 81
81
TWINE_USERNAME : ${{ secrets.pypi_username }}
82
82
TWINE_PASSWORD : ${{ secrets.pypi_password }}
83
83
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;
84
87
python -m build
85
88
twine upload dist/*
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ requires = [
12
12
[project ]
13
13
name = " adafruit-circuitpython-ina219"
14
14
description = " CircuitPython library for INA219 high side DC current sensor."
15
+ version = " 0.0.0-auto.0"
15
16
readme = " README.rst"
16
17
authors = [
17
18
{
name =
" Adafruit Industries" ,
email =
" [email protected] " }
@@ -40,12 +41,10 @@ classifiers = [
40
41
" License :: OSI Approved :: MIT License" ,
41
42
" Programming Language :: Python :: 3" ,
42
43
]
43
- dynamic = [" version " , " dependencies" ]
44
+ dynamic = [" dependencies" ]
44
45
45
46
[tool .setuptools ]
46
47
py-modules = [" adafruit_ina219" ]
47
48
48
49
[tool .setuptools .dynamic ]
49
50
dependencies = {file = [" requirements.txt" ]}
50
-
51
- [tool .setuptools_scm ]
You can’t perform that action at this time.
0 commit comments