-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.16 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.16 KB
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
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='longerpull',
version='1',
description='AIO service for long-pull style RPC',
author='Justin Mayfield',
author_email='tooker@gmail.com',
url='https://github.com/mayfield/longerpull/',
license='MIT',
long_description=long_desc(),
packages=find_packages(),
ext_modules=[
Extension('longerpull._protocol',
sources=['longerpull/_protocol.c'],
libraries=['z']
)
],
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',
]
)