Skip to content

Commit

Permalink
build: adding python 312 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 authored and feanil committed Mar 29, 2024
1 parent c6e19d2 commit 085151c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.
[5.12.0] - 2024-03-29
---------------------
Added
~~~~~
* Added support for ``Python 3.11``

[5.11.0] - 2024-03-06
---------------------
Added
Expand Down
4 changes: 4 additions & 0 deletions edx_django_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
EdX utilities for Django Application development..
"""

<<<<<<< HEAD
__version__ = "5.11.0"
=======
__version__ = "5.10.2"
>>>>>>> fd3417d (build: adding python 312 support.)

default_app_config = (
"edx_django_utils.apps.EdxDjangoUtilsConfig"
Expand Down
1 change: 1 addition & 0 deletions requirements/doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Sphinx # Documentation builder
twine
factory-boy
pytest #Needed?
wheel
2 changes: 2 additions & 0 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ urllib3==2.2.1
# via
# requests
# twine
wheel==0.42.0
# via -r requirements/doc.in
zipp==3.18.1
# via
# importlib-metadata
Expand Down
1 change: 1 addition & 0 deletions requirements/quality.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ edx-lint # edX pylint rules and plugins
isort # to standardize order of imports
pycodestyle # PEP 8 compliance validation
pydocstyle # PEP 257 compliance validation

30 changes: 17 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,28 @@ addopts = --cov edx_django_utils --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements

[testenv]
deps =
deps =
<<<<<<< HEAD
setuptools
=======
>>>>>>> fd3417d (build: adding python 312 support.)
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
commands =
python -Wd -m pytest {posargs}

[testenv:docs]
setenv =
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
allowlist_externals =
allowlist_externals =
make
rm
deps =
deps =
setuptools
wheel
-r{toxinidir}/requirements/doc.txt
commands =
commands =
doc8 --ignore-path docs/_build README.rst docs
rm -f docs/edx_django_utils.rst
rm -f docs/modules.rst
Expand All @@ -64,17 +67,18 @@ commands =
twine check dist/*

[testenv:quality]
setenv =
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
allowlist_externals =
allowlist_externals =
make
rm
touch
deps =
deps =
setuptools
-r{toxinidir}/requirements/quality.txt
commands =
setuptools
commands =
touch tests/__init__.py
pylint edx_django_utils tests test_utils manage.py setup.py
rm tests/__init__.py
Expand All @@ -84,9 +88,9 @@ commands =
make selfcheck

[testenv:isort]
allowlist_externals =
allowlist_externals =
make
deps =
deps =
-r{toxinidir}/requirements/quality.txt
commands =
commands =
isort tests test_utils edx_django_utils manage.py setup.py test_settings.py

0 comments on commit 085151c

Please sign in to comment.