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",
|
2015-03-08 23:21:35 +01:00
|
|
|
description="A minimal PyPI server for use with pip/easy_install.",
|
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']},
|
2015-02-27 23:02:07 +01:00
|
|
|
url="https://github.com/pypiserver/pypiserver",
|
|
|
|
maintainer="Ralf Schmitt, Kostis Anagnostopoulos",
|
|
|
|
maintainer_email="ralf@systemexit.de, ankostis@gmail.com",
|
2011-08-01 02:57:43 +02:00
|
|
|
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",
|
2015-02-27 23:02:07 +01:00
|
|
|
"Operating System :: MacOS :: MacOS X",
|
|
|
|
"Operating System :: Microsoft :: Windows",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: OS Independent",
|
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",
|
2015-02-16 00:09:13 +01:00
|
|
|
"Programming Language :: Python :: 3.4",
|
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)
|