forked from itu-p1203/itu-p1203
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·62 lines (56 loc) · 1.92 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# get version
with open(path.join(here, 'itu_p1203', '__init__.py')) as version_file:
version = eval(version_file.read().split("\n")[0].split("=")[1].strip())
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the history from the CHANGES file
with open(path.join(here, 'CHANGES'), encoding='utf-8') as f:
history = f.read()
try:
import pypandoc
long_description = pypandoc.convert_text(long_description, 'rst', format='md')
history = pypandoc.convert_text(history, 'rst', format='md')
except ImportError:
print("pypandoc module not found, could not convert Markdown to RST")
setup(
name='itu_p1203',
version=version,
description="ITU-T P.1203 Standalone Model",
long_description=long_description + '\n\n' + history,
# author="Werner Robitza",
# author_email='[email protected]',
# url='https://example.com/',
packages=['itu_p1203'],
include_package_data=True,
install_requires=["numpy", "scipy", "pandas"],
package_data={
'': ['itu_p1203/trees/*']
},
# license="Custom",
zip_safe=False,
keywords='video, p1203',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Multimedia :: Video',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
entry_points={
'console_scripts': [
'p1203-standalone = itu_p1203.__main__:main'
]
},
)