mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
"""Djlint setup."""
|
|
|
|
from pathlib import Path
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
project_path = Path(__file__).parent
|
|
|
|
|
|
def long_description():
|
|
"""Build long description from readme and changelog."""
|
|
return (
|
|
(project_path / "README.md").read_text(encoding="utf8")
|
|
+ "\n\n"
|
|
+ (project_path / "CHANGELOG.md").read_text(encoding="utf8")
|
|
)
|
|
|
|
|
|
setup(
|
|
name="djlint",
|
|
version="0.0.1",
|
|
author="Christopher Pickering",
|
|
author_email="cpickering@rhc.net",
|
|
description="Django Template Linter",
|
|
long_description=long_description(),
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/Riverside-Healthcare/djlint",
|
|
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",
|
|
install_requires=["click>=7.1.2", "appdirs", "toml", "pyyaml"],
|
|
test_suite="tests.test_djlint",
|
|
extras_require={
|
|
"colorama": ["colorama>=0.4.3"],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"djlint=djlint:patched_main",
|
|
]
|
|
},
|
|
)
|