Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (49 sloc) 1.795 kb
bad0370 @shazow Modernizing setup.py
authored
1 #!/usr/bin/env python
2
3 from distutils.core import setup
d56d179 @shazow Embedded dummy_server works with HTTPS. Fixed skipped test.
authored
4
b83e69b @shazow Prepping for 1.0 release.
authored
5 import os
6 import re
bad0370 @shazow Modernizing setup.py
authored
7
8 try:
b83e69b @shazow Prepping for 1.0 release.
authored
9 import setuptools
e00e71a @takluyver urllib3 imports on Python 3.
takluyver authored
10 except ImportError:
b83e69b @shazow Prepping for 1.0 release.
authored
11 pass # No 'develop' command, oh well.
bad0370 @shazow Modernizing setup.py
authored
12
58ed53a @shazow Trying to fix setup.py
authored
13 base_path = os.path.dirname(__file__)
c73bf7c @shazow Initial import of source.
authored
14
b83e69b @shazow Prepping for 1.0 release.
authored
15 # Get the version (borrowed from SQLAlchemy)
58ed53a @shazow Trying to fix setup.py
authored
16 fp = open(os.path.join(base_path, 'urllib3', '__init__.py'))
b83e69b @shazow Prepping for 1.0 release.
authored
17 VERSION = re.compile(r".*__version__ = '(.*?)'",
18 re.S).match(fp.read()).group(1)
19 fp.close()
20
21
22 version = VERSION
c73bf7c @shazow Initial import of source.
authored
23
24 setup(name='urllib3',
25 version=version,
b83e69b @shazow Prepping for 1.0 release.
authored
26 description="HTTP library with thread-safe connection pooling, file post, and more.",
58ed53a @shazow Trying to fix setup.py
authored
27 long_description=open('README.rst').read() + '\n\n' + open('CHANGES.rst').read(),
d8e7cb8 @shazow Updated README, setup metadata.
authored
28 classifiers=[
29 'Environment :: Web Environment',
30 'Intended Audience :: Developers',
31 'License :: OSI Approved :: MIT License',
32 'Operating System :: OS Independent',
33 'Programming Language :: Python',
5713ec3 @takluyver Add trove classifiers for Python 2 and 3 compatibility.
takluyver authored
34 'Programming Language :: Python :: 2',
35 'Programming Language :: Python :: 3',
d8e7cb8 @shazow Updated README, setup metadata.
authored
36 'Topic :: Internet :: WWW/HTTP',
37 'Topic :: Software Development :: Libraries',
38 ],
b83e69b @shazow Prepping for 1.0 release.
authored
39 keywords='urllib httplib threadsafe filepost http https ssl pooling',
c73bf7c @shazow Initial import of source.
authored
40 author='Andrey Petrov',
41 author_email='andrey.petrov@shazow.net',
f372a14 @shazow RTD link for pypi
authored
42 url='http://urllib3.readthedocs.org/',
c73bf7c @shazow Initial import of source.
authored
43 license='MIT',
3361f88 @saschpe Don't install dummyserver into site-packages
saschpe authored
44 packages=['urllib3',
b08c501 @shazow Adding 'urllib3.contrib' to setup.py (#167)
authored
45 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',
c5d8a2c @shazow Add urllib3.util.
authored
46 'urllib3.contrib', 'urllib3.util',
06d5019 @takluyver Add mimetools_choose_boundary to packages list in setup.py
takluyver authored
47 ],
7193214 @shazow Less specific `tests_require` for distro package convenience. (Fixes …
authored
48 requires=[],
49 tests_require=[
50 # These are a less-specific subset of dev-requirements.txt, for the
51 # convenience of distro package maintainers.
52 'nose',
53 'mock',
54 'tornado',
55 ],
a464c78 @shazow Messing with tests and readme.
authored
56 test_suite='test',
c73bf7c @shazow Initial import of source.
authored
57 )
Something went wrong with that request. Please try again.