-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyproject.toml instead of setup.py since pyproject.toml is the ne…
…w standard
- Loading branch information
1 parent
0a45592
commit f93cb82
Showing
5 changed files
with
70 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
__version__ = "0.9.5" | ||
from importlib.metadata import version | ||
|
||
__version__ = version("django-template-lsp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "build"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["djlsp*"] | ||
|
||
[project] | ||
name = "django-template-lsp" | ||
version = "0.9.5" | ||
description = "Django template LSP" | ||
readme = "README.md" | ||
authors = [{name = "Four Digits", email = "info@fourdigits.nl" }] | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GPL3 License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12" | ||
] | ||
keywords = ["django", "template", "lsp", "python"] | ||
dependencies = [ | ||
"pygls", | ||
"jedi" | ||
] | ||
requires-python = ">=3.9" | ||
|
||
[project.scripts] | ||
djlsp = "djlsp.cli:main" | ||
django-template-lsp = "djlsp.cli:main" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
] | ||
dev = [ | ||
"tox", | ||
"black", | ||
"isort", | ||
"flake8", | ||
"pytest", | ||
"pytest-check", | ||
"pytest-cov", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/fourdigits/django-template-lsp" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_first_party = "djlsp" | ||
|
||
[tool.flake8] | ||
max-line-length = 88 | ||
extend-ignore = "W503" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters