-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (42 loc) · 1.5 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
import os
import sys
import fastentrypoints
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst")) as f:
README = f.read()
with open(os.path.join(here, "CHANGES.txt")) as f:
CHANGES = f.read()
install_requires = ["jinja2", "dictknife[load]", "magicalimport", "inflection"]
if sys.version_info[:2] < (3, 7):
install_requires.append("importlib_resources")
docs_extras = ["sphinx", "recommonmark", "sphinx_rtd_theme"]
tests_require = []
testing_extras = tests_require + []
setup(
name="kamidana",
version=open("VERSION").read().strip(),
description="command line jinja2 template (yet another j2cli)",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
],
keywords="jinja2, cli, commandline",
author="podhmo",
author_email="[email protected]",
url="https://github.com/podhmo/kamidana",
packages=find_packages(exclude=["kamidana.tests"]),
long_description_content_type="text/x-rst",
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={"testing": testing_extras, "docs": docs_extras},
tests_require=tests_require,
test_suite="kamidana.tests",
entry_points="""
[console_scripts]
kamidana=kamidana.commands.onefile:main
kamidana-batch=kamidana.commands.manyfiles:main
""",
)