Skip to content

Commit 4db8cd4

Browse files
committed
chore: Update project template to sphinx-notes/cookiecutter@4736b672
1 parent f2121d1 commit 4db8cd4

File tree

6 files changed

+17
-20
lines changed

6 files changed

+17
-20
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sphinx-notes/cookiecutter",
3-
"commit": "7cadd39d13e7e95f37aecb9e998f4d7bb66dbf10",
3+
"commit": "4736b672023e3bf4bc80d0d51850d7bc45ca1e12",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"sphinx_version": "7.0",
2121
"development_status": "3 - Alpha",
2222
"_template": "https://github.com/sphinx-notes/cookiecutter",
23-
"_commit": "7cadd39d13e7e95f37aecb9e998f4d7bb66dbf10"
23+
"_commit": "4736b672023e3bf4bc80d0d51850d7bc45ca1e12"
2424
}
2525
},
2626
"directory": null

Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ OPEN = xdg-open
1313
docs:
1414
$(MAKE) -C docs/
1515

16-
.PHONY:
16+
.PHONY: view
1717
view:
1818
$(OPEN) docs/_build/html/index.html
1919

@@ -60,31 +60,33 @@ upload: dist
6060

6161
# Keep up to date with the latest template.
6262
# See https://github.com/sphinx-notes/cookiecutter.
63-
.PHONY: tmpl-update
63+
.PHONY: tmpl-update tmpl-update-done tmpl-apply-rej
64+
6465
tmpl-update:
6566
$(PY) -m cruft update
6667

67-
.PHONY: tmpl-update-done
6868
tmpl-update-done:
6969
$(GIT) commit -m "chore: Update project template to sphinx-notes/cookiecutter@$(shell jq -r '.commit' .cruft.json | head -c8)"
7070

71-
.PHONY: apply-rej
72-
apply-rej:
71+
tmpl-apply-rej:
7372
@for rej in $$(find . -name '*.rej'); do \
7473
echo "applying $$rej..."; \
7574
wiggle --replace $${rej%.rej} $$rej; \
7675
done
7776

78-
# Detect the minimum Python versions needed to run code.
79-
pyvermin:
80-
vermin --eval-annotations --target=3.12- --versions src/
81-
8277
# Update project version.
83-
.PHONY: bump-version
78+
.PHONY: bump-version bump-version-done
79+
8480
bump-version:
8581
@echo -n "Please enter the version to bump: "
8682
@read version && $(PY) -m cruft update --variables-to-update "{ \"version\" : \"$$version\" }"
8783

84+
bump-version-done:
85+
VERSION=$(shell jq -r '.context.cookiecutter.version' .cruft.json); \
86+
$(GIT) commit -m "chore: Bump version to $$VERSION"; \
87+
$(GIT) tag $$VERSION
88+
89+
8890
################################################################################
8991
# CUSTOM TARGETS
9092
################################################################################

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sphinxnotes-strike
1515
:target: https://pypi.python.org/pypi/sphinxnotes-strike
1616
:alt: PyPI Package
1717
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-strike
18-
:target: https://pypi.python.org/pypi/sphinxnotes-strike
18+
:target: https://pypistats.org/packages/sphinxnotes-strike
1919
:alt: PyPI Package Downloads
2020

2121
|docs| |license| |pypi| |download|

docs/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,4 @@
120120
sys.path.insert(0, os.path.abspath('../src/sphinxnotes'))
121121
extensions.append('strike')
122122

123-
# DOG FOOD CONFIGURATION START
124-
125-
# DOG FOOD CONFIGURATION END
126-
127123
# CUSTOM CONFIGURATION

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sphinxnotes-strike
1212
:target: https://github.com/sphinx-notes/strike/blob/master/LICENSE
1313
:alt: Open Source License
1414
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes-strike.svg
15-
:target: https://pypi.python.org/pypi/sphinxnotes-strike
15+
:target: https://pypistats.org/packages/sphinxnotes-strike
1616
:alt: PyPI Package
1717
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-strike
1818
:target: https://pypi.python.org/pypi/sphinxnotes-strike

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ dev = [
5353
"build",
5454
"twine",
5555
"cruft",
56-
"ruff",
56+
"ruff>=0.11.10", # pwndbg#2716
5757
"pre-commit",
58-
"vermin",
5958
]
6059
test = [
6160
"pytest",

0 commit comments

Comments
 (0)