-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (50 loc) · 1.67 KB
/
setup.py
File metadata and controls
57 lines (50 loc) · 1.67 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
46
47
48
49
50
51
52
53
54
55
56
57
"""Nanoservice installation script
https://github.com/walkr/nanoservice
"""
#!/usr/bin/env python
import sys
from setuptools import setup
def read_long_description(readme_file):
""" Read package long description from README file """
try:
import pypandoc
except (ImportError, OSError) as exception:
print('No pypandoc or pandoc: %s' % (exception,))
if sys.version_info.major == 3:
handle = open(readme_file, encoding='utf-8')
else:
handle = open(readme_file)
long_description = handle.read()
handle.close()
return long_description
else:
return pypandoc.convert(readme_file, 'rst')
setup(
name='nanoservice',
version='0.7.2',
packages=['nanoservice'],
author='Tony Walker',
author_email='walkr.walkr@gmail.com',
url='https://github.com/walkr/nanoservice',
license='MIT',
description='nanoservice is a small Python library for '
'writing lightweight networked services using nanomsg',
long_description=read_long_description('README.md'),
install_requires=[
'msgpack-python',
'nanomsg',
'nose',
],
dependency_links=[
'git+https://github.com/tonysimpson/nanomsg-python.git@master#egg=nanomsg',
],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
)