Skip to content
Myr

__version__.py

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 539302a · Browse files · 3 files+20 added−15 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+20 added−15 removed

  • other:+20 added−15 removed

3 files+20 added−15 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+13 added
1# -*- coding: utf-8 -*-23# .-. .-. .-. . . .-. .-. .-. .-.4# |( |- |.| | | |- `-. | `-.5# ' ' `-' `-`.`-' `-' `-' ' `-'67__title__ = 'requests'8__version__ = '2.14.2'9__build__ = 0x02140210__author__ = 'Kenneth Reitz'11__license__ = 'Apache 2.0'12__copyright__ = 'Copyright 2017 Kenneth Reitz'13__cake__ = u'✨ 🍰 ✨ Thanks for using my software. It means the world to me. --kennethreitz'
modified:setup.py+6 added-8 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(65 name='requests',68 version=version,66 version=about['__version__'],67 description='Python HTTP for Humans.',68 long_description=readme + '\n\n' + history,69 author='Kenneth Reitz',70 author_email='me@kennethreitz.com',
33 unmodified lines