Skip to content

Commit

Permalink
Integrate dependencies into pyproject.toml
Browse files Browse the repository at this point in the history
This commit moves the dependency management from using a requirements.txt file to specifying dependencies directly in pyproject.toml. This change aligns with PEP 621, which recommends declaring project metadata in pyproject.toml. It simplifies dependency management and ensures consistency with modern Python packaging standards.

The README.md has also been updated to reflect the new installation instructions.

Specifying dependencies in the pyproject.toml also makes it easier to add optional dependencies in the future.
  • Loading branch information
EwoutH authored and WuTheFWasThat committed Dec 14, 2023
1 parent 31118ef commit df86f98
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ These instructions will get you a copy of the project up and running on your loc

#### Installation

You need to have Python installed on your machine. The project also has some dependencies, which can be installed with pip:
You need to have Python installed on your machine. The project uses `pyproject.toml` to manage dependencies. To install the dependencies, you can use a package manager like `pip`:

```
pip install -r requirements.txt
pip install .
```

#### Running the Script
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.dependencies]
torch = "~2.1"
numpy = "~1.24"
transformers = "~4.36"
datasets = "~2.14"
fire = "~0.4"
accelerate = "~0.25"
transformers-stream-generator = "~0.0.4"
torch_optimizer = "~0.3"
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

0 comments on commit df86f98

Please sign in to comment.