-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
72 lines (65 loc) · 2.13 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
65
66
67
68
69
70
71
72
from setuptools import setup, find_packages
# Dependencies for using the library:
dependencies = [
'pika>=1.0.1,<=1.2.1',
'requests>=2.22.0'
]
# Dependencies for running the tests:
test_dependencies = [
'mock'
]
# Packages to be included for using the library:
packages = [
'esgfpid',
'esgfpid/assistant',
'esgfpid/utils',
'esgfpid/rabbit',
'esgfpid/rabbit/synchronous',
'esgfpid/rabbit/asynchronous',
'esgfpid/solr',
'esgfpid/solr/tasks'
]
# Packages to be included for running the tests:
test_packages = [
'tests',
'tests/resources',
'tests/testcases',
'tests/testcases/solr',
'tests/testcases/rabbit',
'tests/testcases/rabbit/syn',
'tests/testcases/rabbit/asyn',
'tests/utils'
]
# Load description from README.md
# 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='esgfpid',
version='0.8.3-dev',
author='Merret Buurman, German Climate Computing Centre (DKRZ)',
author_email='[email protected]',
url='https://github.com/IS-ENES-Data/esgf-pid',
download_url='https://github.com/IS-ENES-Data/esgf-pid/archive/0.8.0.tar.gz',
description='Library for sending PID requests to a rabbit messaging queue during ESGF publication.',
long_description=long_description,
packages=packages + test_packages,
install_requires=dependencies,
tests_require=test_dependencies,
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False
)