mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-12 14:37:50 +00:00
be5d687375
--HG-- extra : rebase_source : 006da9e865e18df3d9ded6edbc00a96fec672dad
69 lines
1.8 KiB
Python
Executable File
69 lines
1.8 KiB
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
|
|
import requests
|
|
|
|
from codecs import open
|
|
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
if sys.argv[-1] == 'publish':
|
|
os.system('python setup.py sdist upload')
|
|
sys.exit()
|
|
|
|
packages = [
|
|
'requests',
|
|
'requests.packages',
|
|
'requests.packages.chardet',
|
|
'requests.packages.urllib3',
|
|
'requests.packages.urllib3.packages',
|
|
'requests.packages.urllib3.contrib',
|
|
'requests.packages.urllib3.util',
|
|
'requests.packages.urllib3.packages.ssl_match_hostname',
|
|
]
|
|
|
|
requires = []
|
|
|
|
with open('README.rst', 'r', 'utf-8') as f:
|
|
readme = f.read()
|
|
with open('HISTORY.rst', 'r', 'utf-8') as f:
|
|
history = f.read()
|
|
|
|
setup(
|
|
name='requests',
|
|
version=requests.__version__,
|
|
description='Python HTTP for Humans.',
|
|
long_description=readme + '\n\n' + history,
|
|
author='Kenneth Reitz',
|
|
author_email='me@kennethreitz.com',
|
|
url='http://python-requests.org',
|
|
packages=packages,
|
|
package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},
|
|
package_dir={'requests': 'requests'},
|
|
include_package_data=True,
|
|
install_requires=requires,
|
|
license='Apache 2.0',
|
|
zip_safe=False,
|
|
classifiers=(
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Developers',
|
|
'Natural Language :: English',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4'
|
|
|
|
),
|
|
extras_require={
|
|
'security': ['pyOpenSSL', 'ndg-httpsclient', 'pyasn1'],
|
|
},
|
|
)
|