Skip to content

Use pyproject.toml, remove requirements.txt #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

@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)


@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.

Loading