Skip to content

Commit

Permalink
Compile requirements.txt from pyproject.toml instead of `requirem…
Browse files Browse the repository at this point in the history
…ents.in` (#155)

* Update requirements.txt

* Update tox.ini

* Update README.md

* Delete requirements.in

* Update pyproject.toml
  • Loading branch information
hf-kklein authored Jan 24, 2024
1 parent 720e560 commit 841f71a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It doesn't contain any useful code but only a minimal working setup for a Python

- a basic **project structure** with
- tox.ini
- requirements.in
- `pyproject.toml` where the project metadata and dependencies are defined
- and a requirements.txt derived from it
- an example class
- an example unit test (using pytest)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [] # add all the dependencies from requirements.in here, too
dependencies = [] # add all the dependencies here
dynamic = ["readme", "version"]

[project.urls]
Expand Down Expand Up @@ -57,4 +57,4 @@ exclude = ["/unittests"]

[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
sources = ["src"]
Empty file removed requirements.in
Empty file.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
# pip-compile pyproject.toml
#
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ deps =
pre-commit
commands =
python -m pip install --upgrade pip
pip-compile requirements.in
pip-compile pyproject.toml
pip install -r requirements.txt
pre-commit install

Expand Down

0 comments on commit 841f71a

Please sign in to comment.