Skip to content

PyPi upload version on new release build has wrong version #10361

@dhalbert

Description

@dhalbert
Collaborator

The "Upload stubs to PyPi" step when doing a new release is now complaining about a version issue. See this build:
https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:34

Maybe could be due to #10312, but I'm not at all sure.

Run # python -m build was run by 'make stubs'
  # python -m build was run by 'make stubs'
  [ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"
  [ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*
  shell: /usr/bin/bash -e {0}
  env:
    CP_VERSION: [1](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:1)0.0.0-alpha.6
    pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
    Python[2](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:2)_ROOT_DIR: /opt/hostedtoolcache/Python/3.1[3](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:3).3/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x6[4](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:4)
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
    TWINE_USERNAME: ***
    TWINE_PASSWORD: ***
  
Uploading dev release to PyPi
Uploading distributions to https://upload.pypi.org/legacy/
Uploading 
circuitpython_stubs-10.0.0a7.dev0+gd88fe10647.d202[5](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:5)0517-py3-none-any.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.0 MB • --:-- • ?
 19% ━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.2/1.0 MB • 00:01 • 8.2 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB • 00:00 • 12.3 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB • 00:00 • 12.3 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB • 00:00 • 12.3 MB/s
25hWARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         The use of local versions in                                           
         <Version('10.0.0a7.dev0+gd88fe10[6](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:6)47.d2025051[7](https://github.com/adafruit/circuitpython/actions/runs/15088880323/job/42414925264#step:13:7)')> is not allowed. See   
         https://packaging.python.org/specifications/core-metadata for more     
         information.                                                           
Error: Process completed with exit code 1.

Activity

added this to the 10.0.0 milestone on May 19, 2025
dhalbert

dhalbert commented on May 23, 2025

@dhalbert
CollaboratorAuthor

Unclear why the wrong version was used. Compare this with https://github.com/adafruit/circuitpython/actions/runs/14828564282.

I cannot tell where stubs-10.0.0a7.dev0+gd88fe10647.d20250517-py3-none-any comes from.
Here is a zip of two cleaned-up logs for comparison.

alpha-logs.zip

##[group]Run ./.github/actions/upload_aws
with:
source: circuitpython-stubs/dist/*.tar.gz
destination: stubs/circuitpython-stubs-10.0.0-alpha.4.tar.gz
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
env:
CP_VERSION: 10.0.0-alpha.4
pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
##[endgroup]
##[group]Run [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.4.tar.gz --no-progress --region us-east-1
�[36;1m[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.4.tar.gz --no-progress --region us-east-1�[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
CP_VERSION: 10.0.0-alpha.4
pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
AWS_PAGER:
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
##[endgroup]
upload: circuitpython-stubs/dist/circuitpython_stubs-10.0.0a4.tar.gz to s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.4.tar.gz
##[group]Run # python -m build was run by 'make stubs'
�[36;1m# python -m build was run by 'make stubs'�[0m
�[36;1m[ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"�[0m
�[36;1m[ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*�[0m
shell: /usr/bin/bash -e {0}
env:
CP_VERSION: 10.0.0-alpha.4
pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
TWINE_USERNAME: ***
TWINE_PASSWORD: ***

##[endgroup]
Uploading dev release to PyPi
Uploading distributions to https://upload.pypi.org/legacy/
Uploading circuitpython_stubs-10.0.0a4-py3-none-any.whl
�[?25l

vs

##[group]Run [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.6.tar.gz --no-progress --region us-east-1
�[36;1m[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.6.tar.gz --no-progress --region us-east-1�[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
CP_VERSION: 10.0.0-alpha.6
pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
AWS_PAGER:
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
##[endgroup]
upload: circuitpython-stubs/dist/circuitpython_stubs-10.0.0a7.dev0+gd88fe10647.d20250517.tar.gz to s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-10.0.0-alpha.6.tar.gz
##[group]Run # python -m build was run by 'make stubs'
�[36;1m# python -m build was run by 'make stubs'�[0m
�[36;1m[ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"�[0m
�[36;1m[ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*�[0m
shell: /usr/bin/bash -e {0}
env:
CP_VERSION: 10.0.0-alpha.6
pythonLocation: /opt/hostedtoolcache/Python/3.13.3/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.13.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.13.3/x64/lib
TWINE_USERNAME: ***
TWINE_PASSWORD: ***

##[endgroup]
Uploading dev release to PyPi
Uploading distributions to https://upload.pypi.org/legacy/
Uploading
circuitpython_stubs-10.0.0a7.dev0+gd88fe10647.d20250517-py3-none-any.whl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @dhalbert

      Issue actions

        PyPi upload version on new release build has wrong version · Issue #10361 · adafruit/circuitpython