-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to pyproject.toml * Make .gitignore ignore all dot-files by default * Support only current djangos and pythons * Upgrade github-actions * Ensure syntax errors halts a github actions run
- Loading branch information
Showing
10 changed files
with
122 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[bumpversion] | ||
current_version = 1.2.0 | ||
files = setup.cfg README.rst | ||
files = src/verification/__init__.py README.rst | ||
commit = False | ||
tag = False | ||
|
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,11 +1,14 @@ | ||
.* | ||
!.bumpversion.cfg | ||
!.github | ||
!.gitignore | ||
!.pre-commit-config.yaml | ||
*.pyc | ||
*.pyo | ||
*.swp | ||
*.sqlite | ||
*.egg-info | ||
*~ | ||
.coverage | ||
.tox | ||
htmlcov | ||
dist | ||
build |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "django-verification" | ||
description = "Generalized app for two-step verification" | ||
authors = [{name = "kaleissin", email = "[email protected]"}] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Framework :: Django :: 3.2", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = ["Django>=3.2,<5.1"] | ||
dynamic = ["version"] | ||
readme = "README.rst" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/kaleissin/django-verification" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
only-packages = true | ||
sources = ["src"] | ||
only-include = ["src/verification"] | ||
|
||
[tool.hatch.version] | ||
path = "src/verification/__init__.py" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
skip_empty = true | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"def __repr__", | ||
"if settings.DEBUG", | ||
"assert False", | ||
"raise AssertionError", | ||
"raise NotImplemented", | ||
"if 0:", | ||
"if False:", | ||
"if None:", | ||
"if __name__ == .__main__.:", | ||
] | ||
|
||
[tool.flake8] | ||
exclude = ".*,__pycache__,docs,migrations,*.py?,static,templates,*.csv,*.json,build,dist" |
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 @@ | ||
default_app_config = 'verification.apps.VerificationConfig' | ||
__version__ = "1.2.0" |
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,16 +1,24 @@ | ||
[tox] | ||
isolated_build = true | ||
envlist = | ||
py{36,37,38,39}-django{32} | ||
py{38,39,310}-django{32} | ||
py{38,39,310,311,312}-django{42} | ||
py{310,311,312}-django{50} | ||
|
||
[gh-actions] | ||
python = | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH = {toxinidir}/src | ||
# setenv = | ||
# PYTHONPATH = {toxinidir}/src | ||
commands = | ||
python runtests.py | ||
deps = | ||
django32: django>=3.2,<4.0 | ||
django32: django>=3.2,<4 | ||
django42: django>=4.2,<5 | ||
django50: django>=5.0,<5.1 |