-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (44 loc) · 1.45 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
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
description = "Tarantool Queue python/asyncio bindings"
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = description
def find_version():
for line in open("asynctnt_queue/__init__.py"):
if line.startswith("__version__"):
return re.match(
r"""__version__\s*=\s*(['"])([^'"]+)\1""", line).group(2)
setup(
name="asynctnt-queue",
packages=["asynctnt_queue"],
include_package_data=True,
version=find_version(),
author="igorcoding",
author_email="[email protected]",
url='https://github.com/igorcoding/asynctnt-queue',
license='Apache Software License',
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database :: Front-Ends"
],
install_requires=[
'asynctnt>=0.1.10'
],
description=description,
long_description=long_description,
test_suite='run_tests.discover_tests'
)