Skip to content

Commit

Permalink
Merge branch 'template'
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Dec 4, 2023
2 parents 1ec7a22 + db46994 commit ecdf115
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": "[email protected]",
"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 @@ -25,7 +25,6 @@ classifiers = [ # https://pypi.org/classifiers/
"Topic :: Database",
"Topic :: Utilities",
]
urls = {Homepage = "https://github.com/liskin/strava-offline"}
requires-python = "~= 3.8"
dependencies = [
"PyYAML",
Expand Down Expand Up @@ -59,6 +58,14 @@ test = [
"vcrpy >= 4.3.1",
]

[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 ecdf115

Please sign in to comment.