Skip to content

Commit fc0b7d6

Browse files
authored
Merge pull request #204 from sneakers-the-rat/use-pyproject
Use `pyproject.toml`, remove `requirements.txt`
2 parents 9008c0f + 30fdd2a commit fc0b7d6

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@nox.session
1313
def docs(session):
14-
session.install("-r", "requirements.txt")
14+
session.install("-e", ".")
1515
cmd = ["sphinx-build"]
1616
cmd.extend(build_command + session.posargs)
1717
session.run(*cmd)
@@ -30,7 +30,7 @@ def docs_test(session):
3030

3131
@nox.session(name="docs-live")
3232
def docs_live(session):
33-
session.install("-r", "requirements.txt")
33+
session.install("-e", ".")
3434

3535
AUTOBUILD_IGNORE = [
3636
"_build",

pyproject.toml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "python-package-guide"
3-
4-
[project.optional.dependencies]
5-
dev = [
7+
dynamic = [
8+
"version"
9+
]
10+
dependencies = [
611
"pydata-sphinx-theme==0.15.1",
712
"myst-nb",
813
"sphinx",
@@ -17,7 +22,13 @@ dev = [
1722
"sphinx-inline-tabs",
1823
# for project cards
1924
"matplotlib"
20-
]
25+
]
26+
27+
[tool.hatch.build.targets.wheel]
28+
bypass-selection = true
29+
30+
[tool.hatch]
31+
version.source = "vcs"
2132

2233

2334
# https://github.com/codespell-project/codespell#usage

requirements.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)