adafruit / Adafruit_CircuitPython_SHT31D

CircuitPython driver for the SHT31-D temperature and humidity sensor
MIT License
20 stars 18 forks source link

Allow __version__ population, fix problem matchers #30

Closed tekktrik closed 2 years ago

tekktrik commented 2 years ago

Populates __version__ (assuming it's set to the expected 0.0.0-auto.0) before building the package and during the release CI process. Also tests the sed usage (though not sure how that might fail) during the build CI process.

Additionally move the problem matchers step before the pre-commit hooks so it works as intended. Seems like a good time to do that.

For reference tested successfully in my CSV library: https://github.com/tekktrik/CircuitPython_CSV

If this goes well, this file can just be copy/pasted like it is here during the move to pyproject.toml.

tekktrik commented 2 years ago

I realize that on change was missing - added as #31, then the release and download from PyPI should have __version__ match the PyPI one. I'll report back and confirm that. I'll add the changes from #31 to the others since they're still unmerged.

tekktrik commented 2 years ago

Alright, looks like it's good!

Python 3.10.5 (main, Jun  6 2022, 18:49:26) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adafruit_sht31d
>>> adafruit_sht31d.__version__
'2.3.15'