-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
73 lines (62 loc) · 2.58 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
73
# This is your "setup.py" file.
# See the following sites for general guide to Python packaging:
# * `The Hitchhiker's Guide to Packaging <http://guide.python-distribute.org/>`_
# * `Python Project Howto <http://infinitemonkeycorps.net/docs/pph/>`_
from setuptools import setup, find_packages
import os
import sys
version = '2021-10-07'
install_requires = [
# List your project dependencies here.
# For more details, see:
# http://packages.python.org/distribute/setuptools.html#declaring-dependencies
]
# ~ def gen_data_files(src_dir):
# ~ """
# ~ generates a list of files contained in the given directory (and its
# ~ subdirectories) in the format required by the ``package_data`` parameter
# ~ of the ``setuptools.setup`` function.
# ~ Parameters
# ~ ----------
# ~ src_dir : str
# ~ (relative) path to the directory structure containing the files to
# ~ be included in the package distribution
# ~ Returns
# ~ -------
# ~ fpaths : list(str)
# ~ a list of file paths
# ~ """
# ~ fpaths = []
# ~ base = os.path.dirname(src_dir)
# ~ for root, dir, files in os.walk(src_dir):
# ~ if len(files) != 0:
# ~ for f in files:
# ~ fpaths.append(os.path.relpath(os.path.join(root, f), base))
# ~ return fpaths
# ~ distribution_files = [('.', ['./NEWS.rst', './Makefile', './LICENSE', './README.rst', './Dockerfile'])]
setup(name='rstconverter',
version=version,
description="library and web service to convert between different Rhetorical Structure Theory file formats",
# ~ long_description=README + '\n\n' + NEWS,
# Get classifiers from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=["Programming Language :: Python :: 2.7"],
keywords='rst rs3 rhetorical-structure rhetorical-structure-theory linguistics converter',
author='Arne Neumann',
author_email='rst-converter-service.programming@arne.cl',
url='https://github.com/rst-workbench/rst-converter-service',
license='3-Clause BSD License',
packages=find_packages("src"),
package_dir = {'': "src"},
# ~ package_data = {'discoursegraphs': gen_data_files('src/discoursegraphs/data')},
# ~ include_package_data=True,
# ~ data_files = distribution_files,
zip_safe=False,
install_requires=install_requires,
#setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-ordering'],
entry_points={
'console_scripts':
['rst-converter=rstconverter.cli:main',
'rst-converter-service=rstconverter.app:main']
}
)