pypiserver/setup.py

57 lines
1.8 KiB
Python
Raw Normal View History

2011-07-29 02:02:28 +02:00
#! /usr/bin/env python
import sys, os
try:
from setuptools import setup
extra = dict(entry_points={
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
'console_scripts': ['pypi-server=pypiserver.core:main']
})
except ImportError:
from distutils.core import setup
extra = dict(scripts=["pypi-server"])
if sys.version_info >= (3, 0):
exec("def do_exec(co, loc): exec(co, loc)\n")
else:
exec("def do_exec(co, loc): exec co in loc\n")
2011-07-29 02:02:28 +02:00
2011-07-29 02:41:27 +02:00
2011-07-29 02:02:28 +02:00
def get_version():
d = {}
try:
do_exec(open("pypiserver/__init__.py").read(), d)
2011-07-29 02:02:28 +02:00
except (ImportError, RuntimeError):
pass
return d["__version__"]
setup(name="pypiserver",
description="minimal pypi server",
2011-12-05 22:36:29 +01:00
long_description=open("README.rst").read(),
2011-07-29 02:02:28 +02:00
version=get_version(),
packages=["pypiserver"],
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",
2011-11-19 21:25:42 +01:00
"Programming Language :: Python :: 2",
2011-08-01 02:57:43 +02:00
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
2011-11-19 21:25:42 +01:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
2012-12-27 21:54:51 +01:00
"Programming Language :: Python :: 3.3",
2011-08-01 02:57:43 +02:00
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Software Distribution"],
**extra)