forked from github.com/pypiserver
v1.2.0.dev1 (<--1.1.10): Stop supporting py<2.7 & py<3.3 (#107).
This commit is contained in:
parent
cee248110b
commit
0c4c27fa5c
@ -2,8 +2,6 @@ sudo: false
|
||||
language: python
|
||||
python: 2.7
|
||||
env:
|
||||
- TOX_ENV=py25
|
||||
- TOX_ENV=py26
|
||||
- TOX_ENV=py27
|
||||
- TOX_ENV=py33
|
||||
- TOX_ENV=py34
|
||||
|
@ -1,6 +1,13 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
1.2.0 (2016-XX-XX)
|
||||
------------------
|
||||
"New Day"
|
||||
|
||||
- Stop supporting `python-2 < 2.7` and `python-3 < 3.3`.
|
||||
|
||||
|
||||
1.1.10 (2016-01-19)
|
||||
------------------
|
||||
Serve 1000s of packages, PGP-Sigs, skip versions starting with 'v'.
|
||||
|
17
README.rst
17
README.rst
@ -6,8 +6,8 @@ pypiserver - minimal PyPI server for use with pip/easy_install
|
||||
|pypi-ver| |travis-status| |dependencies| |downloads-count| |python-ver| \
|
||||
|proj-license|
|
||||
|
||||
:Version: 1.1.10
|
||||
:Date: 2016-01-18
|
||||
:Version: 1.2.0.dev1
|
||||
:Date: 2016-XX-XX
|
||||
:Source: https://github.com/pypiserver/pypiserver
|
||||
:PyPI: https://pypi.python.org/pypi/pypiserver
|
||||
:Travis: https://travis-ci.org/pypiserver/pypiserver
|
||||
@ -18,23 +18,24 @@ pypiserver - minimal PyPI server for use with pip/easy_install
|
||||
:backlinks: top
|
||||
|
||||
|
||||
*pypiserver* is a minimal PyPI_ compatible server.
|
||||
It can be used to upload and serve packages, wheels and eggs
|
||||
to *pip* or *easy_install*.
|
||||
*pypiserver* is a minimal PyPI_ compatible server based on bottle_.
|
||||
It can be used to upload and serve packages, wheels, eggs and PGP-signatures
|
||||
with *pip* or *easy_install*.
|
||||
The packages are stored in regular directories.
|
||||
|
||||
|
||||
|
||||
Quickstart: Installation and Usage
|
||||
==================================
|
||||
*pypiserver* will work with python 2.5 --> 2.7 and 3.2 --> 3.4.
|
||||
Python 3.0 and 3.1 may also work, but pypiserver is not being tested
|
||||
*pypiserver* `> 1.2.x` works with python `2.7` and `3.3 --> 3.5` or *pypy*.
|
||||
Python `3.0 --> 3.2` may also work, but it is not being tested
|
||||
with these versions.
|
||||
For older python-2 version, use version `1.1.x` series.
|
||||
|
||||
Run the following commands to get your PyPI server up and running::
|
||||
|
||||
## Installation.
|
||||
pip install pypiserver[passlib]
|
||||
pip install pypiserver ## or : pypiserver[passlib,watchdog]
|
||||
mkdir ~/packages ## Copy packages into this directory.
|
||||
|
||||
## Start server.
|
||||
|
@ -1,8 +1,8 @@
|
||||
import re as _re
|
||||
|
||||
version = __version__ = "1.1.10"
|
||||
version = __version__ = "1.2.0.dev1"
|
||||
__version_info__ = tuple(_re.split('[.-]', __version__))
|
||||
__updated__ = "2016-01-19"
|
||||
__updated__ = "2016-XX-XX"
|
||||
|
||||
__title__ = "pypiserver"
|
||||
__summary__ = "A minimal PyPI server for use with pip/easy_install."
|
||||
|
@ -56,12 +56,11 @@ def log_request():
|
||||
|
||||
@app.hook('after_request')
|
||||
def log_response():
|
||||
log.info(config.log_res_frmt, # vars(response)) ## DOES NOT WORK!
|
||||
dict(
|
||||
response=response,
|
||||
status=response.status, headers=response.headers,
|
||||
body=response.body, cookies=response._cookies,
|
||||
))
|
||||
log.info(config.log_res_frmt, { # vars(response)) ## DOES NOT WORK!
|
||||
'response': response,
|
||||
'status': response.status, 'headers': response.headers,
|
||||
'body': response.body, 'cookies': response._cookies,
|
||||
})
|
||||
|
||||
|
||||
@app.error
|
||||
|
3
setup.py
3
setup.py
@ -55,11 +55,8 @@ setup(name="pypiserver",
|
||||
"Operating System :: POSIX",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 2",
|
||||
"Programming Language :: Python :: 2.5",
|
||||
"Programming Language :: Python :: 2.6",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.2",
|
||||
"Programming Language :: Python :: 3.3",
|
||||
"Programming Language :: Python :: 3.4",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
|
@ -47,7 +47,7 @@ def test_default_pkgdir(main):
|
||||
|
||||
|
||||
def test_noargs(main):
|
||||
assert main([]) == dict(host="0.0.0.0", port=8080, server="auto")
|
||||
assert main([]) == {'host': "0.0.0.0", 'port': 8080, 'server': "auto"}
|
||||
|
||||
|
||||
def test_port(main):
|
||||
|
2
tox.ini
2
tox.ini
@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
envlist = py25,py26,py27,py33,py34
|
||||
envlist = py27,py33,py34
|
||||
|
||||
[testenv]
|
||||
deps=-r{toxinidir}/requirements/dev.pip
|
||||
|
Loading…
Reference in New Issue
Block a user