-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
70 lines (66 loc) · 2.18 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
import pathlib
from setuptools import find_packages, setup
LICENSE: str = "MIT"
README: str = pathlib.Path("README.md").read_text(encoding="utf-8")
# ---------------------------------------------------------------
# NOTE:
# Since the library name (chalk-diagrams) is different from
# the module (chalk), we set the custom dunder attribute
# __libname__ in chalk/__init__.py and use it there to fetch
# and set __version__ with library metadata inside
# chalk/__init__.py.
# Since, library name will not be changed in future, it is
# being maintained at two places
# 1. setup.py
# 1. chalk/__init__.py
#
# The version will be updated often only from setup.py.
# ---------------------------------------------------------------
LIBNAME: str = "chalk-diagrams"
setup(
name=LIBNAME,
version="0.2.2",
packages=find_packages(
include=["chalk", "chalk*"],
exclude=["examples", "docs", "test*"],
),
description="A declarative drawing API",
install_requires=[
"toolz",
"colour",
"svgwrite",
"Pillow",
"loguru",
"chalk-planar",
"typing-extensions",
"importlib-metadata",
],
extras_require={
"tikz": ["pylatex"],
"latex": ["latextools"],
"png": ["pycairo"],
"svg": ["cairosvg"],
},
long_description=README,
long_description_content_type="text/markdown",
author="Dan Oneață",
author_email="[email protected]",
url="https://github.com/chalk-diagrams/chalk",
project_urls={
"Documentation": "https://chalk-diagrams.github.io",
"Source Code": "https://github.com/chalk-diagrams/chalk",
"Issue Tracker": "https://github.com/chalk-diagrams/chalk/issues",
},
license=LICENSE,
license_files=("LICENSE",),
classifiers=[
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
f"License :: OSI Approved :: {LICENSE} License",
"Topic :: Scientific/Engineering",
],
)