cookie-python 0.2.5__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cookie_python-0.2.5.dist-info → cookie_python-0.3.0.dist-info}/METADATA +7 -15
- {cookie_python-0.2.5.dist-info → cookie_python-0.3.0.dist-info}/RECORD +12 -12
- {cookie_python-0.2.5.dist-info → cookie_python-0.3.0.dist-info}/WHEEL +1 -1
- {{cookiecutter.project_name}}/.github/workflows/actions/python-poetry/action.yml +4 -4
- {{cookiecutter.project_name}}/.github/workflows/cd.yml +10 -9
- {{cookiecutter.project_name}}/.github/workflows/ci.yml +7 -5
- {{cookiecutter.project_name}}/.github/workflows/container.yml +2 -2
- {{cookiecutter.project_name}}/.pre-commit-config.yaml +1 -1
- {{cookiecutter.project_name}}/README.md +2 -2
- {{cookiecutter.project_name}}/pyproject.toml +17 -10
- {cookie_python-0.2.5.dist-info → cookie_python-0.3.0.dist-info}/LICENSE +0 -0
- {cookie_python-0.2.5.dist-info → cookie_python-0.3.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: cookie-python
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
5
|
-
Home-page: https://github.com/smkent/cookie-python
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Cookiecutter template for new Python projects
|
|
6
5
|
License: MIT
|
|
7
6
|
Author: Stephen Kent
|
|
8
7
|
Author-email: smkent@smkent.net
|
|
9
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.9
|
|
10
9
|
Classifier: Development Status :: 3 - Alpha
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
10
|
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
11
|
Classifier: Topic :: Software Development :: Code Generators
|
|
19
12
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
13
|
Classifier: Typing :: Typed
|
|
21
14
|
Requires-Dist: loguru
|
|
22
|
-
Requires-Dist: poetry-dynamic-versioning
|
|
23
15
|
Requires-Dist: pygithub
|
|
24
16
|
Requires-Dist: pyyaml
|
|
25
17
|
Requires-Dist: semver
|
|
26
|
-
|
|
18
|
+
Requires-Dist: toml ; python_version < "3.11"
|
|
27
19
|
Description-Content-Type: text/markdown
|
|
28
20
|
|
|
29
21
|
# [Cookiecutter][cookiecutter] template for new Python projects
|
|
@@ -59,14 +51,14 @@ Via [`pipx`][pipx]:
|
|
|
59
51
|
```console
|
|
60
52
|
pip install pipx
|
|
61
53
|
pipx install poetry
|
|
62
|
-
pipx inject poetry poetry-
|
|
54
|
+
pipx inject poetry poetry-pre-commit-plugin
|
|
63
55
|
```
|
|
64
56
|
|
|
65
57
|
Via `pip`:
|
|
66
58
|
|
|
67
59
|
```console
|
|
68
60
|
pip install poetry
|
|
69
|
-
poetry self add poetry-
|
|
61
|
+
poetry self add poetry-pre-commit-plugin
|
|
70
62
|
```
|
|
71
63
|
|
|
72
64
|
## New project creation
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{cookiecutter.project_name}}/.codecov.yml,sha256=AXaf1WzBMQLDBy8JG0hwDRto9_0AJHGl8a-stn0iXkw,72
|
|
2
|
-
{{cookiecutter.project_name}}/.github/workflows/actions/python-poetry/action.yml,sha256=
|
|
3
|
-
{{cookiecutter.project_name}}/.github/workflows/cd.yml,sha256=
|
|
4
|
-
{{cookiecutter.project_name}}/.github/workflows/ci.yml,sha256=
|
|
5
|
-
{{cookiecutter.project_name}}/.github/workflows/container.yml,sha256=
|
|
2
|
+
{{cookiecutter.project_name}}/.github/workflows/actions/python-poetry/action.yml,sha256=Fda9d8EZEzQVbNCLFbyHHHa3WEnCMpG6W3Yfyfjhnk8,1521
|
|
3
|
+
{{cookiecutter.project_name}}/.github/workflows/cd.yml,sha256=QIwI6PxffuvVCR0D7f5Tv7TKMrlQPNkAwXIg-iV1GmI,1834
|
|
4
|
+
{{cookiecutter.project_name}}/.github/workflows/ci.yml,sha256=i0RE7cNx6Zb-mtCUP4doJZHbxVwK_uQ3gCxShRdTtSo,1542
|
|
5
|
+
{{cookiecutter.project_name}}/.github/workflows/container.yml,sha256=KIuvd8oqa4CYmFL3sU7krWUUrpVFpyVKX-T0nKtMEAI,1989
|
|
6
6
|
{{cookiecutter.project_name}}/.gitignore,sha256=bsJhIdhouWZuAZ5ISVOOdTGEveIB_h0igmjgNjNZZEY,97
|
|
7
|
-
{{cookiecutter.project_name}}/.pre-commit-config.yaml,sha256=
|
|
7
|
+
{{cookiecutter.project_name}}/.pre-commit-config.yaml,sha256=7QGgE4XIy7628LOPnD3q0fPRM3hwmhElqU_GYDd-fJs,1275
|
|
8
8
|
{{cookiecutter.project_name}}/Dockerfile,sha256=8UvDP9eeekF-SmEJpcDEUUa331ywwybQHUc-YSk2h74,259
|
|
9
9
|
{{cookiecutter.project_name}}/LICENSE,sha256=uDNk3WkdMCo7sqGVWzbHjqu1TchEC0fL03YvIkrmZpw,86
|
|
10
|
-
{{cookiecutter.project_name}}/README.md,sha256=
|
|
10
|
+
{{cookiecutter.project_name}}/README.md,sha256=6ai6zwONTQrrNmcmOqfuG3GmA-xawblPgaIWvlFyXqI,3064
|
|
11
11
|
{{cookiecutter.project_name}}/cookiecutter_template_data/feature_paths.yml,sha256=4EQH0OaHUQ04Gg4QEModwH7dAvG4JXFGLlMluXDny2w,222
|
|
12
12
|
{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/BSD-3-Clause,sha256=rcvy-iMF03TzqemSsaui0_CbDxhHtBlj8l0xXy1Jd0s,1566
|
|
13
13
|
{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/GPL-3.0-or-later,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/MIT,sha256=ZV0wNVFz30_2kbPyOzvo0-OXYCvzlnKCELj9lozbyJ8,1091
|
|
16
16
|
{{cookiecutter.project_name}}/docker/entrypoint,sha256=4x6LAPV6qzfc6wszI3ZEbdVVgca_TOwidRjww2udtBY,59
|
|
17
17
|
{{cookiecutter.project_name}}/docker-compose.yaml,sha256=UzuWrGYp4E_g083zuFli_E9f4XHs-gLrhEGSgrYy2sA,178
|
|
18
|
-
{{cookiecutter.project_name}}/pyproject.toml,sha256=
|
|
18
|
+
{{cookiecutter.project_name}}/pyproject.toml,sha256=0JIrTfxGZ_x-ZQAcpPDK_1FgteWzhjl0XDi2ssLRlm4,2477
|
|
19
19
|
{{cookiecutter.project_name}}/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
{{cookiecutter.project_name}}/tests/test_module.py,sha256=mho3CLy-Bub6dU1t--G7OHDnKODW4zIeY2kBiDcYHvs,159
|
|
21
21
|
{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__init__.py,sha256=FVgWGWVST3n5e9Km0xbq1INOgE_8uAckT33LaIo4RI8,71
|
|
22
22
|
{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__version__.py,sha256=ShXQBVjyiSOHxoQJS2BvNG395W4KZfqMxZWBAR0MZrE,22
|
|
23
23
|
{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
cookie_python-0.
|
|
25
|
-
cookie_python-0.
|
|
26
|
-
cookie_python-0.
|
|
27
|
-
cookie_python-0.
|
|
28
|
-
cookie_python-0.
|
|
24
|
+
cookie_python-0.3.0.dist-info/LICENSE,sha256=FZK2LuxUG6nuZXiVOfkjmLsjHHCqn8Urhh03S8VGqug,1099
|
|
25
|
+
cookie_python-0.3.0.dist-info/METADATA,sha256=IwAUmqkwsoqwW0mEtgG1QYGG6Wag4a8hreBIlN0ct9U,3625
|
|
26
|
+
cookie_python-0.3.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
27
|
+
cookie_python-0.3.0.dist-info/entry_points.txt,sha256=As3tvi9Uh-G2gBmGvVs2das5ggeEZpajb89WR4PP9xU,98
|
|
28
|
+
cookie_python-0.3.0.dist-info/RECORD,,
|
|
@@ -20,7 +20,7 @@ runs:
|
|
|
20
20
|
python3 -m pip install --upgrade requests
|
|
21
21
|
|
|
22
22
|
- name: 🐍 Set up Python
|
|
23
|
-
uses: actions/setup-python@
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
24
|
id: setuppy
|
|
25
25
|
with:
|
|
26
26
|
python-version: ${{ "{{" }} inputs.python_version }}
|
|
@@ -33,15 +33,15 @@ runs:
|
|
|
33
33
|
# https://github.com/actions/runner-images/issues/6185
|
|
34
34
|
PYTHON_KEYRING_BACKEND: "keyring.backends.null.Keyring"
|
|
35
35
|
run: |
|
|
36
|
-
poetry
|
|
37
|
-
poetry
|
|
36
|
+
poetry check --lock
|
|
37
|
+
poetry sync
|
|
38
38
|
PROJECT_VERSION=$(poetry version -s)
|
|
39
39
|
[ "${PROJECT_VERSION}" != "0.0.0" ] \
|
|
40
40
|
|| { echo "Versioning broken"; exit 1; }
|
|
41
41
|
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
|
|
42
42
|
|
|
43
43
|
- name: 🪝 Cache pre-commit hooks
|
|
44
|
-
uses: actions/cache@
|
|
44
|
+
uses: actions/cache@v4
|
|
45
45
|
with:
|
|
46
46
|
path: ~/.cache/pre-commit
|
|
47
47
|
key: "pre-commit-${{ "{{" }} runner.os }}-python\
|
|
@@ -3,15 +3,14 @@ name: Release
|
|
|
3
3
|
|
|
4
4
|
env:
|
|
5
5
|
ENABLE_PYPI_PUBLISH: {{ "true" if cookiecutter.enable_pypi_publish|lower == "yes" else "false" }}
|
|
6
|
-
ENABLE_TEST_PYPI_PUBLISH:
|
|
6
|
+
ENABLE_TEST_PYPI_PUBLISH: false
|
|
7
7
|
RELEASE_PYTHON_VERSION: "3.12"
|
|
8
|
-
RELEASE_POETRY_VERSION: "
|
|
8
|
+
RELEASE_POETRY_VERSION: "2.0"
|
|
9
9
|
|
|
10
10
|
on:
|
|
11
11
|
push:
|
|
12
12
|
tags:
|
|
13
13
|
- '*'
|
|
14
|
-
workflow_dispatch:
|
|
15
14
|
|
|
16
15
|
jobs:
|
|
17
16
|
Publish:
|
|
@@ -19,10 +18,15 @@ jobs:
|
|
|
19
18
|
|
|
20
19
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
|
21
20
|
runs-on: ubuntu-latest
|
|
21
|
+
environment:
|
|
22
|
+
name: pypi
|
|
23
|
+
url: https://pypi.org/p/{{ cookiecutter.project_name }}
|
|
24
|
+
permissions:
|
|
25
|
+
id-token: write
|
|
22
26
|
|
|
23
27
|
steps:
|
|
24
28
|
- name: 💾 Check out repository
|
|
25
|
-
uses: actions/checkout@
|
|
29
|
+
uses: actions/checkout@v4
|
|
26
30
|
|
|
27
31
|
- name: 🐍 Set up Python project with Poetry
|
|
28
32
|
uses: ./.github/workflows/actions/python-poetry
|
|
@@ -49,15 +53,12 @@ jobs:
|
|
|
49
53
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
50
54
|
if: ${{ "{{" }} env.ENABLE_TEST_PYPI_PUBLISH == 'true' }}
|
|
51
55
|
with:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
skip_existing: true
|
|
56
|
+
repository-url: https://test.pypi.org/legacy/
|
|
57
|
+
skip-existing: true
|
|
55
58
|
|
|
56
59
|
- name: ☢️ Publish to PyPI
|
|
57
60
|
if: ${{ "{{" }} env.ENABLE_PYPI_PUBLISH == 'true' }}
|
|
58
61
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
59
|
-
with:
|
|
60
|
-
password: ${{ "{{" }} secrets.PYPI_API_TOKEN }}
|
|
61
62
|
|
|
62
63
|
concurrency:
|
|
63
64
|
group: ${{ "{{" }} github.workflow }}-${{ "{{" }} github.ref }}
|
|
@@ -20,18 +20,18 @@ jobs:
|
|
|
20
20
|
os:
|
|
21
21
|
- Ubuntu
|
|
22
22
|
python-version:
|
|
23
|
-
- "3.8"
|
|
24
23
|
- "3.9"
|
|
25
24
|
- "3.10"
|
|
26
25
|
- "3.11"
|
|
27
26
|
- "3.12"
|
|
27
|
+
- "3.13"
|
|
28
28
|
poetry-version:
|
|
29
|
-
- "
|
|
29
|
+
- "2.0"
|
|
30
30
|
|
|
31
31
|
runs-on: ${{ "{{" }} matrix.os }}-latest
|
|
32
32
|
steps:
|
|
33
33
|
- name: 💾 Check out repository
|
|
34
|
-
uses: actions/checkout@
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
35
|
|
|
36
36
|
- name: 🐍 Set up Python project with Poetry
|
|
37
37
|
uses: ./.github/workflows/actions/python-poetry
|
|
@@ -43,13 +43,15 @@ jobs:
|
|
|
43
43
|
run: poetry run poe test
|
|
44
44
|
|
|
45
45
|
- name: 🚒 Create test summary
|
|
46
|
-
uses: test-summary/action@
|
|
46
|
+
uses: test-summary/action@v2
|
|
47
47
|
if: success() || failure()
|
|
48
48
|
with:
|
|
49
49
|
paths: ./.pytest_results.xml
|
|
50
50
|
|
|
51
51
|
- name: 📊 Upload coverage to Codecov
|
|
52
|
-
uses: codecov/codecov-action@
|
|
52
|
+
uses: codecov/codecov-action@v4
|
|
53
|
+
env:
|
|
54
|
+
CODECOV_TOKEN: ${{ "{{" }} secrets.CODECOV_TOKEN }}
|
|
53
55
|
if: ${{ "{{" }} env.ENABLE_COVERAGE == 'true' }}
|
|
54
56
|
with:
|
|
55
57
|
fail_ci_if_error: true
|
|
@@ -5,7 +5,7 @@ env:
|
|
|
5
5
|
REGISTRY: ghcr.io
|
|
6
6
|
IMAGE_NAME: ${{ "{{" }} github.repository }}
|
|
7
7
|
RELEASE_PYTHON_VERSION: "3.12"
|
|
8
|
-
RELEASE_POETRY_VERSION: "
|
|
8
|
+
RELEASE_POETRY_VERSION: "2.0"
|
|
9
9
|
|
|
10
10
|
on:
|
|
11
11
|
pull_request:
|
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
|
|
26
26
|
steps:
|
|
27
27
|
- name: 💾 Check out repository
|
|
28
|
-
uses: actions/checkout@
|
|
28
|
+
uses: actions/checkout@v4
|
|
29
29
|
|
|
30
30
|
- name: 🔑 Log in to the container registry
|
|
31
31
|
uses: docker/login-action@v2.1.0
|
|
@@ -49,14 +49,14 @@ Via [`pipx`][pipx]:
|
|
|
49
49
|
```console
|
|
50
50
|
pip install pipx
|
|
51
51
|
pipx install poetry
|
|
52
|
-
pipx inject poetry poetry-
|
|
52
|
+
pipx inject poetry poetry-pre-commit-plugin
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
Via `pip`:
|
|
56
56
|
|
|
57
57
|
```console
|
|
58
58
|
pip install poetry
|
|
59
|
-
poetry self add poetry-
|
|
59
|
+
poetry self add poetry-pre-commit-plugin
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
### Development tasks
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["poetry-core>=
|
|
3
|
-
build-backend = "
|
|
2
|
+
requires = ["poetry-core>=2.0.0,<3.0.0", "poetry-dynamic-versioning"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[project]
|
|
6
6
|
name = "{{ cookiecutter.project_name }}"
|
|
7
|
-
version = "0.0.0"
|
|
8
7
|
description = "{{ cookiecutter.project_description|replace('"', '\\\"') }}"
|
|
9
8
|
license = "{{ cookiecutter.project_license }}"
|
|
10
|
-
authors = ["{{ cookiecutter.author_name }}
|
|
9
|
+
authors = [ { name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}" } ]
|
|
11
10
|
readme = "README.md"{% if cookiecutter.github_user %}
|
|
12
11
|
repository = "https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.project_name }}"{% endif %}
|
|
13
12
|
classifiers = [
|
|
@@ -16,11 +15,21 @@ classifiers = [
|
|
|
16
15
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
17
16
|
"Typing :: Typed",
|
|
18
17
|
]
|
|
18
|
+
requires-python = ">=3.9"
|
|
19
|
+
dynamic = [ "version" ]
|
|
20
|
+
dependencies = [
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
19
24
|
|
|
20
|
-
[tool.poetry
|
|
21
|
-
|
|
25
|
+
[tool.poetry]
|
|
26
|
+
requires-poetry = ">=2.0"
|
|
27
|
+
version = "0.0.0"
|
|
22
28
|
|
|
23
|
-
[tool.poetry.
|
|
29
|
+
[tool.poetry.requires-plugins]
|
|
30
|
+
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
|
|
31
|
+
|
|
32
|
+
[tool.poetry.group.dev.dependencies]
|
|
24
33
|
bandit = {extras = ["toml"], version = "*"}
|
|
25
34
|
black = "*"
|
|
26
35
|
cruft = "*"
|
|
@@ -38,8 +47,6 @@ pytest-cov = "*"
|
|
|
38
47
|
pytest-github-actions-annotate-failures = "*"
|
|
39
48
|
pytest-sugar = "*"
|
|
40
49
|
|
|
41
|
-
[tool.poetry.scripts]
|
|
42
|
-
|
|
43
50
|
[tool.poetry-dynamic-versioning]
|
|
44
51
|
enable = true
|
|
45
52
|
vcs = "git"
|
|
File without changes
|
|
File without changes
|