Skip to content

Commit

Permalink
Consolidate requirements.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
  • Loading branch information
rw1nkler committed Jan 19, 2024
1 parent cf07478 commit 2b69753
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lint:
- apt-get install -y --no-install-recommends python3-pip
- python3 -m pip install -U pip wheel setuptools
script:
- python3 -m pip install -r requirements.dev.txt
- python3 -m pip install -r requirements.txt
- nox -s isort_check black_check flake8

pytest:
Expand All @@ -22,7 +22,7 @@ pytest:
before_script: *BeforeScript
script:
- apt-get install -y --no-install-recommends git python3-dev
- python3 -m pip install -r requirements.dev.txt
- python3 -m pip install nox
- python3 -m pip install git+https://github.com/antmicro/tuttest
- tuttest README.md | bash -
- nox -s tests_with_report
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
python3-dev \
yosys
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install -r requirements.dev.txt
python3 -m pip install nox
python3 -m pip install git+https://github.com/antmicro/tuttest
- name: Run lint checks
Expand Down
2 changes: 1 addition & 1 deletion docs/source/developers_guide/setup.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Setup

It is recommended for developers to keep code style and frequently run tests.
In order to setup the developer's environment install python packages from `requirements.dev.txt`, which shall include `nox` and `pre-commit`:
In order to setup the developer's environment install python packages from `requirements.txt`, which shall include `nox` and `pre-commit`:

```bash
python -m venv venv
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@nox.session()
def pre_commit(session: nox.Session) -> None:
session.install("-r", "requirements.dev.txt")
session.install("-r", "requirements.txt")
session.run("pre-commit", "install")
session.run("pre-commit", "run", "--all-files")

Expand Down
6 changes: 0 additions & 6 deletions requirements.dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.impl.txt

This file was deleted.

11 changes: 8 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-e .
-r requirements.dev.txt
-r requirements.impl.txt
flake8
nox
pre-commit
pytest
pytest-cov
pytest-lazy-fixtures
edalize==0.4.0
fusesoc==1.12.0

0 comments on commit 2b69753

Please sign in to comment.