package-foundry 26.11.3__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 (66) hide show
  1. package_foundry-26.11.3/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
  2. package_foundry-26.11.3/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. package_foundry-26.11.3/.github/ISSUE_TEMPLATE/feature_request.md +25 -0
  4. package_foundry-26.11.3/.github/PULL_REQUEST_TEMPLATE.md +19 -0
  5. package_foundry-26.11.3/.github/workflows/ci.yml +11 -0
  6. package_foundry-26.11.3/.github/workflows/quality-gate.yml +21 -0
  7. package_foundry-26.11.3/.github/workflows/release.yml +127 -0
  8. package_foundry-26.11.3/.gitignore +169 -0
  9. package_foundry-26.11.3/.pre-commit-config.yaml +43 -0
  10. package_foundry-26.11.3/CHANGES.md +573 -0
  11. package_foundry-26.11.3/CLAUDE.md +63 -0
  12. package_foundry-26.11.3/CODE_OF_CONDUCT.md +132 -0
  13. package_foundry-26.11.3/CONTRIBUTING.md +62 -0
  14. package_foundry-26.11.3/LICENSE.md +21 -0
  15. package_foundry-26.11.3/PKG-INFO +274 -0
  16. package_foundry-26.11.3/README.md +223 -0
  17. package_foundry-26.11.3/SECURITY.md +18 -0
  18. package_foundry-26.11.3/package_foundry/__init__.py +3 -0
  19. package_foundry-26.11.3/package_foundry/cli.py +431 -0
  20. package_foundry-26.11.3/package_foundry/metadata/__init__.py +0 -0
  21. package_foundry-26.11.3/package_foundry/metadata/author.py +7 -0
  22. package_foundry-26.11.3/package_foundry/metadata/constants.py +57 -0
  23. package_foundry-26.11.3/package_foundry/metadata/executables.py +7 -0
  24. package_foundry-26.11.3/package_foundry/metadata/maintainer.py +8 -0
  25. package_foundry-26.11.3/package_foundry/metadata/package.py +46 -0
  26. package_foundry-26.11.3/package_foundry/metadata/readme.py +9 -0
  27. package_foundry-26.11.3/package_foundry/metadata/ruff_ignored_inspection.py +13 -0
  28. package_foundry-26.11.3/package_foundry/templates/.editorconfig.tpl +17 -0
  29. package_foundry-26.11.3/package_foundry/templates/.github/ISSUE_TEMPLATE/bug_report.md.tpl +34 -0
  30. package_foundry-26.11.3/package_foundry/templates/.github/ISSUE_TEMPLATE/config.yml.tpl +5 -0
  31. package_foundry-26.11.3/package_foundry/templates/.github/ISSUE_TEMPLATE/feature_request.md.tpl +25 -0
  32. package_foundry-26.11.3/package_foundry/templates/.github/PULL_REQUEST_TEMPLATE.md.tpl +20 -0
  33. package_foundry-26.11.3/package_foundry/templates/.github/workflows/ci.yml.tpl +11 -0
  34. package_foundry-26.11.3/package_foundry/templates/.github/workflows/quality-gate.yml.tpl +105 -0
  35. package_foundry-26.11.3/package_foundry/templates/.github/workflows/release.yml.tpl +136 -0
  36. package_foundry-26.11.3/package_foundry/templates/.gitignore.tpl +167 -0
  37. package_foundry-26.11.3/package_foundry/templates/.pre-commit-config.yaml.tpl +60 -0
  38. package_foundry-26.11.3/package_foundry/templates/.readthedocs.yaml.tpl +33 -0
  39. package_foundry-26.11.3/package_foundry/templates/CODE_OF_CONDUCT.md.tpl +132 -0
  40. package_foundry-26.11.3/package_foundry/templates/CONTRIBUTING.md.tpl +76 -0
  41. package_foundry-26.11.3/package_foundry/templates/MANIFEST.in.tpl +4 -0
  42. package_foundry-26.11.3/package_foundry/templates/README.md.tpl +8 -0
  43. package_foundry-26.11.3/package_foundry/templates/SECURITY.md.tpl +18 -0
  44. package_foundry-26.11.3/package_foundry/templates/docs/Makefile.tpl +20 -0
  45. package_foundry-26.11.3/package_foundry/templates/docs/conf.py.tpl +77 -0
  46. package_foundry-26.11.3/package_foundry/templates/docs/make.bat.tpl +35 -0
  47. package_foundry-26.11.3/package_foundry/templates/pyproject.toml.tpl +263 -0
  48. package_foundry-26.11.3/package_foundry/templates/scripts/unix/install_requirements.sh.tpl +3 -0
  49. package_foundry-26.11.3/package_foundry/templates/scripts/unix/publish_to_pypi.sh.tpl +4 -0
  50. package_foundry-26.11.3/package_foundry/templates/scripts/windows/install_requirements.ps1.tpl +2 -0
  51. package_foundry-26.11.3/package_foundry/templates/scripts/windows/publish_to_pypi.ps1.tpl +3 -0
  52. package_foundry-26.11.3/package_foundry/templates/snippets/badges.tpl +6 -0
  53. package_foundry-26.11.3/package_foundry/templates/snippets/content.tpl +1 -0
  54. package_foundry-26.11.3/package_foundry/templates/snippets/empty.tpl +0 -0
  55. package_foundry-26.11.3/package_foundry/templates/snippets/installation.tpl +24 -0
  56. package_foundry-26.11.3/package_foundry/templates/snippets/licenses/GPL.md +1347 -0
  57. package_foundry-26.11.3/package_foundry/templates/snippets/licenses/MIT.md +21 -0
  58. package_foundry-26.11.3/package_foundry/templates/snippets/links.tpl +3 -0
  59. package_foundry-26.11.3/package_foundry/templates/snippets/maintenance.tpl +8 -0
  60. package_foundry-26.11.3/package_foundry/templates/snippets/publish.tpl +33 -0
  61. package_foundry-26.11.3/package_foundry/templates/snippets/tagline.tpl +1 -0
  62. package_foundry-26.11.3/pyproject.toml +161 -0
  63. package_foundry-26.11.3/scripts/unix/publish_to_pypi.sh +4 -0
  64. package_foundry-26.11.3/scripts/unix/setup_venv_unix.sh +8 -0
  65. package_foundry-26.11.3/scripts/windows/publish_to_pypi.ps1 +3 -0
  66. package_foundry-26.11.3/scripts/windows/setup_venv.ps1 +6 -0
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Bug report
3
+ about: Report a problem to help us improve
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+ ---
8
+
9
+ ## Describe the bug
10
+
11
+ A clear and concise description of what the bug is.
12
+
13
+ ## To reproduce
14
+
15
+ Steps to reproduce the behavior:
16
+
17
+ 1. ...
18
+ 2. ...
19
+ 3. ...
20
+
21
+ ## Expected behavior
22
+
23
+ A clear and concise description of what you expected to happen.
24
+
25
+ ## Environment
26
+
27
+ - `package-foundry` version:
28
+ - Python version:
29
+ - Operating system:
30
+
31
+ ## Additional context
32
+
33
+ Add any other context, tracebacks, or screenshots about the problem here.
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Security vulnerability
4
+ url: https://github.com/beyonder-deutschland/package-foundry/security/advisories/new
5
+ about: Please report security issues privately via a security advisory, not as a public issue.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: ''
7
+ ---
8
+
9
+ ## Is your feature request related to a problem?
10
+
11
+ A clear and concise description of what the problem is. Ex. I'm always
12
+ frustrated when [...]
13
+
14
+ ## Describe the solution you'd like
15
+
16
+ A clear and concise description of what you want to happen.
17
+
18
+ ## Describe alternatives you've considered
19
+
20
+ A clear and concise description of any alternative solutions or features you've
21
+ considered.
22
+
23
+ ## Additional context
24
+
25
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,19 @@
1
+ ## Description
2
+
3
+ Please include a summary of the change and which issue is fixed (if any).
4
+
5
+ Fixes #(issue)
6
+
7
+ ## Type of change
8
+
9
+ - [ ] Bug fix (non-breaking change which fixes an issue)
10
+ - [ ] New feature (non-breaking change which adds functionality)
11
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12
+ - [ ] Documentation update
13
+
14
+ ## Checklist
15
+
16
+ - [ ] My code follows the style guidelines of this project (pre-commit passes)
17
+ - [ ] I have updated the documentation where necessary
18
+ - [ ] I have added an entry to `CHANGES.md`
19
+ - [ ] I have bumped the version in `package_foundry/__init__.py`
@@ -0,0 +1,11 @@
1
+ name: Unit tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ ci:
11
+ uses: ./.github/workflows/quality-gate.yml
@@ -0,0 +1,21 @@
1
+ name: CI jobs
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ jobs:
7
+ linting:
8
+ runs-on: ubuntu-24.04
9
+ steps:
10
+ - uses: actions/checkout@v7
11
+
12
+ - name: Set up Python 3.15
13
+ uses: actions/setup-python@v7
14
+ with:
15
+ python-version: "3.15"
16
+
17
+ - name: Install required packages
18
+ run: pip install pre-commit
19
+
20
+ - name: Run pre-commit hooks
21
+ run: pre-commit run --all-files --hook-stage push
@@ -0,0 +1,127 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ # Restrictive default — each job declares only what it needs
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ ci:
14
+ uses: ./.github/workflows/quality-gate.yml
15
+
16
+ check-branch:
17
+ name: Verify tag is on main
18
+ runs-on: ubuntu-24.04
19
+ steps:
20
+ - uses: actions/checkout@v7
21
+ with:
22
+ fetch-depth: 0
23
+ - name: Fail if tag is not on main
24
+ run: |
25
+ git fetch origin main
26
+ git merge-base --is-ancestor "${{ github.sha }}" origin/main
27
+
28
+ build:
29
+ name: Build distribution packages
30
+ runs-on: ubuntu-24.04
31
+ needs: [ci, check-branch]
32
+ permissions:
33
+ contents: read
34
+ steps:
35
+ - uses: actions/checkout@v7
36
+
37
+ - name: Set up Python 3.15
38
+ uses: actions/setup-python@v7
39
+ with:
40
+ python-version: "3.15"
41
+
42
+ - name: Install uv
43
+ uses: astral-sh/setup-uv@v10.3.0
44
+
45
+ - name: Build packages
46
+ run: uv build
47
+
48
+ - name: Upload distribution packages
49
+ uses: actions/upload-artifact@v7
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+ if-no-files-found: error
54
+
55
+ sign:
56
+ name: Sign distribution packages
57
+ runs-on: ubuntu-24.04
58
+ needs: build
59
+ permissions:
60
+ id-token: write # required for Sigstore OIDC signing
61
+ contents: read
62
+ steps:
63
+ - name: Download distribution packages
64
+ uses: actions/download-artifact@v8
65
+ with:
66
+ name: dist
67
+ path: dist/
68
+
69
+ - name: Sign packages with Sigstore
70
+ uses: sigstore/gh-action-sigstore-python@v3.5.0
71
+ with:
72
+ inputs: >-
73
+ ./dist/*.tar.gz
74
+ ./dist/*.whl
75
+
76
+ - name: Upload signed distribution packages
77
+ uses: actions/upload-artifact@v7
78
+ with:
79
+ name: dist-signed
80
+ path: dist/
81
+ if-no-files-found: error
82
+
83
+ github-release:
84
+ name: Create GitHub Release
85
+ runs-on: ubuntu-24.04
86
+ needs: sign
87
+ permissions:
88
+ contents: write # required to create GitHub releases
89
+ steps:
90
+ - name: Download signed distribution packages
91
+ uses: actions/download-artifact@v8
92
+ with:
93
+ name: dist-signed
94
+ path: dist/
95
+
96
+ - name: Create GitHub Release
97
+ env:
98
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
+ run: |
100
+ shopt -s failglob
101
+ gh release create "${{ github.ref_name }}" \
102
+ --repo "${{ github.repository }}" \
103
+ --generate-notes \
104
+ dist/*
105
+
106
+ publish-pypi:
107
+ name: Publish to PyPI
108
+ runs-on: ubuntu-24.04
109
+ needs: sign
110
+ environment: pypi
111
+ permissions:
112
+ id-token: write # required for PyPI Trusted Publisher OIDC auth
113
+ contents: read
114
+ steps:
115
+ - name: Download signed distribution packages
116
+ uses: actions/download-artifact@v8
117
+ with:
118
+ name: dist-signed
119
+ path: dist/
120
+
121
+ - name: Remove Sigstore bundles (PyPI only accepts .whl and .tar.gz)
122
+ run: rm dist/*.sigstore.json
123
+
124
+ - name: Publish to PyPI
125
+ uses: pypa/gh-action-pypi-publish@release/v1
126
+ # Sigstore attestations are generated and uploaded to PyPI automatically
127
+ # when using Trusted Publishing — no extra configuration needed.
@@ -0,0 +1,169 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ .idea/
161
+
162
+ # Test databases
163
+ *.sqlite
164
+
165
+ # AI
166
+ .claude/
167
+
168
+ # Lockfiles
169
+ uv.lock
@@ -0,0 +1,43 @@
1
+ # you find the full pre-commit-tools docu under:
2
+ # https://pre-commit.com/
3
+
4
+ repos:
5
+ - repo: https://github.com/astral-sh/ruff-pre-commit
6
+ rev: v0.17.1
7
+ hooks:
8
+ # Run the Ruff formatter.
9
+ - id: ruff-format
10
+ # Run the Ruff linter.
11
+ - id: ruff-check
12
+ args: [--fix, --exit-non-zero-on-fix]
13
+
14
+ - repo: https://github.com/adamchainz/blacken-docs
15
+ rev: 1.20.0
16
+ hooks:
17
+ - id: blacken-docs
18
+ args: [--line-length, "120"]
19
+ additional_dependencies:
20
+ - black==26.10.1
21
+ files: '(?:README\.md|\.package-foundry\/templates\/snippets\/.*\.tpl|docs\/.*\.(?:md|rst))'
22
+
23
+ - repo: https://github.com/asottile/pyupgrade
24
+ rev: v3.22.0
25
+ hooks:
26
+ - id: pyupgrade
27
+ args: [ --py313-plus ]
28
+
29
+ - repo: https://github.com/pre-commit/pre-commit-hooks
30
+ rev: v6.0.0
31
+ hooks:
32
+ - id: check-ast
33
+ - id: check-builtin-literals
34
+ - id: check-case-conflict
35
+ - id: check-docstring-first
36
+ - id: check-executables-have-shebangs
37
+ - id: check-json
38
+ - id: check-merge-conflict
39
+ - id: check-toml
40
+ - id: end-of-file-fixer
41
+ - id: fix-byte-order-marker
42
+ - id: mixed-line-ending
43
+ - id: trailing-whitespace