-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
79 lines (67 loc) · 2.29 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
74
75
76
77
78
79
# -*- coding: utf-8 -*-
"""Describing local installs or distribution of the package tdvisu."""
from setuptools import setup
from tdvisu.version import __version__ as version
def read_files(files, delim: str = "\n") -> str:
r"""
Concatenate the content of one or more files joined by a delimiter.
Parameters
----------
files : Iterable of single files
Every file is a text or byte string giving the name
(and the path if the file isn't in the current working directory)
of the file to be opened or an integer file descriptor
of the file to be wrapped.
delim : str, optional
The delimiter to be inserted between the contents. The default is "\n".
Returns
-------
str
The concatenated string.
"""
data = []
try:
for file in files:
with open(file, encoding="utf-8") as handle:
data.append(handle.read())
except IOError:
pass
return delim.join(data)
description = "Visualizing Dynamic Programming on Tree Decompositions."
long_description = read_files(["README.md", "CHANGELOG.md"])
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Multimedia :: Graphics :: Presentation",
]
tests_require = ["hypothesis", "pytest", "pytest-mock"]
setup(
name="tdvisu",
version=version,
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/VaeterchenFrost/tdvisu",
author="Martin Röbke",
author_email="martin.roebke@web.de",
license="GPLv3",
packages=["tdvisu"],
platforms="any",
install_requires=[
"graphviz",
"psycopg[c]",
"python-benedict[xml]",
"PyYAML",
],
extras_require={"test": tests_require},
classifiers=classifiers,
keywords="graph visualization dynamic-programming msol-solver",
)