Skip to content
Myr

Merge pull request #4059 from kennethreitz/version

Before adoption: this commit came in with the history the project adopted, so no landing records it.

__version__.py

authored by Kenneth Reitz · committed by GitHub · parents 539302a, 7abfd92 · Browse files · 3 files+29 added−21 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+29 added−21 removed

  • other:+29 added−21 removed

3 files+29 added−21 removed

modified:requests/__init__.py+1 added-7 removed
38 unmodified lines
39:copyright: (c) 2017 by Kenneth Reitz.40:license: Apache 2.0, see LICENSE for more details.41"""4243__title__ = 'requests'44__version__ = '2.14.2'45__build__ = 0x02140246__author__ = 'Kenneth Reitz'47__license__ = 'Apache 2.0'48__copyright__ = 'Copyright 2017 Kenneth Reitz'49__cake__ = u'✨ 🍰 ✨ Thanks for using my software. It means the world to me. --kennethreitz'43from .__version__ import *4445# Attempt to enable urllib3's SNI support, if possible46try:47 from .packages.urllib3.contrib import pyopenssl
34 unmodified lines
added:requests/__version__.py+16 added
1# -*- coding: utf-8 -*-23# .-. .-. .-. . . .-. .-. .-. .-.4# |( |- |.| | | |- `-. | `-.5# ' ' `-' `-`.`-' `-' `-' ' `-'67__title__ = 'requests'8__description__ = 'Python HTTP for Humans.'9__url__ = 'http://python-requests.org'10__version__ = '2.14.2'11__build__ = 0x02140212__author__ = 'Kenneth Reitz'13__author_email__ = 'me@kennethreitz.org'14__license__ = 'Apache 2.0'15__copyright__ = 'Copyright 2017 Kenneth Reitz'16__cake__ = u'✨ 🍰 ✨ Thanks for using my software. It means the world to me. --kennethreitz'
modified:setup.py+12 added-14 removed
7 unmodified lines
89from setuptools import setup10from setuptools.command.test import test as TestCommand1112here = os.path.abspath(os.path.dirname(__file__))1314class PyTest(TestCommand):15 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]16
11 unmodified lines
2829 errno = pytest.main(self.pytest_args)30 sys.exit(errno)313132# 'setup.py publish' shortcut.33if sys.argv[-1] == 'publish':34 os.system('python setup.py sdist upload')35 sys.exit()36
14 unmodified lines
5152requires = []53test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock']5454with open('requests/__init__.py', 'r', 'utf-8') as fd:55 version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',56 fd.read(), re.MULTILINE).group(1)55about = {}56with open(os.path.join(here, 'requests', '__version__.py')) as f:57 exec(f.read(), about)5858if not version:59 raise RuntimeError('Cannot find version information')6059with open('README.rst', 'r', 'utf-8') as f:60 readme = f.read()61with open('HISTORY.rst', 'r', 'utf-8') as f:62 history = f.read()6364setup(67 name='requests',68 version=version,69 description='Python HTTP for Humans.',65 name=about['__title__'],66 version=about['__version__'],67 description=about['__description__'],68 long_description=readme + '\n\n' + history,71 author='Kenneth Reitz',72 author_email='me@kennethreitz.com',73 url='http://python-requests.org',69 author=about['__author__'],70 author_email=about['__author_email__'],71 url=about['__url__'],72 packages=packages,73 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},74 package_dir={'requests': 'requests'},75 include_package_data=True,76 install_requires=requires,79 license='Apache 2.0',77 license=about['__license__'],78 zip_safe=False,79 classifiers=(80 'Development Status :: 5 - Production/Stable',81 'Intended Audience :: Developers',
22 unmodified lines