I use devpi to deploy python modules. When I upload packages via devpi upload
the generated module name always contains the 'dev' postfix after the version number. When I try to install those packages using pip install ...
I have to specify the --pre
flag. How do I get rid of this 'pre' postfix? I assume that I somehow have to mark the module as release version, but I have no clue how.
Asked
Active
Viewed 1,240 times
1

user545424
- 15,713
- 11
- 56
- 70

Achim
- 15,415
- 15
- 80
- 144
-
Not able to reproduce; what exactly have you run (exact command line of `devpi upload`, `pip install`). – Ramchandra Apte Nov 20 '13 at 06:36
-
1Could you please share your setup.py? – selllikesybok Nov 22 '13 at 13:26
2 Answers
4
I expect it is due to the fact that you have tag_build = dev
somewhere. The most likely place for this is in a setup.cfg
file if you have one although I think it could also be in your setup.py
file. (Both of these files would live in the top level directory of your package code)
This is what my setup.cfg
looks like:
[egg_info]
tag_build = dev
When I want to do a final release I remove the dev tag and leave it like this:
[egg_info]
tag_build =
The release then won't have the dev prefix any longer.

Inti
- 3,443
- 1
- 29
- 34
0
It may be your version number in your setup.py (please do include specifics such as relevant files when posting).
pip
determines what a pre-release version is as specified by PEP 426 (e.g. >=0.0.dev0) and so your version may be defined as a pre-release version. See here.

theannouncer
- 1,148
- 16
- 28