Skip to content

Commit

Permalink
Render template ../cookiecutter-python-cli at f7bce0bba5
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Dec 4, 2023
1 parent b251cc0 commit db46994
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cookiecutter.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"

Expand Down

0 comments on commit db46994

Please sign in to comment.