Donald Stufft schreef op 17-12-14 02:49:
Another thing though, what you probably want to do is something like 
1.1.dev0+internal1, which will sort as older than 1.1 whenever it is actually 
released.

Sounds like the reasonable way to go.

Let me try, with a pip that has your local version identifier fixes from https://github.com/pypa/pip/pull/2205

$ pip install -U --trusted-host pypi.zestsoftware.nl -f http://pypi.zestsoftware.nl/public/packagingtest/ myproject==1.3.dev0+maurits.1
Collecting myproject==1.3.dev0+maurits.1
  Downloading myproject-1.3.dev0+maurits.1.zip
Requirement already up-to-date: Jinja2[i18n] in ./lib/python2.7/site-packages (from myproject==1.3.dev0+maurits.1)
  Installing extra requirements: u'i18n'
Requirement already up-to-date: markupsafe in ./lib/python2.7/site-packages (from Jinja2[i18n]->myproject==1.3.dev0+maurits.1) Requirement already up-to-date: Babel>=0.8 in ./lib/python2.7/site-packages (from Jinja2[i18n]->myproject==1.3.dev0+maurits.1) Requirement already up-to-date: pytz>=0a in ./lib/python2.7/site-packages (from Babel>=0.8->Jinja2[i18n]->myproject==1.3.dev0+maurits.1)
Installing collected packages: myproject
  Found existing installation: myproject 1.2
    Uninstalling myproject:
      Successfully uninstalled myproject
  Running setup.py install for myproject
Successfully installed myproject

Working fine.

Now I create and upload myproject version 1.3.

$ pip install -U --trusted-host pypi.zestsoftware.nl -f http://pypi.zestsoftware.nl/public/packagingtest/ myproject==1.3
Collecting myproject==1.3
  Downloading myproject-1.3.zip
...
Installing collected packages: myproject
  Found existing installation: myproject 1.3.dev0+maurits.1
    Uninstalling myproject:
      Successfully uninstalled myproject
  Running setup.py install for myproject
Successfully installed myproject

Again, working fine.

A '-U myproject' also gives me 1.3, and I can still request myproject==1.3.dev0+maurits.1 if I want.

Good!


--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl

_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to