From 0bbc1c9146be95bb4cc7271e926c51a29fa1e03a Mon Sep 17 00:00:00 2001 From: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Date: Thu, 20 Oct 2022 11:20:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Maintenance/release=20workflow?= =?UTF-8?q?=20(#92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 6 +- Makefile | 96 ++++++++++++++++++------ requirements.txt => requirements-dev.txt | 3 - setup.cfg | 2 +- 4 files changed, 77 insertions(+), 30 deletions(-) rename requirements.txt => requirements-dev.txt (55%) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 6c97bfd4..e295ab5c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -33,7 +33,11 @@ e.g. ## How to test - +```cmd +make devenv +source .venv/bin/activate +make play +``` ## Checklist diff --git a/Makefile b/Makefile index 6667fa3b..635ef2d5 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,9 @@ SHELL = /bin/bash OUTPUT_DIR = $(CURDIR)/.output TEMPLATE = $(CURDIR) +VERSION := $(shell cat VERSION) -#----------------------------------- +# PYTHON ENVIRON ----------------------------------- .PHONY: devenv .venv: @python3 --version @@ -23,13 +24,9 @@ TEMPLATE = $(CURDIR) wheel \ setuptools -requirements.txt: requirements.in - # freezes requirements - .venv/bin/pip-compile --upgrade --build-isolation --output-file $@ $(word2, $^) - devenv: .venv ## create a python virtual environment with tools to dev, run and tests cookie-cutter # installing extra tools - @$