forked from tedder/requests-aws4auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (55 loc) · 2.06 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import os
import codecs
import re
from setuptools import setup
def read(*names):
with open(
os.path.join(os.path.dirname(__file__), *names),
encoding='utf-8'
) as f:
return f.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
with codecs.open('README.md', 'r', 'utf-8') as f:
readme = f.read()
with codecs.open('HISTORY.md', 'r', 'utf-8') as f:
history = f.read()
version = find_version('requests_aws4auth', '__init__.py')
setup(
name='requests-aws4auth',
version=version,
description='AWS4 authentication for Requests',
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
author='Ted Timmons',
author_email='ted@tedder.dev',
url='https://github.com/tedder/requests-aws4auth',
download_url=('https://github.com/tedder/requests-aws4auth/tarball/' + version),
license='MIT License',
keywords='requests authentication amazon web services aws s3 REST',
install_requires=['requests'],
extras_require={
'httpx': ['httpx',]
},
packages=['requests_aws4auth'],
package_data={'requests_aws4auth': ['test/requests_aws4auth_test.py']},
python_requires=">=3.7",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Internet :: WWW/HTTP'])