From 0dcbd0ad0c29f33280865a649db2e966b41a4ab0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 18 Oct 2022 22:30:51 -0500 Subject: [PATCH 1/3] stab at hatch --- pyproject.toml | 58 ++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 32dc47d..44f64cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,41 +43,49 @@ python = "^3.7" myst_parser = "*" docutils = "*" -[tool.poetry.dev-dependencies] +[tool.optional-dependencies] ### Docs ### -sphinx = "*" -furo = "*" -sphinx-autodoc-typehints = "*" -sphinx-autobuild = "*" -sphinx-inline-tabs = { version = "*", python = "^3.7" } -sphinxext-opengraph = "*" -sphinx-copybutton = "*" -sphinxext-rediraffe = "*" +docs = [ + "sphinx", + "furo", + "sphinx-autodoc-typehints", + "sphinx-autobuild", + "sphinx-inline-tabs;python_version ^=3.7", + "sphinxext-opengraph", + "sphinx-copybutton", + "sphinxext-rediraffe" +] ### Testing ### -pytest = "*" -pytest-rerunfailures = "*" -pytest-watcher = "*" +tests = [ + "pytest", + "pytest-rerunfailures", + "pytest-watcher", +] ### Coverage ### -codecov = "*" -coverage = "*" -pytest-cov = "*" +coverage = [ + "codecov", + "coverage", + "pytest-cov" +] ### Format ### -black = "*" -isort = "*" +format = [ + "black", + "isort" +] ### Lint ### -flake8 = [ - { version = "*", python = "^3.7" }, - { version = ">=5", python = "^3.8" }, +lint = [ + "flake8; python_version ^3.7", + "flake8 >=5; python_version ^3.8", + "flake8-bugbear", + "flake8-comprehensions", + "mypy", + "typing-extensions; python_version ^3.7", + "types-docutils" ] -flake8-bugbear = "*" -flake8-comprehensions = "*" -mypy = "*" -typing-extensions = { version = "*", python = "^3.7" } -types-docutils = "*" [tool.poetry.extras] docs = [ From 3d9eca63efbe5d94737898f9c533520bb2e09b46 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 18 Oct 2022 22:35:04 -0500 Subject: [PATCH 2/3] !squash --- pyproject.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 44f64cb..3e5437a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,7 @@ -[tool.poetry] +[project] name = "gp-libs" version = "0.0.1a17" description = "Internal utilities for projects following git-pull python package spec" -license = "MIT" authors = ["Tony Narlock "] classifiers = [ "Development Status :: 4 - Beta", @@ -116,6 +115,6 @@ sphinx = "pytest_doctest_docutils" [tool.mypy] strict = true -[build-system] -requires = ["poetry_core>=1.0.0"] -build-backend = "poetry.core.masonry.api" +# [build-system] +# requires = ["poetry_core>=1.0.0"] +# build-backend = "poetry.core.masonry.api" From 11e95d98bd6556929b62925d6fd9884946956bef Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 20 Oct 2022 16:56:04 -0500 Subject: [PATCH 3/3] !squash hatchling build system --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e5437a..68940b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,6 +115,6 @@ sphinx = "pytest_doctest_docutils" [tool.mypy] strict = true -# [build-system] -# requires = ["poetry_core>=1.0.0"] -# build-backend = "poetry.core.masonry.api" +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build"