mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
Merge pull request #407 from GabDug/fix/tox-use-wheel
Use wheel in tests, adopt src layout
This commit is contained in:
commit
c11f30ec7c
22 changed files with 16 additions and 4 deletions
|
@ -35,11 +35,18 @@ exclude = [
|
|||
'.env',
|
||||
'.venv',
|
||||
'.tox',
|
||||
'build',
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
check_untyped_defs = true
|
||||
ignore_missing_imports = true
|
||||
exclude = [
|
||||
'test_structures'
|
||||
'test_structures',
|
||||
'build',
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = [
|
||||
"tests"
|
||||
]
|
3
setup.py
3
setup.py
|
@ -7,7 +7,8 @@ VERSION = "0.61"
|
|||
|
||||
setup(
|
||||
name="django_components",
|
||||
packages=find_packages(exclude=["tests"]),
|
||||
packages=find_packages(where="src", exclude=["tests", "tests.*"]),
|
||||
package_dir={"": "src"},
|
||||
package_data={
|
||||
"django_components": ["py.typed"],
|
||||
},
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -29,7 +29,11 @@ python =
|
|||
3.12: py312-django{42,50}, flake8, isort, coverage, mypy
|
||||
fail_on_no_env = True
|
||||
|
||||
isolated_build = true
|
||||
|
||||
[testenv]
|
||||
package = wheel
|
||||
wheel_build_env = .pkg
|
||||
deps =
|
||||
django32: Django>=3.2,<3.3
|
||||
django40: Django>=4.0,<4.1
|
||||
|
@ -55,7 +59,7 @@ commands =
|
|||
changedir = {toxinidir}
|
||||
deps = isort
|
||||
commands =
|
||||
isort --check-only --diff django_components
|
||||
isort --check-only --diff src/django_components
|
||||
|
||||
[testenv:coverage]
|
||||
changedir = {toxinidir}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue