From db469945fcd22ba40813ee579d285d78626d465a Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Mon, 4 Dec 2023 23:26:12 +0000 Subject: [PATCH] Render template ../cookiecutter-python-cli at f7bce0bba5 --- .cookiecutter.json | 1 + Makefile | 11 +++++++++++ pyproject.toml | 9 ++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.cookiecutter.json b/.cookiecutter.json index 5453403..44cb2df 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -1,6 +1,7 @@ { "_dest_dir": "worktree", "_template": "../cookiecutter-python-cli", + "_template_name": "cookiecutter-python-cli", "author_email": "tomi@nomi.cz", "author_github": "liskin", "author_name": "Tom\u00e1\u0161 Janou\u0161ek", diff --git a/Makefile b/Makefile index c82613a..4014971 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ VENV_WHEEL_PYTHON = $(VENV_WHEEL)/bin/python PACKAGE := $(shell sed -ne '/^name / { y/-/_/; s/^.*=\s*"\(.*\)"/\1/p }' pyproject.toml) +TEMPLATES_DIR = $(HOME)/src +TEMPLATE := $(shell realpath --relative-to=. $(TEMPLATES_DIR)/cookiecutter-python-cli) + .PHONY: venv-system-site-packages venv-system-site-packages: $(MAKE) VENV_USE_SYSTEM_SITE_PACKAGES=1 venv @@ -89,6 +92,14 @@ ipython: $(VENV_DONE) clean: git clean -ffdX +.PHONY: template-update +template-update: + $(TEMPLATE)/update.sh -t $(TEMPLATE) -p . -b template -i .cookiecutter.json + +.PHONY: template-merge +template-merge: template-update + git merge template + .PHONY: check-wheel check-wheel: dist $(PYTHON) -m venv --clear --without-pip $(VENV_WHEEL) diff --git a/pyproject.toml b/pyproject.toml index 4486244..656b2c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ classifiers = [ # https://pypi.org/classifiers/ "Programming Language :: Python :: 3.12", # FIXME: "Topic :: …", ] -urls = {Homepage = "https://github.com/liskin/strava-offline"} requires-python = "~= 3.8" dependencies = [ "PyYAML", @@ -48,6 +47,14 @@ test = [ "pytest", ] +[project.urls] +"Homepage" = "https://github.com/liskin/strava-offline" +"Release Notes" = "https://github.com/liskin/strava-offline/releases" +"Issues" = "https://github.com/liskin/strava-offline/issues" +"CI" = "https://github.com/liskin/strava-offline/actions" +"Donations (GitHub)" = "https://github.com/sponsors/liskin" +"Donations (PayPal)" = "https://www.paypal.me/lisknisi/10EUR" + [project.scripts] strava-offline = "strava_offline.cli:cli"