Skip to content

Commit

Permalink
Merge pull request #204 from sneakers-the-rat/use-pyproject
Browse files Browse the repository at this point in the history
Use `pyproject.toml`, remove `requirements.txt`
  • Loading branch information
willingc authored Mar 20, 2024
2 parents 9008c0f + 30fdd2a commit fc0b7d6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -30,7 +30,7 @@ def docs_test(session):

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

AUTOBUILD_IGNORE = [
"_build",
Expand Down
19 changes: 15 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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
Expand Down
14 changes: 0 additions & 14 deletions requirements.txt

This file was deleted.

0 comments on commit fc0b7d6

Please sign in to comment.