From 02c1c78bd69bd9d3ec30396ed0bc2455164d2a78 Mon Sep 17 00:00:00 2001 From: Michael Klatt Date: Sun, 2 Jul 2023 11:30:50 -0500 Subject: [PATCH] Split template dev requirements into separate file --- .github/workflows/test.yml | 2 +- Makefile | 2 +- README.rst | 2 ++ requirements-dev.txt | 4 ++++ requirements.txt | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6819e9e..de06407 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: python -m pip install --upgrade pip -r requirements.txt + run: python -m pip install --upgrade pip -r requirements-dev.txt - name: Run tests run: python tests/test_template.py diff --git a/Makefile b/Makefile index 62eb90a..e276db0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VENV = .venv PYTHON = source $(VENV)/bin/activate && python -$(VENV)/.make-update: requirements.txt +$(VENV)/.make-update: requirements-dev.txt python -m venv $(VENV) $(PYTHON) -m pip install -r $^ touch $@ diff --git a/README.rst b/README.rst index 39e7b38..31527bf 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,7 @@ based on the `Python Packaging User Guide`_. - Hierarchical `TOML`_ configuration +===== Usage ===== @@ -45,6 +46,7 @@ Create a new project directly from the template on `GitHub`_: $ cookiecutter gh:mdklatt/cookiecutter-python-app +=========== Development =========== diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..c0d7e53 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +# Requirements for template development. +pytest>=7.3.2,<8 + +-r requirements.txt diff --git a/requirements.txt b/requirements.txt index 7949525..3fb27e5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ +# Reqirements for using the template. cookiecutter>=2.1.1,<3 -pytest>=7.3.2,<8