Skip to content

Commit

Permalink
Update changelog, update pyproject to make test deps optional, update…
Browse files Browse the repository at this point in the history
… readme, update tox to include test deps, update ci to include test deps
  • Loading branch information
Frederich Nikolaj Godsk Pedersen committed Jun 6, 2024
1 parent ffbf2e2 commit 0ed09ca
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
poetry install --only test
- name: Test with tox
run: poetry run tox -e py${{ matrix.python-version }}-${{ matrix.tox-env }}
Expand Down
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
History
-------

0.2.0 (2024-06-06)
+++++++++++++++++
Breaking changes

* Update build tools to be using Poetry.
* Dropped support for old Django versions, now official supporting only: Django 4.0, 4.1, 4.2, 5.0.
* Fixed bug where kwargs was not sent to reverse function.

0.1.6 (2019-05-26)
++++++++++++++++++
Important changes
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ TODO
----

* Write the documentation
* Clean repository for unneccesary files

Running Tests
-------------
Expand All @@ -105,8 +106,9 @@ Does the code actually work?
::

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
(myenv) $ pip install poetry
(myenv) $ poetry install --only test
(myenv) $ poetry run tox

Credits
-------
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
pytest = { version = "^8.2.2", optional = true }


[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-django = "^4.8.0"
tox = "^4.15.1"

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ envlist =
description = run unit tests
require_locked_deps = true
deps =
pytest
pytest-django
codecov>=2.0.0
django-40: Django >=4.0,<4.1
django-41: Django >=4.1,<4.2
Expand Down

0 comments on commit 0ed09ca

Please sign in to comment.