diff --git a/noxfile.py b/noxfile.py index 62324af68..21e9dc3ec 100644 --- a/noxfile.py +++ b/noxfile.py @@ -11,7 +11,7 @@ @nox.session def docs(session): - session.install("-r", "requirements.txt") + session.install("-e", ".") cmd = ["sphinx-build"] cmd.extend(build_command + session.posargs) session.run(*cmd) @@ -19,7 +19,7 @@ def docs(session): @nox.session(name="docs-live") def docs_live(session): - session.install("-r", "requirements.txt") + session.install("-e", ".") AUTOBUILD_IGNORE = [ "_build", diff --git a/pyproject.toml b/pyproject.toml index 1032afa66..f48377a10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,13 @@ +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + [project] name = "python-package-guide" - -[project.optional.dependencies] -dev = [ +dynamic = [ + "version" +] +dependencies = [ "pydata-sphinx-theme==0.15.1", "myst-nb", "sphinx", @@ -17,7 +22,13 @@ dev = [ "sphinx-inline-tabs", # for project cards "matplotlib" - ] +] + +[tool.hatch.build.targets.wheel] +bypass-selection = true + +[tool.hatch] +version.source = "vcs" # https://github.com/codespell-project/codespell#usage diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5d60e1721..000000000 --- a/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -pydata-sphinx-theme==0.14.4 -myst-nb -sphinx -sphinx-autobuild -sphinx-copybutton -sphinx-design -sphinx-favicon -# XML feed for analytics -sphinx-sitemap -# Support for social / adds meta tags -sphinxext-opengraph -sphinx-inline-tabs -# for project cards -matplotlib