Commit Graph

224 Commits

Author SHA1 Message Date
Mathias Ertl
b722c2a68f make index_url an optional parameter for find_packages 2014-01-07 15:04:41 +01:00
Ralf Schmitt
6f0a2c133b mention that the documentation is for unix
fixes https://github.com/schmir/pypiserver/issues/41
2014-01-05 01:34:09 +01:00
Ralf Schmitt
e77119f900 prepare 1.1.4 1.1.4 2014-01-03 23:35:47 +01:00
Ralf Schmitt
3563c781ff make pypiserver compatible with pip 1.5
this basically removes the content-encoding header.

many thanks to @rmohr for reporting this issue in
https://github.com/schmir/pypiserver/pull/42:

,----
| it seems that since pip>=1.5, pip checks the response header of archives
| for Content-Encoding.
|
| This is what pypiserver currently guesses when you try to download a
| tar.gz archive:
|
| ('Content-Type', 'application/x-tar')
| ('Content-Encoding', 'gzip')
|
| What pip now does is decompressing the archive because of the
| Content-Encoding, without removing the .gz. Then it tries to untar
| it. Because of the filename it tries to decompress the tar archive
| again.
|
| This is what pypi returns:
|
| $ wget -S https://pypi.python.org/packages/source/p/pytz/pytz-2013.9.tar.gz
|   [...]
|   Content-Type: application/x-gzip
|   Accept-Ranges: bytes
|   [...]
|
| The patch below returns the same types as pypi does.
`----
2014-01-03 23:22:59 +01:00
Ralf Schmitt
05907e1c4d prepare 1.1.3 release 1.1.3 2013-07-22 21:53:46 +02:00
Ralf Schmitt
ee2fd7c04c rename make_manifest.py to make-manifest and make it usable as hook 2013-07-22 21:39:28 +02:00
Ralf Schmitt
72a4bfc3ce test guess_pkgname_and_version with one more filename 2013-07-22 21:24:29 +02:00
Nick Pope
402a04e9af More robust guessing of package name and version.
Added support for some other package naming schemes.
2013-07-19 16:00:20 +01:00
Nick Pope
c3737bdf07 Fix guessing of package name and version.
The fix in commit 7f97612 for supporting the package naming used by the
pytz module caused a regression if the package name contained a dash
followed by a number. We fix this by splitting on all dashes followed by
numbers and recreating the package name from all components but the
last.
2013-07-19 11:42:36 +01:00
Ralf Schmitt
556749fcbf prepare 1.1.2 1.1.2 2013-06-22 23:01:32 +02:00
Ralf Schmitt
3154943d3b fix is_stable_version 2013-06-22 22:50:51 +02:00
Ralf Schmitt
27381b0d15 update and pin some packages 1.1.1 2013-05-29 00:46:51 +02:00
Ralf Schmitt
02a3fbe41c upgrade vendor, i.e. use waitress 0.8.5 2013-05-29 00:36:44 +02:00
Ralf Schmitt
5b62041395 prepare 1.1.1 release 2013-05-29 00:35:16 +02:00
Ralf Schmitt
fcbb32f30e workaround broken xmlrpc api on pypi.python.org by using HTTPS
http://pypi.python.org/pypi/ doesn't work with HTTP/1.0 at the moment.
switching to HTTPS solves that.
2013-05-29 00:32:33 +02:00
Ralf Schmitt
84f69abadf add link to proxypypi 2013-05-29 00:15:35 +02:00
Ralf Schmitt
b738416803 add link to devpi-server 2013-05-07 23:38:59 +02:00
Joost Cassee
23dd792255 Add 'overwrite' command line option
If the overwrite command line options is used, existing package files
can be overwritten during upload. By default existing package files will
not be overwritten.
2013-04-11 10:36:47 +02:00
Ralf Schmitt
7bceb0c4aa don't test with python 2.5 on travisci
looks like a pip/virtualenv bootstrapping problem:

,----
| Downloading/unpacking pytest>=2.3
|
| Exception:
|
| Traceback (most recent call last):
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/basecommand.py", line 139, in main
|
| status = self.run(options, args)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/commands/install.py", line 266, in run
|
| requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/req.py", line 1026, in prepare_files
|
| url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 125, in find_requirement
|
| page = self._get_page(main_index_url, req)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 353, in _get_page
|
| return HTMLPage.get_page(link, req, cache=self.cache)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/index.py", line 471, in get_page
|
| resp = urlopen(url)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/download.py", line 143, in __call__
|
| response = self.get_opener(scheme=scheme).open(url)
|
| File "/home/travis/build/schmir/pypiserver/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg/pip/download.py", line 201, in get_opener
|
| raise NoSSLError()
|
| NoSSLError:
|
| ###################################################################
|
| ## You don't have an importable ssl module. You are most ##
|
| ## likely using Python 2.5, which did not include ssl ##
|
| ## support by default. In this state, we can not provide ##
|
| ## ssl certified downloads from PyPI. ##
|
| ## ##
|
| ## You can do one of 2 things: ##
|
| ## 1) Install this: https://pypi.python.org/pypi/ssl/ ##
|
| ## (It provides ssl support for older Pythons ) ##
|
| ## 2) Use the --insecure option to allow this insecurity ##
|
| ## ##
|
| ## For more details, go to the "SSL Certificate Verification" ##
|
| ## section located here: ##
|
| ## http://www.pip-installer.org/en/latest/logic.html ##
|
| ## ##
|
| ###################################################################
|
`----
2013-04-02 22:19:17 +02:00
Ralf Schmitt
5bd05a2b94 make get_prefixes handle packages that use both _ and -
also simplify it a bit
2013-04-02 22:07:08 +02:00
Ralf Schmitt
767871ed4b move the 'get_prefixes' functionality from simpleindex to own function 2013-04-02 22:07:08 +02:00
Ralf Schmitt
ab599f98f1 add a test for a package that uses both _ and - 2013-04-02 22:07:08 +02:00
Ralf Schmitt
e62f662c47 make the /simple page work again when using python 3
this has been broken in the last commit.
2013-04-02 21:20:34 +02:00
Eliot
7ad9e2afd1 Remove duplicates from "/simple" index page
The main line repo
(c1b9386dff)
currently lists duplicate entries on the "/simple" index page if the
package name contains hyphens and if both a source file and egg file are
uploaded. One index entry contains hyphens in the name which matches the
source file name and the other entry contains underscores in the name
which matches the egg file. Clicking both links lead to pages which list
the same files (both the source file and the egg file).

The previous fix
(c6966afeed)
mostly fixed this problem but it did not account for package names that
included an underscore. Change the "/simple" index to use the name from
a non-egg file, since this name should not have hyphens converted to
underscores as egg files do. If there are only egg files, use the egg
file name.
2013-04-01 16:49:15 -07:00
Eliot
c6966afeed Show names with hyphens instead of underscores
...on the "/simple" listing.

On the "/simple" listing page, names with hyphens and names with
underscores are currently both pointing to the same set of files due to
the use of `pypiserver.core.normalize_pkgname`. Make a change to display
only names with hyphens on the "/simple" listing page to avoid
duplication.
2013-03-29 17:47:42 -07:00
Ralf Schmitt
c1b9386dff use zc.buildout 2 2013-03-20 22:47:39 +01:00
Baiju Muthukadan
0645655d83 indent index-server's items 2013-02-20 16:16:36 +05:30
Ralf Schmitt
3d6e5f614d ignore .class files 2013-02-18 23:23:44 +01:00
Ralf Schmitt
7a786ff84f make the standalone version work with jython 2.5.3 2013-02-18 23:23:13 +01:00
Ralf Schmitt
b0437724ad update MANIFEST.in 1.1.0 2013-02-14 23:14:42 +01:00
Ralf Schmitt
7527aad9f0 add some missing things to the changelog 2013-02-14 23:12:51 +01:00
Ralf Schmitt
0db743cc59 upgrade bottle to 0.11.6 2013-02-14 23:11:01 +01:00
Ralf Schmitt
bc9149ec32 upgrade to latest pypiserver-vendor with waitress 0.8.2 2013-02-14 23:06:00 +01:00
Ralf Schmitt
a4a024cafd update release date 2013-02-14 23:01:20 +01:00
Ralf Schmitt
39e6fb7fc5 adapt usage message for multiple roots 2013-02-14 22:59:53 +01:00
Ralf Schmitt
244f3eb85a merge vsajip's support for verify, doc_upload and remove_pkg 2013-02-03 12:12:26 +01:00
Vinay Sajip
1c80385c52 Made error message slightly more informative. 2013-02-02 12:44:38 +00:00
Vinay Sajip
623c0dc736 Added support for verify, remove_pkg and doc_upload actions. 2013-02-02 12:41:08 +00:00
Ralf Schmitt
5161a8b9f5 prepare 1.1.0 release 2013-01-28 00:45:01 +01:00
Ralf Schmitt
6c8d1b55b7 allow multiple roots in paste_app_factory 2013-01-28 00:31:58 +01:00
Ralf Schmitt
ff6fcdce18 normalize pkgnames, handle underscore like minus
as in egenix_pyopenssl vs egenix-pyopenssl
2013-01-22 23:35:33 +01:00
Ralf Schmitt
c651f3c86f update bootstrap.py 2013-01-22 23:23:06 +01:00
Ralf Schmitt
408d288311 update bottle to 0.11.5 2013-01-22 23:04:53 +01:00
Ralf Schmitt
2232295412 implement multi-root support
one can now specify multiple package roots. watch out for filename
conflicts!
2013-01-22 23:00:48 +01:00
Eduard-Cristian Stefan
f1d4208081 Fix small typos in README.rst 2013-01-07 14:58:47 +02:00
Ralf Schmitt
274036b7d6 merge buildout changes from branch-1.0 2013-01-04 02:15:18 +01:00
Ralf Schmitt
8ca376fadc add buildout config/bootstrap 2013-01-04 02:09:11 +01:00
Ralf Schmitt
458f16d3fd up version to 1.1.0dev 2013-01-04 00:24:20 +01:00
Ralf Schmitt
e246d57046 merge with changes from 1.0.1 release 2013-01-04 00:22:47 +01:00
Ralf Schmitt
2d7b42cd80 make pypi-server-standalone not use waitress
waitress needs at least python 2.6
1.0.1
2013-01-03 22:13:45 +01:00