cookie-python 0.2.5__tar.gz → 0.3.0__tar.gz

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.
Files changed (27) hide show
  1. {cookie_python-0.2.5 → cookie_python-0.3.0}/PKG-INFO +7 -15
  2. {cookie_python-0.2.5 → cookie_python-0.3.0}/README.md +2 -2
  3. {cookie_python-0.2.5 → cookie_python-0.3.0}/pyproject.toml +25 -16
  4. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.github/workflows/actions/python-poetry/action.yml +4 -4
  5. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.github/workflows/cd.yml +10 -9
  6. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.github/workflows/ci.yml +7 -5
  7. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.github/workflows/container.yml +2 -2
  8. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.pre-commit-config.yaml +1 -1
  9. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/README.md +2 -2
  10. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/pyproject.toml +17 -10
  11. {cookie_python-0.2.5 → cookie_python-0.3.0}/LICENSE +0 -0
  12. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.codecov.yml +0 -0
  13. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/.gitignore +0 -0
  14. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/Dockerfile +0 -0
  15. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/LICENSE +0 -0
  16. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/cookiecutter_template_data/feature_paths.yml +0 -0
  17. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/BSD-3-Clause +0 -0
  18. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/GPL-3.0-or-later +0 -0
  19. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/LGPL-3.0-or-later +0 -0
  20. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/cookiecutter_template_data/licenses/MIT +0 -0
  21. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/docker/entrypoint +0 -0
  22. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/docker-compose.yaml +0 -0
  23. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/tests/__init__.py +0 -0
  24. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/tests/test_module.py +0 -0
  25. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__init__.py +0 -0
  26. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__version__.py +0 -0
  27. {cookie_python-0.2.5 → cookie_python-0.3.0}/{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/py.typed +0 -0
@@ -1,29 +1,21 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: cookie-python
3
- Version: 0.2.5
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,<4.0
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
- Project-URL: Repository, https://github.com/smkent/cookie-python
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-dynamic-versioning poetry-pre-commit-plugin
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-dynamic-versioning poetry-pre-commit-plugin
61
+ poetry self add poetry-pre-commit-plugin
70
62
  ```
71
63
 
72
64
  ## New project creation
@@ -31,14 +31,14 @@ Via [`pipx`][pipx]:
31
31
  ```console
32
32
  pip install pipx
33
33
  pipx install poetry
34
- pipx inject poetry poetry-dynamic-versioning poetry-pre-commit-plugin
34
+ pipx inject poetry poetry-pre-commit-plugin
35
35
  ```
36
36
 
37
37
  Via `pip`:
38
38
 
39
39
  ```console
40
40
  pip install poetry
41
- poetry self add poetry-dynamic-versioning poetry-pre-commit-plugin
41
+ poetry self add poetry-pre-commit-plugin
42
42
  ```
43
43
 
44
44
  ## New project creation
@@ -1,13 +1,12 @@
1
1
  [build-system]
2
- requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning"]
3
- build-backend = "poetry_dynamic_versioning.backend"
2
+ requires = ["poetry-core>=2.0.0,<3.0.0", "poetry-dynamic-versioning"]
3
+ build-backend = "poetry.core.masonry.api"
4
4
 
5
- [tool.poetry]
5
+ [project]
6
6
  name = "cookie-python"
7
- version = "0.2.5"
8
- description = ""
7
+ description = "Cookiecutter template for new Python projects"
9
8
  license = "MIT"
10
- authors = ["Stephen Kent <smkent@smkent.net>"]
9
+ authors = [ { name = "Stephen Kent", email = "smkent@smkent.net" } ]
11
10
  readme = "README.md"
12
11
  repository = "https://github.com/smkent/cookie-python"
13
12
  classifiers = [
@@ -17,19 +16,31 @@ classifiers = [
17
16
  "Topic :: Software Development :: Libraries :: Python Modules",
18
17
  "Typing :: Typed",
19
18
  ]
19
+ requires-python = ">=3.9"
20
+ dynamic = []
21
+ dependencies = [
22
+ "loguru",
23
+ "pygithub",
24
+ "pyyaml",
25
+ "semver",
26
+ "toml ; python_version < '3.11'",
27
+ ]
28
+ version = "0.3.0"
29
+
30
+ [project.scripts]
31
+ new-cookie = "cookie_python.new:main"
32
+ manage-cookie = "cookie_python.manage.main:main"
33
+
34
+ [tool.poetry]
20
35
  packages = [
21
36
  { include = "{{cookiecutter.project_name}}" }
22
37
  ]
38
+ requires-poetry = ">=2.0"
23
39
 
24
- [tool.poetry.dependencies]
25
- python = "^3.8"
26
- loguru = "*"
27
- poetry-dynamic-versioning = "*"
28
- pygithub = "*"
29
- pyyaml = "*"
30
- semver = "*"
40
+ [tool.poetry.requires-plugins]
41
+ poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
31
42
 
32
- [tool.poetry.dev-dependencies]
43
+ [tool.poetry.group.dev.dependencies]
33
44
  bandit = {extras = ["toml"], version = "*"}
34
45
  black = "*"
35
46
  build = "*"
@@ -51,8 +62,6 @@ pytest-sugar = "*"
51
62
  types-PyYAML = "*"
52
63
 
53
64
  [tool.poetry.scripts]
54
- new-cookie = "cookie_python.new:main"
55
- manage-cookie = "cookie_python.manage.main:main"
56
65
 
57
66
  [tool.poetry-dynamic-versioning]
58
67
  enable = false
@@ -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@v4
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 install
37
- poetry lock --check
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@v3
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: {{ "true" if cookiecutter.enable_pypi_publish|lower == "yes" else "false" }}
6
+ ENABLE_TEST_PYPI_PUBLISH: false
7
7
  RELEASE_PYTHON_VERSION: "3.12"
8
- RELEASE_POETRY_VERSION: "1.6"
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@v3
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
- password: ${{ "{{" }} secrets.TEST_PYPI_API_TOKEN }}
53
- repository_url: https://test.pypi.org/legacy/
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
- - "1.6"
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@v3
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@v1
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@v3
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: "1.6"
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@v3
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
@@ -41,7 +41,7 @@ repos:
41
41
  rev: v3.3.1
42
42
  hooks:
43
43
  - id: pyupgrade
44
- args: ["--keep-runtime-typing"]
44
+ args: ["--py39-plus", "--keep-runtime-typing"]
45
45
  - repo: local
46
46
  hooks:
47
47
  - id: mypy
@@ -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-dynamic-versioning poetry-pre-commit-plugin
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-dynamic-versioning poetry-pre-commit-plugin
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>=1.2.0", "poetry-dynamic-versioning"]
3
- build-backend = "poetry_dynamic_versioning.backend"
2
+ requires = ["poetry-core>=2.0.0,<3.0.0", "poetry-dynamic-versioning"]
3
+ build-backend = "poetry.core.masonry.api"
4
4
 
5
- [tool.poetry]
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 }} <{{ cookiecutter.author_email }}>"]
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.dependencies]
21
- python = "^3.8"
25
+ [tool.poetry]
26
+ requires-poetry = ">=2.0"
27
+ version = "0.0.0"
22
28
 
23
- [tool.poetry.dev-dependencies]
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