-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
110 lines (95 loc) · 3.42 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
PACKAGE = "pyqueuer"
NAME = "PyQueuer"
DESCRIPTION = "A tool for automatically sending/receiving message to/from MQ such as RabbitMQ, Kafka and so on."
AUTHOR = "Samuel Chen"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/samuelchen/pyqueuer"
VERSION = __import__(PACKAGE).__version__
REQUIREMENTS = []
with open('requirements.txt', 'rt') as f:
for line in f.readlines():
REQUIREMENTS.append(line)
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
LONG_DESC = read_md('README.md')
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESC,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="GPL 3.0",
url=URL,
# package_dir={'': '.'},
packages=find_packages(),
# package_data={
# '': ['*.md', '*.txt', '*.py', '*.ini'],
# 'docs': ['*'],
# # 'pyqueuer': ['static/*/*/*/*', 'templates/*'],
# },
# package_data=find_package_data(
# PACKAGE,
# only_in_packages=False
# ),
include_package_data=True,
exclude_package_data={
'': ['*.pyc'],
},
platforms='any',
# What does your project relate to?
keywords='python mq broker rabbitmq kafka test tool',
# Must check with "requirements.txt" while releasing.
# See;
# https://python-packaging-user-guide.readthedocs.org/en/latest/requirements/#install-requires-vs-requirements-files
install_requires=REQUIREMENTS,
classifiers=[
# How mature is this project? Common values are
# 2 - Pre-Alpha
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for.
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Testing',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
# 'Programming Language :: Python :: 2.6',
# 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
"Environment :: Web Environment",
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Framework :: Django",
],
zip_safe=False,
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'pyqueuer = pyqueuer.cli:execute',
],
}
)