forked from named-data/PyNDN2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (47 loc) · 2.01 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
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
# This uses the template https://github.com/pypa/sampleproject/blob/master/setup.py
# and from Alex Afanasyev's file at https://github.com/cawka/PyNDN2/blob/master/setup.py
# To build/upload the package, do the following as described in
# https://python-packaging-user-guide.readthedocs.org/en/latest/distributing.html
# sudo python3 setup.py sdist
# sudo python3 setup.py bdist_wheel --universal
# sudo python3 setup.py sdist bdist_wheel upload
from setuptools import setup, find_packages # Always prefer setuptools over distutils
import sys
requirements = ['cryptography']
if sys.version_info[0] == 2:
requirements.append('trollius')
requirements.append('protobuf')
elif sys.version_info[0] == 3:
requirements.append('protobuf')
if sys.version_info[1] < 3:
requirements.append('trollius')
elif sys.version_info[1] < 4:
requirements.append('asyncio')
setup(
name='PyNDN',
version='2.10b1',
description='An NDN client library with TLV wire format support in native Python',
url='https://github.com/named-data/PyNDN2',
maintainer='Jeff Thompson',
maintainer_email='jefft0@remap.ucla.edu',
license='LGPLv3',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Programming Language :: Python :: 2',
'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',
],
keywords='NDN',
packages=find_packages('python'),
package_dir = {'':'python'},
install_requires=requirements
)