Skip to content

Commit

Permalink
Merge pull request #135 from tekktrik/dev/use-setuptools-scm
Browse files Browse the repository at this point in the history
Update version string, add setuptools-scm as build system requirement
  • Loading branch information
tekktrik authored Aug 17, 2022
2 parents 8908e77 + ed95916 commit a4e11ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: |
pip install --upgrade build twine
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
sed -i -e "s/0.0.0-auto.0/1.2.3/" $file;
sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
done;
python -m build
twine check dist/*
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
sed -i -e "s/0.0.0-auto.0/${{github.event.release.tag_name}}/" $file;
sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
done;
python -m build
twine upload dist/*
2 changes: 1 addition & 1 deletion neopixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
pass


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


Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
requires = [
"setuptools",
"wheel",
"setuptools-scm",
]

[project]
name = "adafruit-circuitpython-neopixel"
description = "CircuitPython library for NeoPixel LEDs."
version = "0.0.0-auto.0"
version = "0.0.0+auto.0"
readme = "README.rst"
authors = [
{name = "Adafruit Industries", email = "[email protected]"}
Expand Down

0 comments on commit a4e11ce

Please sign in to comment.