-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (52 loc) · 1.72 KB
/
setup.py
File metadata and controls
64 lines (52 loc) · 1.72 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
54
55
56
57
58
59
60
61
62
63
64
from setuptools import setup, find_packages
import os.path
# Version comes from a file 'version' in the main directory, if it
# exists; otherwise it has a sensible (but probably wrong) default
def readversion():
try:
with open('version') as f:
return f.read().rstrip()
except IOError:
return "1.0.0"
# Long description comes from the README
def readme():
try:
with open('README.md') as f:
return f.read()
except IOError:
return "The long description appears to be missing."
# History comes from git log
def history():
try:
with open('HISTORY.md') as f:
return "HISTORY\n=======\n\n" + f.read()
except IOError:
return ""
# The meat
setup(
name='tpen2tei',
version=readversion(),
description='A module for conversion of SharedCanvas-JSON transcription data to TEI XML',
long_description=readme() + "\n\n" + history(),
long_description_content_type="text/markdown",
# The project's main homepage.
url='https://github.com/DHUniWien/tpen2tei',
# Author details
author='Tara L Andrews',
author_email='tla@mit.edu',
# Choose your license
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Text Processing :: Markup :: XML',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='TEI-XML SC-JSON manuscript transcription',
packages=find_packages(exclude=['contrib', 'tests']),
install_requires=['lxml'],
python_requires='>3'
)