mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
make pypi-server-standalone not use waitress
waitress needs at least python 2.6
This commit is contained in:
parent
9dc1bafa47
commit
2d7b42cd80
@ -452,6 +452,7 @@ Changelog
|
||||
(https://github.com/schmir/pypiserver/issues/25)
|
||||
- add description of uploads to the documentation
|
||||
- make the test suite work on python 3
|
||||
- make pypi-server-standalone work with python 2.5
|
||||
|
||||
1.0.0 (2012-10-26)
|
||||
------------------
|
||||
|
@ -59,5 +59,8 @@ sys.meta_path.append(importer)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from pypiserver import core
|
||||
core.DEFAULT_SERVER = "waitress"
|
||||
if sys.version_info >= (2, 6):
|
||||
core.DEFAULT_SERVER = "waitress"
|
||||
else:
|
||||
core.bottle.AutoServer.adapters.remove(core.bottle.WaitressServer)
|
||||
core.main()
|
||||
|
Loading…
Reference in New Issue
Block a user