-
Notifications
You must be signed in to change notification settings - Fork 17
Switch from using 0.0.0-auto.0 to pep440 ? #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I ran into not being able to use This is all really confusing because package management has been changing so much. Many websearch results contain discussions that are obsolete. |
I was testing the neopixel library locally and after changing the version in
(I think I should tag you @tekktrik if you don't mind) Here is a test with a randomly selected library (it works after updating pip). (venv-test) pi@circuit-pi ~/circuit $ pip list
Package Version
------------------------------ -----------------------------
click 8.0.1
click-aliases 1.0.1
discotool-for-microcontrollers 0.1.2.dev0+g8be5608.d20210723
importlib-metadata 4.6.1
pip 18.1
pkg-resources 0.0.0
psutil 5.8.0
pyserial 3.5
pyudev 0.22.0
setuptools 40.8.0
six 1.16.0
typing-extensions 3.10.0.0
zipp 3.5.0
(venv-test) pi@circuit-pi ~/circuit $ git clone https://github.com/adafruit/Adafruit_CircuitPython_LIS3MDL
[...]
(venv-test) pi@circuit-pi ~/circuit $ cd Adafruit_CircuitPython_LIS3MDL/
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ pip install -e .
Directory '.' is not installable. File 'setup.py' not found.
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ pip install -U pip
[...]
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ pip install -e .
[...]
configuration error: `project.version` must be pep440
[...]
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ nano pyproject.toml
[... edit the version to 0.0.0+auto.0 ...]
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ pip install -e .
[...]
Successfully installed Adafruit-Blinka-8.2.0 Adafruit-PlatformDetect-3.27.0 Adafruit-PureIO-1.1.9 RPi.GPIO-0.7.1 adafruit-circuitpython-busdevice-5.2.1 adafruit-circuitpython-lis3mdl-0.0.0+auto.0 adafruit-circuitpython-register-1.9.11 adafruit-circuitpython-typing-1.7.2 pyftdi-0.54.0 pyusb-1.2.1 rpi-ws281x-4.3.4 sysv-ipc-1.1.0
(venv-test) pi@circuit-pi ~/circuit/Adafruit_CircuitPython_LIS3MDL $ python
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adafruit_lis3mdl
>>> |
My understanding is also that editable installs are not currently supported (always? I share Dan's frustrations with search results) with It's worth mentioning that |
I'd be up for using |
Anything that allows |
Changing it is fine with me too. |
There is! Nothing functional, but I added some instructional comments to the cookiecutter, so adding those to the libraries means they'll all be consistent. I can wrap it into one patch! |
@Neradoc I think with the patch and addition to the cookiecutter this is resolved, correct? |
Yup ! Thanks all ! |
When I try to install a library using pyproject.toml in editable mode:
I get this error:
So it demands a pep440 formatted version string, which
0.0.0-auto.0
is not.On the other hand
0.0.0+auto.0
is, and there are other alternatives we could use. Unless there is a way to relax the format rule without breaking pip, the build tools could be made to accept both formats and the libraries could be updated afterwards.Are there other places where
0.0.0-auto.0
is expected ?Installing in editable mode is a useful tool for working on a library in blinka, it would be nice if it was supported.
The text was updated successfully, but these errors were encountered: