Skip to content

Commit

Permalink
Split template dev requirements into separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdklatt committed Jul 2, 2023
1 parent 4feab1d commit 02c1c78
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ based on the `Python Packaging User Guide`_.
- Hierarchical `TOML`_ configuration


=====
Usage
=====

Expand All @@ -45,6 +46,7 @@ Create a new project directly from the template on `GitHub`_:
$ cookiecutter gh:mdklatt/cookiecutter-python-app
===========
Development
===========

Expand Down
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Requirements for template development.
pytest>=7.3.2,<8

-r requirements.txt
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Reqirements for using the template.
cookiecutter>=2.1.1,<3
pytest>=7.3.2,<8

0 comments on commit 02c1c78

Please sign in to comment.