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 3e35a2f + b735c74 commit 4d90429
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 @@ -24,7 +24,6 @@ classifiers = [ # https://pypi.org/classifiers/
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
urls = {Homepage = "https://github.com/liskin/strava-gear"}
requires-python = "~= 3.8"
dependencies = [
"PyYAML",
Expand Down Expand Up @@ -55,6 +54,14 @@ strava = [
"strava-offline ~= 1.0",
]

[project.urls]
"Homepage" = "https://github.com/liskin/strava-gear"
"Release Notes" = "https://github.com/liskin/strava-gear/releases"
"Issues" = "https://github.com/liskin/strava-gear/issues"
"CI" = "https://github.com/liskin/strava-gear/actions"
"Donations (GitHub)" = "https://github.com/sponsors/liskin"
"Donations (PayPal)" = "https://www.paypal.me/lisknisi/10EUR"

[project.scripts]
strava-gear = "strava_gear.cli:cli"
strava-gear-sync = "strava_gear.cli_strava_offline:cli_sqlite [strava]"
Expand Down

0 comments on commit 4d90429

Please sign in to comment.