Skip to content

Instantly share code, notes, and snippets.

@malcolmgreaves
Created January 9, 2024 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malcolmgreaves/7ce5380880b51664d91f588ae927ffb8 to your computer and use it in GitHub Desktop.
Save malcolmgreaves/7ce5380880b51664d91f588ae927ffb8 to your computer and use it in GitHub Desktop.
A pyproject.toml that uses setuptools & gets `dependencies` dynamically from a requirements.txt file.
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "mypackage"
requires-python = ">=3.10"
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment