forked from saw-leipzig/csv2cmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·47 lines (39 loc) · 1.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
#!/usr/bin/env python3
from distutils.core import setup
package_name = 'csv2cmi'
filename = package_name + '.py'
def get_version():
import ast
with open(filename) as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
def get_long_description():
try:
with open('README.md', 'r') as f:
return f.read()
except IOError:
return ''
setup(
name=package_name,
version=get_version(),
description='converts a table of letters into CMI format',
long_description=get_long_description(),
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: XML'
],
author='Klaus Rettinghaus',
author_email='rettinghaus@bach-leipzig.de',
url='https://github.com/saw-leipzig/csv2cmi',
py_modules=[package_name],
keywords=[
'TEI',
'CSV',
'CMIF',
'digital humanities',
'correspondence'
],
license='License :: OSI Approved :: MIT License',
)