Questions tagged [setuptools-scm]
29 questions
2
votes
1 answer
Python Pip automatically increment version number based on SCM
Similar questions like this were raised many times, but I was not able to find a solution for my specific problem.
I was playing around with setuptools_scm recently and first thought it is exactly what I need. I have it configured like…

Matthias
- 1,200
- 2
- 13
- 33
2
votes
2 answers
Python setup.py setuptools_scm use_scm_version/get_version() error
Dear interent my docker build (RUN python3 setup.py install) continues to fail with the following error: LookupError: setuptools-scm was unable to detect version for '/src'. I know there are posts about this all over but I still can't sort it…

Oliver
- 281
- 3
- 14
1
vote
1 answer
How to configure setuptools_scm to always generate timestamp and git hash
The setuptools_scm package by default could generate 4 different version messages.
no distance and clean: {tag}
distance and clean: {next_version}.dev{distance}+{scm letter}{revision hash}
no distance and not clean: {tag}+dYYYYMMDD
distance and not…

Billy
- 701
- 1
- 8
- 26
1
vote
0 answers
How to only pip install the latest tagged version when using setuptools_scm
I'm using setuptools_scm for version control for a python project.
I'm also using Python 3.10 and am on Windows 10.
My 2nd to last commit is tagged with "v0.1"
At this stage, I installed my package using the line below and got version 0.1…

mira
- 11
- 3
1
vote
1 answer
Convert Git tag to Python version on the command line in Gitlab CI
In a Gitlab CI pipeline, I want to check that the package that was just uploaded to a registry is there and works well. What I do is basically:
[…]
stages:
- […]
- deploy
- deploytest
pip-upload:
stage: deploy
rules:
- if:…

olebole
- 521
- 4
- 17
1
vote
0 answers
Feature Branch Artifacts Workflow in CI with SemVer
I have a library (let's call it my_lib) and an application (my_app) structured in two Python packages where my tool my_app requires my_lib in the requirements.txt. In practice, I often develop a feature in my_app where the underlying added…

sh0rtcircuit
- 445
- 3
- 13
0
votes
0 answers
Can I use setuptools_scm to check at runtime whether the installed version is behind the Git version?
I have a Python package that is set up to retrieve the version number from Git tag when it is installed locally. All of this works really well.
This is what I have in my pyproject.toml:
[tool.setuptools_scm]
write_to =…

tospo
- 646
- 9
- 17
0
votes
2 answers
Why is version number 0.10.0 considered as older than 0.9.0 in setuptools_scm?
I have a Python package that is going through frequent changes and it brought us to version 0.9.3 currently. My team is not confident to bump it to 1.0.0 yet.
The team agreed to version number 0.10.0 but why setuptools_scm seems to consider 0.10.0…

yuenherny
- 125
- 1
- 8
0
votes
0 answers
pip install from local directory doesnt add [build-system] dependencies
In our project (Locust) we use setuptools_scm for versioning, so it is needed for all installations from local directory.
We used to have this specified in setup.py:
setup(
setup_requires=["setuptools_scm>=6.2"],
...
)
But we have upgraded…

Cyberwiz
- 11,027
- 3
- 20
- 40
0
votes
1 answer
Python setuptools-scm producing version with .dev, unable to upload to PyPi
When / Why does setuptools-scm append .devXXX to its generated version?
In a couple repos I maintain setuptools-scm starts producing versions with .devXXX appended to the version number. This causes issues because this tag is invalid for upload to…

Nick Gimbal
- 122
- 9
0
votes
1 answer
Pip Whl naming conventions for git branches
I feel like I am doing something wrong. We have some projects that produce pip packages in CI whenever we push a commit. I am using setuptools_scm to produce a version number based upon the last tag. I have two problems that I am struggling to…

John Sallay
- 241
- 3
- 8
0
votes
1 answer
check-manifest fails after upgrading setuptools_scm from 6.0.1 to 6.3.1
I have been using setuptools-scm version 6.0.1 for my python project. The project also uses check-manifest with a pre-commit hook. Ever since I upgraded setuptools-scm to 6.3.1, the check-manifest hook has been failing with the following error that…

Zobayer Hasan
- 2,187
- 6
- 22
- 38
0
votes
0 answers
How do I include the git branch name with setuptools-scm?
By default, setuptools_scm (when using git) produces version numbers such as:
mytool-1.2.3.dev42+ba98765.d19700101
I would like to include the branch name. I'm not set on the exact form, but maybe like…

gerrit
- 24,025
- 17
- 97
- 170
-1
votes
1 answer
How to fix Command "python setup.py egg_info" failed with error code 1
I inherited a docker containerized setup. Previous engineers maintaining it are long gone. When I try to build the image, it is complaining during installation of one of the packages specified in requirements.txt
requirements.txt…

Akshay Jagtap
- 47
- 9