2011-07-29 02:02:28 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
2011-11-08 00:10:45 +01:00
|
|
|
import sys, os
|
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools import setup
|
2012-08-22 20:33:19 +02:00
|
|
|
extra = dict(entry_points={
|
|
|
|
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
|
|
|
|
'console_scripts': ['pypi-server=pypiserver.core:main']
|
|
|
|
})
|
2011-11-08 00:10:45 +01:00
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2012-08-22 21:47:57 +02:00
|
|
|
extra = dict(scripts=["pypi-server"])
|
2011-11-08 00:10:45 +01:00
|
|
|
|
|
|
|
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:
|
2011-11-08 00:10:45 +01:00
|
|
|
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"],
|
2014-11-14 00:36:32 +01:00
|
|
|
package_data={'pypiserver': ['welcome.html']},
|
2011-07-29 02:02:28 +02:00
|
|
|
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",
|
2012-04-07 23:53:48 +02:00
|
|
|
"Topic :: System :: Software Distribution"],
|
2014-11-14 00:36:32 +01:00
|
|
|
zip_safe=False,
|
2012-04-07 23:53:48 +02:00
|
|
|
**extra)
|