2011-07-29 02:02:28 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
import os
|
2011-07-29 02:02:28 +02:00
|
|
|
from distutils.core import setup
|
|
|
|
|
2011-07-29 02:41:27 +02:00
|
|
|
|
2011-07-29 02:02:28 +02:00
|
|
|
def get_version():
|
|
|
|
d = {}
|
|
|
|
try:
|
|
|
|
execfile("pypiserver/__init__.py", d, d)
|
|
|
|
except (ImportError, RuntimeError):
|
|
|
|
pass
|
|
|
|
return d["__version__"]
|
|
|
|
|
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
def read_long_description():
|
|
|
|
fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.rst")
|
|
|
|
return open(fn).read()
|
|
|
|
|
|
|
|
|
2011-07-29 02:02:28 +02:00
|
|
|
setup(name="pypiserver",
|
|
|
|
description="minimal pypi server",
|
2011-07-29 03:14:09 +02:00
|
|
|
long_description = read_long_description(),
|
2011-07-29 02:02:28 +02:00
|
|
|
version=get_version(),
|
|
|
|
packages=["pypiserver"],
|
|
|
|
scripts=["pypi-server"],
|
|
|
|
url="https://github.com/schmir/pypiserver",
|
|
|
|
maintainer="Ralf Schmitt",
|
2011-08-01 02:57:43 +02:00
|
|
|
maintainer_email="ralf@systemexit.de",
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"License :: OSI Approved :: zlib/libpng License",
|
|
|
|
"Programming Language :: Python :: 2.5",
|
|
|
|
"Programming Language :: Python :: 2.6",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Topic :: Software Development :: Build Tools",
|
|
|
|
"Topic :: System :: Software Distribution"])
|