Skip to content

Commit ec20497

Browse files
committed
Simplify the requirements files
I only added packages that are needed to run the tests in `requirements-dev.txt`, renamed the latter file to `requirements.txt` and removed the reference to the latter in `setup.py`.
1 parent 9fcf1a0 commit ec20497

File tree

4 files changed

+10
-42
lines changed

4 files changed

+10
-42
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python -m pip install --upgrade pip
2424
pip install .
2525
pip install -r requirements-jax.txt
26-
less requirements-dev.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
26+
less requirements.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
2727
- name: Run the tests with pytest
2828
run: |
2929
pytest -n 4 -vv -m "not benchmark" --cov=blackjax --cov-report=xml --cov-report=term tests
@@ -51,7 +51,7 @@ jobs:
5151
python -m pip install --upgrade pip
5252
pip install .
5353
pip install -r requirements-jax.txt
54-
less requirements-dev.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
54+
less requirements.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
5555
- name: Run the benchmarks with pytest-benchmark
5656
run: |
5757
pytest -n 4 -vv -m benchmark --cov=blackjax --cov-report=xml --cov-report=term tests

requirements-dev.txt

-37
This file was deleted.

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-e ./
2+
pre-commit
3+
pytest
4+
pytest-benchmark
5+
pytest-cov
6+
pytest-xdist
7+
chex

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,14 @@ def get_version(rel_path):
3737
raise RuntimeError("Unable to find version string.")
3838

3939

40-
INSTALL_REQS = read("requirements.txt").splitlines()
41-
4240
setuptools.setup(
4341
name="blackjax",
4442
author="The BlackJAX team",
4543
version=get_version("blackjax/__init__.py"),
4644
description="Flexible and fast inference in Python",
4745
long_description=long_description,
4846
packages=setuptools.find_packages(),
49-
install_requires=INSTALL_REQS,
47+
install_requires=[],
5048
long_description_content_type="text/markdown",
5149
keywords="probabilistic machine learning bayesian statistics sampling algorithms",
5250
license="Apache License 2.0",

0 commit comments

Comments
 (0)