Skip to content

Commit

Permalink
fix: Move build requirements out of base.in
Browse files Browse the repository at this point in the history
  • Loading branch information
feanil committed Apr 3, 2024
1 parent 1597894 commit 1ef2b4d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Configuration models for Django allowing config management with auditing.
"""

__version__ = '2.6.0'
__version__ = '2.7.0'
2 changes: 0 additions & 2 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
Django # Web application framework
djangorestframework>=3.6
edx-django-utils
setuptools
wheel
31 changes: 17 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,30 @@ addopts = --cov config_models --cov-report term-missing
norecursedirs = .* docs requirements

[testenv]
setenv =
setenv =
PYTHONPATH = {toxinidir}/mock_apps
DJANGO_SETTINGS_MODULE = test_settings
deps =
deps =
setuptools
wheel
django42: Django>=4.2,<4.3
drflatest: djangorestframework
-r{toxinidir}/requirements/test.txt
commands =
commands =
python -Wd -m pytest --cov {posargs}
python -m coverage html

[testenv:docs]
setenv =
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}/:{toxinidir}/mock_apps
allowlist_externals =
allowlist_externals =
make
rm
deps =
deps =
setuptools
-r{toxinidir}/requirements/doc.txt
commands =
commands =
rm -f docs/config_models.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ config_models
Expand All @@ -44,25 +47,25 @@ commands =
twine check dist/*

[testenv:quality]
setenv =
setenv =
PYTHONPATH = {toxinidir}/:{toxinidir}/mock_apps
allowlist_externals =
allowlist_externals =
make
rm
touch
deps =
deps =
-r{toxinidir}/requirements/quality.txt
commands =
commands =
pylint config_models
pylint tests
pycodestyle config_models tests
make help

[testenv:check_keywords]
whitelist_externals =
whitelist_externals =
make
deps =
deps =
-r{toxinidir}/requirements/test.txt
commands =
commands =
make check_keywords

0 comments on commit 1ef2b4d

Please sign in to comment.