-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
97 lines (85 loc) · 2.39 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import os
import io
from setuptools import setup, find_packages
# Helpers
def read(*paths):
"""Read a text file."""
basedir = os.path.dirname(__file__)
fullpath = os.path.join(basedir, *paths)
contents = io.open(fullpath, encoding="utf-8").read().strip()
return contents
# Prepare
PACKAGE = "livemark"
NAME = PACKAGE.replace("_", "-")
TESTS_REQUIRE = [
"mypy",
"black",
# TODO: remove after the fix
# https://github.com/klen/pylama/issues/224
"pyflakes==2.4.0",
"pylama",
"pytest",
"ipython",
"pytest-cov",
"pytest-vcr",
"pytest-only",
]
EXTRAS_REQUIRE = {
"dev": TESTS_REQUIRE,
}
INSTALL_REQUIRES = [
"attrs>=22.0",
"marko==1.*",
"pyyaml>=5.3",
"jinja2>=3.0",
"pyquery==1.*",
"deepmerge>=0.3",
"gitpython>=3.1",
"jsonschema>=2.5",
"typer>=0.12",
"livereload>=2.6",
"giturlparse>=0.10",
"cached_property>=1.5",
"docstring-parser>=0.10",
"frictionless[excel,json]>=4.0",
]
README = read("README.md")
VERSION = read(PACKAGE, "assets", "VERSION")
PACKAGES = find_packages(exclude=["tests"])
ENTRY_POINTS = {"console_scripts": ["livemark = livemark.__main__:program"]}
# Run
setup(
name=NAME,
version=VERSION,
packages=PACKAGES,
include_package_data=True,
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
extras_require=EXTRAS_REQUIRE,
entry_points=ENTRY_POINTS,
zip_safe=False,
long_description=README,
long_description_content_type="text/markdown",
description="Data presentation framework for Python that generates static sites from extended Markdown with interactive charts, tables, scripts, and other features.",
author="Evgeny Karev",
author_email="[email protected]",
url="https://github.com/frictionlessdata/livemark",
license="MIT",
keywords=[
"livemark",
"markdown",
"documentation",
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)