Skip to content

Commit

Permalink
Port tox.ini to pyproject.toml (#66)
Browse files Browse the repository at this point in the history
* Port tox.ini to pyproject.toml

* Update tests.
  • Loading branch information
JoeZiminski authored Jun 30, 2023
1 parent 9daec12 commit 8051075
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
3 changes: 2 additions & 1 deletion tests/test_cookiecutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def test_directory_names(package_path_config_dict):
"MANIFEST.in",
"pyproject.toml",
"README.md",
"tox.ini",
Path("test_cookiecutter_module") / "__init__.py",
# Directories
"test_cookiecutter_module",
Expand Down Expand Up @@ -298,6 +297,8 @@ def test_pyproject_toml(package_path_config_dict):
)
assert project_toml["tool"]["black"]

assert "legacy_tox_ini" in project_toml["tool"]["tox"]


def test_pip_install(pip_install):
config_dict = pip_install
Expand Down
19 changes: 19 additions & 0 deletions {{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,22 @@ build = "cp38-* cp39-* cp310-*"

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310}
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[testenv]
extras =
dev
commands =
pytest -v --color=yes --cov={{cookiecutter.module_name}} --cov-report=xml
"""
15 changes: 0 additions & 15 deletions {{cookiecutter.package_name}}/tox.ini

This file was deleted.

0 comments on commit 8051075

Please sign in to comment.