Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Removed Python 3.10 and 3.11 support
* Removed `setuptools-scm` from the build-system requirements: Files committed into the generated project's repository are no longer automatically included in releases [#713](https://github.com/NLeSC/python-template/pull/713)

### Fixed

* `tox` in a generated package now runs the tests: its table was misspelled `tool.box.testenv` [#716](https://github.com/NLeSC/python-template/pull/716)

## [0.6.1]

### Added
Expand Down
3 changes: 1 addition & 2 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ requires = ["tox>=4.22"]
env_list = [ "py312", "py313", "py314" ]
skip_missing_interpreters = true
{% if AddLocalTests -%}
[tool.box.testenv]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
commands = [["pytest"]]
[tool.tox.env_run_base]
dependency_groups = [ "dev" ]
{%- endif %}

Expand Down
1 change: 1 addition & 0 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def test_tox(baked_with_development_dependencies, project_env_bin_dir):
result = run([f'{bin_dir}tox'], project_dir)
assert result.returncode == 0
assert 'congratulations :)' in result.stdout
assert '== 3 passed in' in result.stdout
# assert (project_dir / '.tox' / 'dist' / 'my_python_package-0.1.0.zip').exists()
assert (project_dir / '.tox' / '.pkg' / 'dist'/ 'my_python_package-0.1.0.tar.gz').exists()

Expand Down
Loading