-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (49 loc) · 1.61 KB
/
setup.py
File metadata and controls
53 lines (49 loc) · 1.61 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
from __future__ import print_function
import setuptools
import sys
version = '0.9.2'
# Convert README.md to reStructuredText.
if {'bdist_wheel', 'sdist'}.intersection(sys.argv):
try:
import pypandoc
except ImportError:
print('WARNING: You should install `pypandoc` to convert `README.md` '
'to reStructuredText to use as long description.',
file=sys.stderr)
else:
print('Converting `README.md` to reStructuredText to use as long '
'description.')
long_description = pypandoc.convert('README.md', 'rst')
setuptools.setup(
name='edtf',
use_scm_version={'version_scheme': 'post-release'},
url='https://github.com/ixc/python-edtf',
author='Greg Turner',
author_email='greg@interaction.net.au',
description='Python implementation of Library of Congress EDTF (Extended '
'Date Time Format) specification',
long_description=locals().get('long_description', ''),
license='MIT',
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=[
'python-dateutil'
'pyparsing',
],
setup_requires=[
'setuptools_scm',
],
keywords=[
'edtf',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
)