Commit Graph

253 Commits

Author SHA1 Message Date
ankostis@kilo c64b8c32d2 Allow to override welcome-msg(`/`) from a separate html file.
- Read welcome-msg in UTF-8.
- Add cmd-line option for `welcome-file`.
- Add TCs for welcome-file option and `/` http-req.
- Update docs for new option.
- Failback to in-code welcome-msg if unreadable (ie standalone mode, bad file).
2015-01-15 16:20:24 +01:00
Gregory Reshetniak d0946ebbcf Merge pull request #62 from ankostis/feat/logging
FIX #58: Added logging facilities
2014-11-18 11:44:04 +02:00
Gregory Reshetniak b28ecc4fb2 Merge pull request #59 from ankostis/feat/gitignore-pydev
Git-Ignore PyDev's (Eclipse) project files, along with *.egg
2014-11-18 11:41:06 +02:00
ankostis@kilo cf03226ea2 Add Logging for all http actions.
* Use stabdard python's logging lib.
* Log http-request/response/errors.
* Cmd-line options for logging-format and filename.
* Cmd-line options for request /response/error requests/responses/errors
props to log.
* Add `-v` option controlling verbosity.
* Add docs about new options.
* TCs only `-v` & `--log_file ` (logging statements used throughout all
tests).
2014-11-17 16:51:45 +01:00
Kostis Anagnostopoulos @ STUW025 f30546027d git: Also ignore .settings folder. 2014-11-14 12:07:11 +01:00
ankostis@kilo dfe9bc6fc4 Ignore PyDev's (Eclipse) project files, along with *.egg 2014-11-14 01:16:14 +01:00
Kurtis Freedland 39316bb56a made pip install happy with the redirect url 2014-04-20 21:33:24 +02:00
Ralf Schmitt 590a06c327 prepare 1.1.6 2014-03-05 22:55:53 +01:00
Ralf Schmitt 557862a7e6 documentation uploads are not saved to disk
see #47
2014-03-05 22:53:09 +01:00
Ralf Schmitt 0f601fcd4b Revert "make index_url an optional parameter for find_packages"
This reverts commit b722c2a68f.
2014-02-16 23:57:44 +01:00
Ralf Schmitt c63e4734b5 Revert "make index_url an optional parameter to update()"
This reverts commit 7061dd795d.
2014-02-16 23:57:41 +01:00
Ralf Schmitt 57a80da651 Revert "add --index-url cli parameter"
This reverts commit f178c69f49.
2014-02-16 23:57:37 +01:00
Ralf Schmitt af25f1a4a0 prepare 1.1.5 2014-01-20 23:10:41 +01:00
Ralf Schmitt 935e566f71 link to https url for downloads 2014-01-20 22:55:51 +01:00
Ralf Schmitt b88edc6f2b update copyright year 2014-01-20 22:53:59 +01:00
Ralf Schmitt 92577e4695 only list devpi-server and proxypypi as alternatives
I don't feel comfortable pointing people to these other
implementations...
2014-01-20 22:50:50 +01:00
Ralf Schmitt af62cfbf3e better handling for wheel files
use pip's wheel regex. this should fix #44.
2014-01-20 21:37:52 +01:00
Ralf Schmitt 95f24b0a99 test package name and version guessing with wheel files
see https://github.com/schmir/pypiserver/issues/44
2014-01-19 21:55:14 +01:00
Ralf Schmitt e32b325544 pyg is dead, don't link to it 2014-01-10 21:36:46 +01:00
Ralf Schmitt 7ab9d2cfb6 serve wheel files as application/octet-stream 2014-01-10 01:34:17 +01:00
Ralf Schmitt 123b493775 make pypiserver executable from wheel file
i.e. python pypiserver-1.1.x-py2.py3-none-any.whl/pypiserver will now
start pypiserver
2014-01-10 01:30:10 +01:00
Ralf Schmitt 0207348df9 merge "universal wheel" changes 2014-01-10 00:45:56 +01:00
Ralf Schmitt 30e532f35b build universal wheel 2014-01-10 00:45:42 +01:00
Ralf Schmitt 69065045bf remove scripts subdirectory
I think lowks has moved on.
2014-01-08 00:13:16 +01:00
Ralf Schmitt 2bcc15422b merge --index-url changes 2014-01-08 00:08:57 +01:00
Ralf Schmitt 5770d49530 remove .travis-runtox.py 2014-01-07 16:53:25 +01:00
Ralf Schmitt dab48a4f66 use tox without the .travis-runtox script 2014-01-07 16:49:44 +01:00
Mathias Ertl f178c69f49 add --index-url cli parameter 2014-01-07 15:09:37 +01:00
Mathias Ertl 7061dd795d make index_url an optional parameter to update() 2014-01-07 15:06:13 +01:00
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 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 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 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 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