-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
83 lines (77 loc) · 2.54 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
81
82
83
#!usr/bin/env python3
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext
import os.path as op
import re
def read(file, pattern = None):
this_dir = op.abspath(op.dirname(__file__))
with open(op.join(this_dir, file), encoding='utf-8') as fd:
text = fd.read().strip()
if pattern:
text = re.findall(pattern, text)[0]
return text
# Extract the __version__ value from __init__.py
version = read('aiormqpc/__init__.py', r'__version__ = "([^"]+)"')
# Use the entire README
long_description = read('README.md')
# Dependencies from requirements
install_requires = """
pydantic==1.8.2
msgpack==1.0.2
aiormq==5.2.1
pamqp==3.0.1
"""
setup(
name="aiormqpc",
version=version,
description="A simple RPC library based on aiormq, msgpack, and pydantic.",
long_description=long_description,
long_description_content_type='text/markdown',
author="Mathew Utter",
author_email="mcutter.svc@gmail.com",
license="MIT",
url="http://github.com/matutter/aiormqpc",
keywords=' '.join([
'python',
'aiormq',
'RabbitMQ',
'msgpack',
'rpc'
]),
classifiers=[
'Programming Language :: Python :: 3.7',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: BSD',
'Operating System :: Microsoft :: Windows :: Windows Vista',
'Operating System :: Microsoft :: Windows :: Windows 7',
'Operating System :: Microsoft :: Windows :: Windows 8',
'Operating System :: Microsoft :: Windows :: Windows 8.1',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Filesystems',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages=find_packages(include=['aiormqpc']),
install_requires=install_requires,
requires=re.findall(r'^\w+', install_requires, re.MULTILINE),
cmdclass={
'build_ext': build_ext,
},
python_requires='>=3.6.1',
# Due to README.md, requirements.txt, etc...
zip_safe=True
)