Skip to content

Commit a4e11ce

Browse files
authored
Merge pull request #135 from tekktrik/dev/use-setuptools-scm
Update version string, add setuptools-scm as build system requirement
2 parents 8908e77 + ed95916 commit a4e11ce

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
pip install --upgrade build twine
7373
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;
74+
sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
7575
done;
7676
python -m build
7777
twine check dist/*

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
TWINE_PASSWORD: ${{ secrets.pypi_password }}
8383
run: |
8484
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;
85+
sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
8686
done;
8787
python -m build
8888
twine upload dist/*

neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
pass
2929

3030

31-
__version__ = "0.0.0-auto.0"
31+
__version__ = "0.0.0+auto.0"
3232
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel.git"
3333

3434

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
requires = [
77
"setuptools",
88
"wheel",
9+
"setuptools-scm",
910
]
1011

1112
[project]
1213
name = "adafruit-circuitpython-neopixel"
1314
description = "CircuitPython library for NeoPixel LEDs."
14-
version = "0.0.0-auto.0"
15+
version = "0.0.0+auto.0"
1516
readme = "README.rst"
1617
authors = [
1718
{name = "Adafruit Industries", email = "circuitpython@adafruit.com"}

0 commit comments

Comments
 (0)