-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (41 loc) · 1.23 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
from setuptools import setup, find_packages
from distutils.core import Extension
README = 'README.md'
with open('requirements.txt') as f:
requirements = f.readlines()
def long_desc():
try:
import pypandoc
except ImportError:
with open(README) as f:
return f.read()
else:
return pypandoc.convert(README, 'rst')
setup(
name='aionanomsg',
version='2',
ext_modules=[
Extension('aionanomsg._nanomsg',
sources=['aionanomsg/_nanomsg.c'],
libraries=['nanomsg'],
library_dirs=['/usr/local/lib'],
),
],
description='Asyncio lib for nanomsg (with c bindings)',
author='Justin Mayfield',
author_email='[email protected]',
url='https://github.com/mayfield/aionanomsg/',
license='MIT',
long_description=long_desc(),
packages=find_packages(),
test_suite='test',
install_requires=requirements,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
]
)