Skip to content

Commit

Permalink
add python version-specific dev requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
  • Loading branch information
cosmicBboy committed Sep 22, 2023
1 parent 5a15cb1 commit b212728
Show file tree
Hide file tree
Showing 8 changed files with 2,663 additions and 18 deletions.
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ NOX_FLAGS ?= "-r"
nox-conda:
nox -db conda --envdir .nox-conda ${NOX_FLAGS}

nox-ci-requirements:
python scripts/generate_pip_deps_from_conda.py && \
nox -db mamba --envdir .nox-mamba -s ci_requirements
deps-from-conda:
python scripts/generate_pip_deps_from_conda.py

requirements-dev.txt:
python scripts/generate_pip_deps_from_conda.py && \
pip-compile requirements.in --output-file requirements-dev.txt -v --resolver backtracking
nox-ci-requirements: deps-from-conda
nox -db mamba --envdir .nox-mamba -s ci_requirements

nox-dev-requirements: deps-from-conda
nox -db mamba --envdir .nox-mamba -s dev_requirements

requirements-docs.txt: deps-from-conda
pip-compile requirements.in --output-file requirements-docs.txt -v --resolver backtracking
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ Schema.validate(df)
```
git clone https://github.com/pandera-dev/pandera.git
cd pandera
pip install -r requirements-dev.txt
export PYTHON_VERSION=... # specif desired python version
pip install -r dev/requirements-${PYTHON_VERSION}.txt
pip install -e .
```

Expand Down
Loading

0 comments on commit b212728

Please sign in to comment.