-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
80 lines (63 loc) · 2.55 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
import re
from io import open as io_open
from setuptools import setup, find_packages, Command
with open("README.md", "r") as fh:
long_description = fh.read()
base_path = os.path.abspath(os.path.dirname(__file__))
def readall(*args):
with io_open(os.path.join(base_path, *args), encoding="utf-8") as fp:
return fp.read()
metadata = dict(
re.findall(r"""__([a-z]+)__ = "([^"]+)""", readall("pysqs_extended_client", "__init__.py"))
)
# What packages are required for this module to be executed?
try:
with open(os.path.join(base_path, "requirements.txt"), encoding="utf-8") as f:
required_packages = f.read().split("\n")
except:
required_packages = []
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system("rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info")
setup(
name="pysqs-extended-client",
version=metadata["version"],
author="timothy.mugayi",
author_email="[email protected]",
description="Amazon SQS Extended Client Library for Python for sending large payloads that exceed sqs limitations via S3",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/timothymugayi/boto3-sqs-extended-client-lib",
platforms='any',
packages=[p for p in find_packages() if not p.startswith('tests')],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
zip_safe=True,
install_requires=required_packages,
keywords = ['SQS client python', 'SQS client', 'sqs extended client', 'aws sqs client', 'boto sqs client', 'large message sqs', 'sqs s3', 'sqs'],
cmdclass={
'clean': CleanCommand,
}
)