djLint/setup.py

66 lines
1.6 KiB
Python
Raw Normal View History

2021-07-12 18:26:46 +00:00
"""Djlint setup."""
from pathlib import Path
from setuptools import find_packages, setup
project_path = Path(__file__).parent
2021-08-30 13:10:56 +00:00
__version__ = "0.3.2"
2021-07-27 21:06:47 +00:00
2021-07-12 18:26:46 +00:00
def long_description():
"""Build long description from readme and changelog."""
return (
2021-07-29 19:12:14 +00:00
(project_path / "README.md").read_text(encoding="utf8")
2021-07-12 18:26:46 +00:00
+ "\n\n"
+ (project_path / "CHANGELOG.md").read_text(encoding="utf8")
)
2021-07-13 15:45:57 +00:00
test_deps = ["coverage", "pytest", "pytest-xdist", "pytest-cov"]
extras = {
"test": test_deps,
}
2021-07-12 18:26:46 +00:00
setup(
name="djlint",
2021-07-27 21:06:47 +00:00
version=__version__,
2021-07-12 18:26:46 +00:00
author="Christopher Pickering",
author_email="cpickering@rhc.net",
description="Django Template Linter",
long_description=long_description(),
2021-07-29 19:12:14 +00:00
long_description_content_type="text/markdown",
2021-07-29 19:46:29 +00:00
project_urls={
"Documentation": "https://djlint.readthedocs.io",
"Source": "https://github.com/Riverside-Healthcare/djlint",
},
url="",
2021-07-12 19:23:20 +00:00
include_package_data=True,
package_data={"djlint": ["rules.yaml"]},
2021-07-12 18:26:46 +00:00
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6",
2021-07-29 18:41:34 +00:00
install_requires=[
"click>=7.1.2",
"pyyaml>=5.4.1",
"colorama>=0.4.3",
"regex>=2020.11.13",
2021-07-30 17:37:57 +00:00
"tqdm>=4.61.2",
2021-07-29 18:41:34 +00:00
],
2021-07-12 18:26:46 +00:00
test_suite="tests.test_djlint",
entry_points={
"console_scripts": [
2021-07-12 19:23:20 +00:00
"djlint=djlint:main",
2021-07-12 18:26:46 +00:00
]
},
2021-07-13 15:45:57 +00:00
tests_require=test_deps,
extras_require=extras,
2021-07-12 18:26:46 +00:00
)