forked from tiliv/django-bootstrap-templatetags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated project configuration and dependencies Removed requirements files and setup.py and replaced it with configuration in pyproject.toml. This includes specifying dependencies and optional dependencies for testing. Also, updated Python version to 3.12 in project settings to reflect changelog. Changed Python version from 3.10 to 3.12 in Github workflows. Also replaced older dependency installation method, based on setup.py and requirements.txt, with a simpler approach, by installing projects directly using pip install . and pip install .[test]. These changes aim to make dependency management simpler and more efficient. --------- Signed-off-by: Steven K <[email protected]>
- Loading branch information
Showing
9 changed files
with
135 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
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,6 +1,78 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "django-bootstrap-templatetags" | ||
dynamic = ["version"] | ||
description = "Vanilla Bootstrap structures in simple rendering blocks" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{ name = "Pivotal Energy Solutions", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"django", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"django>=4.2", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"django-environ", | ||
"mysqlclient", | ||
"flake8", | ||
"coverage", | ||
"pre-commit", | ||
"black", | ||
"bandit" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pivotal-energy-solutions/django-bootstrap-templatetags" | ||
Issues = "https://github.com/pivotal-energy-solutions/django-bootstrap-templatetags/issues" | ||
Download = "https://github.com/pivotal-energy-solutions/django-bootstrap-templatetags" | ||
Thanks = "https://saythanks.io/to/rh0dium" | ||
Source = "https://github.com/pivotal-energy-solutions/django-bootstrap-templatetags/" | ||
|
||
[tool.hatch.version] | ||
path = "bootstrap_templatetags/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/bootstrap_templatetags", | ||
"/bootstrap_templatetags/templates/**/*", | ||
"/bootstrap_templatetags/static/**/*", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ['bootstrap_templatetags'] | ||
include = [ | ||
"/bootstrap_templatetags/templates/**/*", | ||
"/bootstrap_templatetags/static/**/*", | ||
] | ||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py310'] | ||
target-version = ['py311'] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
|
@@ -13,8 +85,31 @@ exclude = ''' | |
| dist | ||
)/ | ||
''' | ||
extend-exclude = ''' | ||
# A regex preceded with ^/ will apply only to files and directories | ||
# in the root of the project. | ||
/static/.py # exclude a file named foo.py in the root of the project (in addition to the defaults) | ||
''' | ||
|
||
[tool.bandit] | ||
targets = ['bootstrap_templatetags'] | ||
exclude_dirs = ["bootstrap_templatetags/tests.py", "demo"] | ||
skips = ["B308", "B703", ] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
command_line = "demo/manage.py test --noinput --settings=demo.settings_test bootstrap_templatetags" | ||
omit = [ | ||
"*/demo/**", | ||
"*/migrations/*", | ||
"*/tests/**", | ||
] | ||
|
||
[tool.coverage.report] | ||
fail_under = 65 | ||
precision = 1 | ||
skip_covered = true | ||
skip_empty = true | ||
ignore_errors = true | ||
sort = "cover" | ||
|
||
[tool.bumper] | ||
exclude = [".idea", ".github", "demo"] | ||
version_files = ["bootstrap_templatetags/__init__.py"] | ||
repo = "pivotal-energy-solutions/django-bootstrap-templatetags" | ||
report = "out.json" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.