Bump version 1.1.7-->1.1.8-beta.0

- Make standalone-gen script to run also on python-3.
- Add README badges.
This commit is contained in:
Kostis Anagnostopoulos, Yoga-2 2015-03-08 23:21:35 +01:00 committed by ankostis on tokoti
parent bb920522b8
commit f9e351cdb6
4 changed files with 45 additions and 12 deletions

View File

@ -3,13 +3,16 @@
==============================================================================
pypiserver - minimal PyPI server for use with pip/easy_install
==============================================================================
|dev-status| |build-status| |pypi-status| |downloads-count| |github-issues|
:Authors: Ralf Schmitt <ralf@systemexit.de>, Kostis Anagnostopoulos <ankostis@gmail.com>
:Version: 1.1.7
:Authors: Ralf Schmitt <ralf@systemexit.de>,
Kostis Anagnostopoulos <ankostis@gmail.com>
:Version: 1.1.8-beta.0
:Date: 2015-03-8
:Source: https://github.com/pypiserver/pypiserver
:Download: https://pypi.python.org/pypi/pypiserver#downloads
:PyPI repo: https://pypi.python.org/pypi/pypiserver#downloads
:TravisCI: https://travis-ci.org/pypiserver/pypiserver
:License: zlib/libpng + MIT
.. contents:: Table of Contents
:backlinks: top
@ -18,7 +21,7 @@ pypiserver - minimal PyPI server for use with pip/easy_install
*pypiserver* is a minimal PyPI_ compatible server.
It can be used to upload and serve packages, wheels and eggs
to *pip* or *easy_install*.
The packages are stored inside a regular directory.
The packages are stored in regular directories.
@ -70,7 +73,7 @@ Currently only password-protected uploads are supported!
.. Tip::
Read this SO question for running `htpasswd` cmd under *Windows*:
http://serverfault.com/questions/152950/how-to-create-and-edit-htaccess-and-htpasswd-locally-on-my-computer-and-then-u
http://serverfault.com/questions/152950/how-to-create-and-edit-htaccess-and-htpasswd-locally-on-my-computer-and-then-u
#. You need to restart the server with the `-P` option only once
(but user/password pairs can later be added or updated on the fly)::
@ -505,3 +508,23 @@ See the `LICENSE.txt` file.
.. _bottle: http://bottlepy.org
.. _PyPI: http://pypi.python.org
.. |build-status| image:: https://travis-ci.org/pypiserver/pypiserver.svg
:alt: Integration-build status
:scale: 100%
:target: https://travis-ci.org/pypiserver/pypiserver/builds
.. |pypi-status| image:: https://pypip.in/v/pypiserver/badge.png
:target: https://pypi.python.org/pypi/pypiserver/
:alt: Latest Version in PyPI
.. |dev-status| image:: https://pypip.in/status/pypiserver/badge.svg
:target: https://pypi.python.org/pypi/pypiserver/
:alt: Development Status
.. |downloads-count| image:: https://pypip.in/download/pypiserver/badge.svg?period=week
:target: https://pypi.python.org/pypi/pypiserver/
:alt: Downloads
.. |github-issues| image:: http://img.shields.io/github/issues/pypiserver/pypiserver.svg
:target: https://github.com/pypiserver/pypiserver/issues
:alt: Issues count

View File

@ -2,19 +2,29 @@
"""generate a single file pypi-server script"""
import os, zlib, cPickle, base64, itertools
import os, zlib, base64, itertools
try:
import cPickle
except ImportError:
import pickle as cPickle
def find_files(path):
for dirpath, dirnames, filenames in os.walk(path):
for f in filenames:
yield os.path.join(dirpath, f)
def myExecFile(file, g, l):
try:
execfile(file, g, l)
except NameError:
with open(file) as fd:
txt = fd.read()
exec(txt, g, l)
def get_version():
d = {}
try:
execfile("pypiserver/__init__.py", d, d)
myExecFile("pypiserver/__init__.py", d, d)
except (ImportError, RuntimeError):
pass
return d["__version__"]
@ -44,8 +54,8 @@ def main():
script = script.replace('@SOURCES@', data)
dst = "pypi-server-standalone.py"
open(dst, "w").write(script)
os.chmod(dst, 0755)
print "created", dst
os.chmod(dst, 755)
print("created %s"%dst)
if __name__ == '__main__':

View File

@ -1,5 +1,5 @@
__version_info__ = (1, 1, 7)
version = __version__ = "1.1.7"
version = __version__ = "1.1.8-beta.0"
def app(root=None,

View File

@ -28,7 +28,7 @@ def get_version():
setup(name="pypiserver",
description="minimal pypi server",
description="A minimal PyPI server for use with pip/easy_install.",
long_description=open("README.rst").read(),
version=get_version(),
packages=["pypiserver"],