mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-06 19:45:27 +00:00
Switch to hatch build system
This commit is contained in:
parent
adc35023a5
commit
37ebb12d6b
54
.gitignore
vendored
54
.gitignore
vendored
@ -1,48 +1,16 @@
|
|||||||
*.py[cod]
|
*.pyc
|
||||||
|
__pycache__/
|
||||||
|
|
||||||
# C extensions
|
.venv/
|
||||||
*.so
|
venv/
|
||||||
|
|
||||||
# Packages
|
_version.py
|
||||||
*.egg*
|
|
||||||
*.egg-info
|
|
||||||
dist
|
|
||||||
build
|
|
||||||
eggs
|
|
||||||
parts
|
|
||||||
bin
|
|
||||||
var
|
|
||||||
sdist
|
|
||||||
develop-eggs
|
|
||||||
.installed.cfg
|
|
||||||
lib
|
|
||||||
lib64
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
|
|
||||||
# Unit test / coverage reports
|
|
||||||
cover/
|
|
||||||
.coverage*
|
|
||||||
.tox
|
|
||||||
.venv
|
|
||||||
.pytest_cache/
|
|
||||||
.mypy_cache/
|
|
||||||
|
|
||||||
# Translations
|
|
||||||
*.mo
|
|
||||||
|
|
||||||
# Complexity
|
|
||||||
output/*.html
|
|
||||||
output/*/index.html
|
|
||||||
|
|
||||||
# Editors
|
|
||||||
*~
|
|
||||||
.*.swp
|
|
||||||
.*sw?
|
|
||||||
|
|
||||||
# Sphinx
|
|
||||||
_build
|
_build
|
||||||
|
|
||||||
# Other
|
build
|
||||||
|
dist
|
||||||
|
*.egg-info
|
||||||
|
.nox
|
||||||
|
.pytest_cache/
|
||||||
|
|
||||||
_download
|
_download
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
graft zundler
|
|
||||||
global-exclude *.py[cod]
|
|
||||||
prune .*
|
|
||||||
exclude .*
|
|
@ -10,5 +10,5 @@ def tests(session):
|
|||||||
@nox.session()
|
@nox.session()
|
||||||
def black(session):
|
def black(session):
|
||||||
session.install(".[tests]")
|
session.install(".[tests]")
|
||||||
session.run("black", "zundler", "--check", *session.posargs)
|
session.run("black", "src", "--check", *session.posargs)
|
||||||
session.run("black", "tests", "--check", *session.posargs)
|
session.run("black", "tests", "--check", *session.posargs)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=61.2"]
|
requires = ["hatchling", "hatch-vcs"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "zundler"
|
name = "zundler"
|
||||||
@ -32,19 +32,28 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
tests = [
|
||||||
|
'pytest>=8',
|
||||||
|
'selenium',
|
||||||
|
'pytest-selenium',
|
||||||
|
'pytest-docker',
|
||||||
|
'black',
|
||||||
|
'nox',
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
source = "vcs"
|
||||||
|
|
||||||
|
[tool.hatch.build.hooks.vcs]
|
||||||
|
version-file = "_version.py"
|
||||||
|
|
||||||
[project.entry-points]
|
[project.entry-points]
|
||||||
"sphinx.builders" = {zundler = "zundler.sphinxext"}
|
"sphinx.builders" = {zundler = "zundler.sphinxext"}
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
zundler = "zundler.__main__:main"
|
zundler = "zundler.__main__:main"
|
||||||
|
|
||||||
[tool.setuptools]
|
|
||||||
zip-safe = false
|
|
||||||
include-package-data = true
|
|
||||||
|
|
||||||
[tool.setuptools.packages]
|
|
||||||
find = {namespaces = false}
|
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.8"
|
python_version = "3.8"
|
||||||
show_column_numbers = true
|
show_column_numbers = true
|
||||||
@ -55,16 +64,6 @@ incremental = true
|
|||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
warn_unused_ignores = true
|
warn_unused_ignores = true
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
tests = [
|
|
||||||
'pytest>=8',
|
|
||||||
'selenium',
|
|
||||||
'pytest-selenium',
|
|
||||||
'pytest-docker',
|
|
||||||
'black',
|
|
||||||
'nox',
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = "6.0"
|
minversion = "6.0"
|
||||||
addopts = "-ra -q"
|
addopts = "-ra -q"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user