Skip to content

Commit

Permalink
build: remove all the stale requirements*.txt files
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Nov 15, 2024
1 parent 7510e85 commit f99f319
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 66 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/matrix-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install wheel
pip install -r requirements.txt -r requirements.dev.txt -r requirements.ci.txt -e .
pip install -e .[all]
- name: Run tests
run: cd test && python run.py prod
13 changes: 2 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ jobs:
run: |
# Keep pip up to date
python -m pip install --upgrade pip
# Some dependencies are built using wheel
pip install wheel
# Install all Python dependencies in just one pip call, including Studio itself
pip install -r requirements.txt \
-r requirements.dev.txt \
-r requirements.ci.txt \
-e .
pip install -e .[all]
- name: Run tests
run: |
Expand Down Expand Up @@ -106,11 +101,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r requirements.txt `
-r requirements.dev.txt `
-r requirements.ci.txt `
-e .
pip install -e .[all]
- name: Run tests on Windows
run: cd test && python run.py prod
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
exclude: \.svg$
- repo: local
# Using local repos because these won't work for me from remote repo -EJ
# They're also more convenient because we install them via requirements.dev.txt
# They're also more convenient because we install them via .[dev] in pyproject.toml
# and they are then available on the command line as well as in pre-commit.
hooks:
- id: isort
Expand Down
8 changes: 4 additions & 4 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ commits.
Run these commands in each of your sandboxes to enable our pre-commit hooks and commitlint:

```sh
pip install -r requirements.dev.txt
pip install -e .[dev]
pre-commit install
gitlint install-hook
```
Expand Down Expand Up @@ -49,10 +49,10 @@ All the pre-commit hooks are executed using a tool called
hooks each time you try to commit anything in this repo.

We've listed all the developper dependencies for the project in
[requirements.dev.txt](requirements.dev.txt) to make them easy to install:
[pyproject.toml](pyproject.toml) to make them easy to install:

```sh
pip install -r requirements.dev.txt
pip install -e .[dev]
pre-commit install
```

Expand Down Expand Up @@ -114,7 +114,7 @@ commit-msg hook in Git.
Run this command in your g2p sandbox to install and enable the commit-msg hook:

```sh
pip install -r requirements/requirements.dev.txt
pip install -e .[dev]
gitlint install-hook
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ This repo follows the [Contributor Covenant](http://contributor-covenant.org/ver
You can install our standard Git hooks by running these commands in your sandbox:

```sh
pip install -r requirements.dev.txt
pip install -e .[dev]
pre-commit install
gitlint install-hook
```
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ mkdocs-material>=9.5.27
mkdocs-autorefs>=1.0.1
mkdocstrings[python]>=0.25.1
mike>=2.1.1
-r ../requirements.min.txt
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ ci = [
"pip-licenses",
]

all = [
"readalongs[dev]",
"readalongs[ci]",
]

[project.scripts]
readalongs = "readalongs.cli:cli"

Expand Down
2 changes: 1 addition & 1 deletion readalongs/web_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(or in a dashboard) and will depend on your hosting environment.
You can also spin up the API server grade (on Linux, not Windows) with gunicorn:
pip install -r requirements.api.txt
pip install -e .[api]
gunicorn -w 4 -k uvicorn.workers.UvicornWorker readalongs.web_api:web_api_app
Once spun up, the documentation and API playground will be visible at
Expand Down
7 changes: 0 additions & 7 deletions requirements.api.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.ci.txt

This file was deleted.

14 changes: 0 additions & 14 deletions requirements.dev.txt

This file was deleted.

16 changes: 0 additions & 16 deletions requirements.min.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

0 comments on commit f99f319

Please sign in to comment.