From 0097885e506948023234949b401beb4ad61c1239 Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 23 Apr 2023 19:16:52 +0200 Subject: [PATCH] Remove hatch strict naming --- pyproject.toml | 5 ++++- tox.ini | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 57259d73..2551c5d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,11 +52,14 @@ dev = [ [tool.hatch.version] path = "src/github3/__about__.py" +[tool.hatch.build.targets.sdist] +strict-naming = false + [tool.hatch.build.targets.wheel] packages = [ "src/github3", ] - +strict-naming = false [project.urls] Documentation = "https://github3.readthedocs.io" diff --git a/tox.ini b/tox.ini index f937253f..9c5cfa8a 100644 --- a/tox.ini +++ b/tox.ini @@ -19,11 +19,11 @@ commands = flake8 {posargs} src/github3/ tests/unit/ tests/integration/ [testenv:build] skip_install = true -basepython = python3.10 +basepython = python3.11 deps = - build + hatch commands = - python -m build + hatch build [testenv:black] pip_pre = true @@ -94,11 +94,11 @@ deps = -rdocs/source/requirements.txt sphinx_rtd_theme twine >= 3.4.2 - build + hatch . commands = sphinx-build -E -W -c docs/source/ -b html docs/source/ docs/build/html - python -m build + hatch build twine check --strict dist/* [pytest]