forked from EUDAT-B2HANDLE/B2HANDLE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (47 loc) · 1.64 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
from setuptools import setup, find_packages
import sys, os
version = '1.0.2'
# Set common test dependencies
test_dependencies = [
'mock',
'nose',
]
if sys.version_info < (2, 7):
test_dependencies.append('argparse')
test_dependencies.append('unittest2')
# Note: The package maintainer needs pypandoc and pygments to properly convert
# the Markdown-formatted README into RestructuredText before uploading to PyPi
# See https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description=open('README.md').read()
setup(name='b2handle',
version=version,
description=('Library for management of handles '
'in the EUDAT project.'),
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=['handles', 'PIDs'],
author='EUDAT project, subtask 5.3.3',
author_email='[email protected]',
url='http://eudat-b2safe.github.io/B2HANDLE',
download_url='https://github.com/EUDAT-B2SAFE/B2HANDLE',
packages=['b2handle', 'b2handle/tests'],
zip_safe=False,
install_requires=[
'requests',
'uuid',
'datetime',
],
tests_require=test_dependencies,
test_suite="nose.collector",
)