1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00

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

@ -3,13 +3,16 @@
============================================================================== ==============================================================================
pypiserver - minimal PyPI server for use with pip/easy_install 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> :Authors: Ralf Schmitt <ralf@systemexit.de>,
:Version: 1.1.7 Kostis Anagnostopoulos <ankostis@gmail.com>
:Version: 1.1.8-beta.0
:Date: 2015-03-8 :Date: 2015-03-8
:Source: https://github.com/pypiserver/pypiserver :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 :TravisCI: https://travis-ci.org/pypiserver/pypiserver
:License: zlib/libpng + MIT
.. contents:: Table of Contents .. contents:: Table of Contents
:backlinks: top :backlinks: top
@ -18,7 +21,7 @@ pypiserver - minimal PyPI server for use with pip/easy_install
*pypiserver* is a minimal PyPI_ compatible server. *pypiserver* is a minimal PyPI_ compatible server.
It can be used to upload and serve packages, wheels and eggs It can be used to upload and serve packages, wheels and eggs
to *pip* or *easy_install*. to *pip* or *easy_install*.
The packages are stored inside a regular directory. The packages are stored in regular directories.
@ -505,3 +508,23 @@ See the `LICENSE.txt` file.
.. _bottle: http://bottlepy.org .. _bottle: http://bottlepy.org
.. _PyPI: http://pypi.python.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

@ -2,19 +2,29 @@
"""generate a single file pypi-server script""" """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): def find_files(path):
for dirpath, dirnames, filenames in os.walk(path): for dirpath, dirnames, filenames in os.walk(path):
for f in filenames: for f in filenames:
yield os.path.join(dirpath, f) 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(): def get_version():
d = {} d = {}
try: try:
execfile("pypiserver/__init__.py", d, d) myExecFile("pypiserver/__init__.py", d, d)
except (ImportError, RuntimeError): except (ImportError, RuntimeError):
pass pass
return d["__version__"] return d["__version__"]
@ -44,8 +54,8 @@ def main():
script = script.replace('@SOURCES@', data) script = script.replace('@SOURCES@', data)
dst = "pypi-server-standalone.py" dst = "pypi-server-standalone.py"
open(dst, "w").write(script) open(dst, "w").write(script)
os.chmod(dst, 0755) os.chmod(dst, 755)
print "created", dst print("created %s"%dst)
if __name__ == '__main__': if __name__ == '__main__':

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

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