quickpub 4.1.1__tar.gz → 4.1.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 (70) hide show
  1. quickpub-4.1.3/PKG-INFO +246 -0
  2. quickpub-4.1.3/README.md +191 -0
  3. quickpub-4.1.3/pyproject.toml +162 -0
  4. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/__init__.py +2 -1
  5. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/__main__.py +43 -23
  6. quickpub-4.1.3/quickpub/classifiers.py +138 -0
  7. quickpub-4.1.3/quickpub/dist_files.py +33 -0
  8. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/files.py +50 -1
  9. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/build_schemas/__init__.py +1 -0
  10. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/build_schemas/setuptools_build_schema.py +1 -5
  11. quickpub-4.1.3/quickpub/strategies/implementations/build_schemas/uv_build_schema.py +50 -0
  12. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/local_version_enforcer.py +27 -19
  13. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/upload_targets/pypirc_upload_target.py +6 -2
  14. quickpub-4.1.3/quickpub.egg-info/PKG-INFO +246 -0
  15. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub.egg-info/SOURCES.txt +2 -0
  16. quickpub-4.1.1/PKG-INFO +0 -177
  17. quickpub-4.1.1/README.md +0 -136
  18. quickpub-4.1.1/pyproject.toml +0 -34
  19. quickpub-4.1.1/quickpub/classifiers.py +0 -79
  20. quickpub-4.1.1/quickpub.egg-info/PKG-INFO +0 -177
  21. {quickpub-4.1.1 → quickpub-4.1.3}/LICENSE +0 -0
  22. {quickpub-4.1.1 → quickpub-4.1.3}/MANIFEST.in +0 -0
  23. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/enforcers.py +0 -0
  24. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/logging_.py +0 -0
  25. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/package_manager_detection.py +0 -0
  26. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/proxy.py +0 -0
  27. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/py.typed +0 -0
  28. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/qa.py +0 -0
  29. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/__init__.py +0 -0
  30. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/build_schema.py +0 -0
  31. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/constraint_enforcer.py +0 -0
  32. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/__init__.py +0 -0
  33. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/__init__.py +0 -0
  34. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/license_enforcer.py +0 -0
  35. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/pypi_remote_version_enforcer.py +0 -0
  36. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/pypirc_enforcer.py +0 -0
  37. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/constraint_enforcers/readme_enforcer.py +0 -0
  38. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/package_managers/__init__.py +0 -0
  39. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/package_managers/installed_package_parser.py +0 -0
  40. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/package_managers/pip_package_manager.py +0 -0
  41. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/package_managers/uv_package_manager.py +0 -0
  42. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/python_providers/__init__.py +0 -0
  43. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/python_providers/conda_python_provider.py +0 -0
  44. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/python_providers/default_python_provider.py +0 -0
  45. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/python_providers/union_provider.py +0 -0
  46. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/python_providers/uv_python_provider.py +0 -0
  47. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/quality_assurance_runners/__init__.py +0 -0
  48. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/quality_assurance_runners/mypy_qa_runner.py +0 -0
  49. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/quality_assurance_runners/pylint_qa_runner.py +0 -0
  50. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/quality_assurance_runners/pytest_qa_runner.py +0 -0
  51. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/quality_assurance_runners/unittest_qa_runner.py +0 -0
  52. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/upload_targets/__init__.py +0 -0
  53. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/implementations/upload_targets/github_upload_target.py +0 -0
  54. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/package_manager.py +0 -0
  55. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/python_provider.py +0 -0
  56. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/quality_assurance_runner.py +0 -0
  57. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/quickpub_strategy.py +0 -0
  58. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/strategies/upload_target.py +0 -0
  59. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/structures/__init__.py +0 -0
  60. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/structures/bound.py +0 -0
  61. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/structures/dependency.py +0 -0
  62. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/structures/version.py +0 -0
  63. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/validators.py +0 -0
  64. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub/worker_pool.py +0 -0
  65. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub.egg-info/dependency_links.txt +0 -0
  66. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub.egg-info/entry_points.txt +0 -0
  67. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub.egg-info/requires.txt +0 -0
  68. {quickpub-4.1.1 → quickpub-4.1.3}/quickpub.egg-info/top_level.txt +0 -0
  69. {quickpub-4.1.1 → quickpub-4.1.3}/setup.cfg +0 -0
  70. {quickpub-4.1.1 → quickpub-4.1.3}/setup.py +0 -0
@@ -0,0 +1,246 @@
1
+ Metadata-Version: 2.4
2
+ Name: quickpub
3
+ Version: 4.1.3
4
+ Summary: A local CI/CD simulation tool that runs quality checks, tests, and validations locally before publishing Python packages, ensuring higher build pass rates and faster feedback loops
5
+ Author-email: danielnachumdev <danielnachumdev@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2022 danielnachumdev
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ Project-URL: Homepage, https://github.com/danielnachumdev/quickpub
28
+ Project-URL: Bug Tracker, https://github.com/danielnachumdev/quickpub/issues
29
+ Classifier: Development Status :: 5 - Production/Stable
30
+ Classifier: Environment :: Console
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Programming Language :: Python
35
+ Classifier: Programming Language :: Python :: 3
36
+ Classifier: Programming Language :: Python :: 3 :: Only
37
+ Classifier: Programming Language :: Python :: 3.8
38
+ Classifier: Programming Language :: Python :: 3.9
39
+ Classifier: Programming Language :: Python :: 3.10
40
+ Classifier: Programming Language :: Python :: 3.11
41
+ Classifier: Programming Language :: Python :: 3.12
42
+ Classifier: Programming Language :: Python :: 3.13
43
+ Classifier: Topic :: Software Development :: Build Tools
44
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
45
+ Classifier: Topic :: Software Development :: Quality Assurance
46
+ Classifier: Typing :: Typed
47
+ Requires-Python: >=3.8.0
48
+ Description-Content-Type: text/markdown
49
+ License-File: LICENSE
50
+ Requires-Dist: danielutils>=1.1.23
51
+ Requires-Dist: requests
52
+ Requires-Dist: fire
53
+ Requires-Dist: twine
54
+ Dynamic: license-file
55
+
56
+ # QuickPub
57
+
58
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
59
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
60
+
61
+ Catch publish failures on your machine before they hit CI or PyPI.
62
+
63
+ QuickPub runs pre-publish checks, quality tools, tests, packaging, and upload in one pipeline — so broken releases fail locally with fast feedback.
64
+
65
+ ## The problem
66
+
67
+ Publishing a Python package usually means juggling several steps: validate project files, run mypy/pylint/pytest, bump the version, generate packaging files, build the sdist, upload to PyPI. Miss a step and you find out in CI — or worse, after a bad release.
68
+
69
+ QuickPub wires those steps together. You define your package once; it enforces constraints, runs QA across Python environments, builds, and uploads.
70
+
71
+ ## Install
72
+
73
+ ```bash
74
+ pip install quickpub
75
+ ```
76
+
77
+ With [uv](https://docs.astral.sh/uv/):
78
+
79
+ ```bash
80
+ uv add quickpub
81
+ ```
82
+
83
+ Requires Python **3.8+** (tested on 3.8–3.13).
84
+
85
+ ## Quick start
86
+
87
+ Add a `publish.py` in your project root:
88
+
89
+ ```python
90
+ from quickpub import (
91
+ publish,
92
+ MypyRunner,
93
+ PylintRunner,
94
+ PytestRunner,
95
+ SetuptoolsBuildSchema,
96
+ PypircUploadTarget,
97
+ PypircEnforcer,
98
+ ReadmeEnforcer,
99
+ LicenseEnforcer,
100
+ LocalVersionEnforcer,
101
+ PypiRemoteVersionEnforcer,
102
+ )
103
+
104
+ publish(
105
+ name="my-package",
106
+ version="1.0.0",
107
+ author="Your Name",
108
+ author_email="you@example.com",
109
+ description="My package",
110
+ homepage="https://github.com/you/my-package",
111
+ dependencies=["requests>=2.25.0"],
112
+ min_python="3.8.0",
113
+ enforcers=[
114
+ PypircEnforcer(),
115
+ ReadmeEnforcer(),
116
+ LicenseEnforcer(),
117
+ LocalVersionEnforcer(),
118
+ PypiRemoteVersionEnforcer(),
119
+ ],
120
+ global_quality_assurance_runners=[
121
+ MypyRunner(bound="<=20"),
122
+ PylintRunner(bound=">=0.8"),
123
+ PytestRunner(bound=">=0.95"),
124
+ ],
125
+ build_schemas=[SetuptoolsBuildSchema()],
126
+ upload_targets=[PypircUploadTarget()],
127
+ )
128
+ ```
129
+
130
+ ### uv / `pyproject.toml` projects (important)
131
+
132
+ If the project already has a PEP 621 `pyproject.toml` (uv, Hatch, Poetry, PDM), **do not** use the default file generation. `publish()` would overwrite `pyproject.toml` and wipe `[dependency-groups]`, `[tool.uv]`, `[tool.mypy]`, and other toolchain config.
133
+
134
+ Use `UvBuildSchema` and `generate_project_files=False`:
135
+
136
+ ```python
137
+ from quickpub import (
138
+ publish,
139
+ UvBuildSchema,
140
+ PypircUploadTarget,
141
+ PypircEnforcer,
142
+ ReadmeEnforcer,
143
+ LicenseEnforcer,
144
+ LocalVersionEnforcer,
145
+ PypiRemoteVersionEnforcer,
146
+ MypyRunner,
147
+ PylintRunner,
148
+ PytestRunner,
149
+ )
150
+
151
+ publish(
152
+ name="my-package",
153
+ version="1.0.0",
154
+ author="Your Name",
155
+ author_email="you@example.com",
156
+ description="My package",
157
+ homepage="https://github.com/you/my-package",
158
+ dependencies=["requests>=2.25.0"],
159
+ min_python="3.8.0",
160
+ enforcers=[
161
+ PypircEnforcer(),
162
+ ReadmeEnforcer(),
163
+ LicenseEnforcer(),
164
+ LocalVersionEnforcer(),
165
+ PypiRemoteVersionEnforcer(),
166
+ ],
167
+ global_quality_assurance_runners=[
168
+ MypyRunner(bound="<=20"),
169
+ PylintRunner(bound=">=0.8"),
170
+ PytestRunner(bound=">=0.95"),
171
+ ],
172
+ build_schemas=[UvBuildSchema()],
173
+ generate_project_files=False,
174
+ upload_targets=[PypircUploadTarget()],
175
+ )
176
+ ```
177
+
178
+ That keeps the existing `pyproject.toml`, bumps only `[project].version` and `__init__.__version__`, and builds with `uv build`. See [this repo's `publish.py`](publish.py).
179
+
180
+ Run it:
181
+
182
+ ```bash
183
+ python publish.py
184
+ ```
185
+
186
+ **Dry run** — validate and run QA without building or uploading:
187
+
188
+ ```python
189
+ publish(..., demo=True)
190
+ ```
191
+
192
+ PyPI upload needs a valid `.pypirc`. See [this repo's `publish.py`](publish.py) for a full working example.
193
+
194
+ ## What runs
195
+
196
+ When you call `publish()`, QuickPub runs these stages in order:
197
+
198
+ 1. **Enforcers** — checks README, LICENSE, `.pypirc`, and local/PyPI version consistency
199
+ 2. **Quality assurance** — mypy, pylint, pytest, and unittest with configurable score bounds, in parallel across detected Python environments
200
+ 3. **File generation** — by default writes `setup.py`, `pyproject.toml`, `MANIFEST.in`, and updates `__init__.py`. Pass `generate_project_files=False` to keep an existing `pyproject.toml` (only `[project].version` and `__init__.__version__` are updated).
201
+ 4. **Build & upload** — builds the sdist (`SetuptoolsBuildSchema` or `UvBuildSchema`) and uploads via twine (and optionally pushes to GitHub)
202
+
203
+ Skip build and upload with `demo=True`.
204
+
205
+ ## Environment detection
206
+
207
+ By default, QuickPub detects your toolchain from the project root:
208
+
209
+ | Project layout | Package manager | Python provider |
210
+ |---|---|---|
211
+ | `uv.lock` present | `UvPackageManager` | `UvPythonProvider` |
212
+ | otherwise | `PipPackageManager` | `DefaultPythonProvider` |
213
+
214
+ Override for conda or mixed setups:
215
+
216
+ ```python
217
+ from quickpub import CondaPythonProvider, UnionProvider
218
+
219
+ publish(
220
+ ...,
221
+ python_interpreter_provider=UnionProvider([
222
+ CondaPythonProvider(["base", "py39", "py38"]),
223
+ ]),
224
+ )
225
+ ```
226
+
227
+ For full control, pass `package_manager` and `python_interpreter_provider` explicitly, or call `resolve_publish_environment()` before `publish()`.
228
+
229
+ ## CLI
230
+
231
+ QuickPub installs a `quickpub` command that wraps `publish()` via [Fire](https://github.com/google/python-fire). For most projects, a `publish.py` script is easier to maintain than long CLI invocations.
232
+
233
+ ## Development
234
+
235
+ To work on QuickPub itself, clone the repo and use uv:
236
+
237
+ ```bash
238
+ git clone https://github.com/danielnachumdev/quickpub.git
239
+ cd quickpub
240
+ uv sync
241
+ uv run pytest
242
+ ```
243
+
244
+ ## License
245
+
246
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,191 @@
1
+ # QuickPub
2
+
3
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
4
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
5
+
6
+ Catch publish failures on your machine before they hit CI or PyPI.
7
+
8
+ QuickPub runs pre-publish checks, quality tools, tests, packaging, and upload in one pipeline — so broken releases fail locally with fast feedback.
9
+
10
+ ## The problem
11
+
12
+ Publishing a Python package usually means juggling several steps: validate project files, run mypy/pylint/pytest, bump the version, generate packaging files, build the sdist, upload to PyPI. Miss a step and you find out in CI — or worse, after a bad release.
13
+
14
+ QuickPub wires those steps together. You define your package once; it enforces constraints, runs QA across Python environments, builds, and uploads.
15
+
16
+ ## Install
17
+
18
+ ```bash
19
+ pip install quickpub
20
+ ```
21
+
22
+ With [uv](https://docs.astral.sh/uv/):
23
+
24
+ ```bash
25
+ uv add quickpub
26
+ ```
27
+
28
+ Requires Python **3.8+** (tested on 3.8–3.13).
29
+
30
+ ## Quick start
31
+
32
+ Add a `publish.py` in your project root:
33
+
34
+ ```python
35
+ from quickpub import (
36
+ publish,
37
+ MypyRunner,
38
+ PylintRunner,
39
+ PytestRunner,
40
+ SetuptoolsBuildSchema,
41
+ PypircUploadTarget,
42
+ PypircEnforcer,
43
+ ReadmeEnforcer,
44
+ LicenseEnforcer,
45
+ LocalVersionEnforcer,
46
+ PypiRemoteVersionEnforcer,
47
+ )
48
+
49
+ publish(
50
+ name="my-package",
51
+ version="1.0.0",
52
+ author="Your Name",
53
+ author_email="you@example.com",
54
+ description="My package",
55
+ homepage="https://github.com/you/my-package",
56
+ dependencies=["requests>=2.25.0"],
57
+ min_python="3.8.0",
58
+ enforcers=[
59
+ PypircEnforcer(),
60
+ ReadmeEnforcer(),
61
+ LicenseEnforcer(),
62
+ LocalVersionEnforcer(),
63
+ PypiRemoteVersionEnforcer(),
64
+ ],
65
+ global_quality_assurance_runners=[
66
+ MypyRunner(bound="<=20"),
67
+ PylintRunner(bound=">=0.8"),
68
+ PytestRunner(bound=">=0.95"),
69
+ ],
70
+ build_schemas=[SetuptoolsBuildSchema()],
71
+ upload_targets=[PypircUploadTarget()],
72
+ )
73
+ ```
74
+
75
+ ### uv / `pyproject.toml` projects (important)
76
+
77
+ If the project already has a PEP 621 `pyproject.toml` (uv, Hatch, Poetry, PDM), **do not** use the default file generation. `publish()` would overwrite `pyproject.toml` and wipe `[dependency-groups]`, `[tool.uv]`, `[tool.mypy]`, and other toolchain config.
78
+
79
+ Use `UvBuildSchema` and `generate_project_files=False`:
80
+
81
+ ```python
82
+ from quickpub import (
83
+ publish,
84
+ UvBuildSchema,
85
+ PypircUploadTarget,
86
+ PypircEnforcer,
87
+ ReadmeEnforcer,
88
+ LicenseEnforcer,
89
+ LocalVersionEnforcer,
90
+ PypiRemoteVersionEnforcer,
91
+ MypyRunner,
92
+ PylintRunner,
93
+ PytestRunner,
94
+ )
95
+
96
+ publish(
97
+ name="my-package",
98
+ version="1.0.0",
99
+ author="Your Name",
100
+ author_email="you@example.com",
101
+ description="My package",
102
+ homepage="https://github.com/you/my-package",
103
+ dependencies=["requests>=2.25.0"],
104
+ min_python="3.8.0",
105
+ enforcers=[
106
+ PypircEnforcer(),
107
+ ReadmeEnforcer(),
108
+ LicenseEnforcer(),
109
+ LocalVersionEnforcer(),
110
+ PypiRemoteVersionEnforcer(),
111
+ ],
112
+ global_quality_assurance_runners=[
113
+ MypyRunner(bound="<=20"),
114
+ PylintRunner(bound=">=0.8"),
115
+ PytestRunner(bound=">=0.95"),
116
+ ],
117
+ build_schemas=[UvBuildSchema()],
118
+ generate_project_files=False,
119
+ upload_targets=[PypircUploadTarget()],
120
+ )
121
+ ```
122
+
123
+ That keeps the existing `pyproject.toml`, bumps only `[project].version` and `__init__.__version__`, and builds with `uv build`. See [this repo's `publish.py`](publish.py).
124
+
125
+ Run it:
126
+
127
+ ```bash
128
+ python publish.py
129
+ ```
130
+
131
+ **Dry run** — validate and run QA without building or uploading:
132
+
133
+ ```python
134
+ publish(..., demo=True)
135
+ ```
136
+
137
+ PyPI upload needs a valid `.pypirc`. See [this repo's `publish.py`](publish.py) for a full working example.
138
+
139
+ ## What runs
140
+
141
+ When you call `publish()`, QuickPub runs these stages in order:
142
+
143
+ 1. **Enforcers** — checks README, LICENSE, `.pypirc`, and local/PyPI version consistency
144
+ 2. **Quality assurance** — mypy, pylint, pytest, and unittest with configurable score bounds, in parallel across detected Python environments
145
+ 3. **File generation** — by default writes `setup.py`, `pyproject.toml`, `MANIFEST.in`, and updates `__init__.py`. Pass `generate_project_files=False` to keep an existing `pyproject.toml` (only `[project].version` and `__init__.__version__` are updated).
146
+ 4. **Build & upload** — builds the sdist (`SetuptoolsBuildSchema` or `UvBuildSchema`) and uploads via twine (and optionally pushes to GitHub)
147
+
148
+ Skip build and upload with `demo=True`.
149
+
150
+ ## Environment detection
151
+
152
+ By default, QuickPub detects your toolchain from the project root:
153
+
154
+ | Project layout | Package manager | Python provider |
155
+ |---|---|---|
156
+ | `uv.lock` present | `UvPackageManager` | `UvPythonProvider` |
157
+ | otherwise | `PipPackageManager` | `DefaultPythonProvider` |
158
+
159
+ Override for conda or mixed setups:
160
+
161
+ ```python
162
+ from quickpub import CondaPythonProvider, UnionProvider
163
+
164
+ publish(
165
+ ...,
166
+ python_interpreter_provider=UnionProvider([
167
+ CondaPythonProvider(["base", "py39", "py38"]),
168
+ ]),
169
+ )
170
+ ```
171
+
172
+ For full control, pass `package_manager` and `python_interpreter_provider` explicitly, or call `resolve_publish_environment()` before `publish()`.
173
+
174
+ ## CLI
175
+
176
+ QuickPub installs a `quickpub` command that wraps `publish()` via [Fire](https://github.com/google/python-fire). For most projects, a `publish.py` script is easier to maintain than long CLI invocations.
177
+
178
+ ## Development
179
+
180
+ To work on QuickPub itself, clone the repo and use uv:
181
+
182
+ ```bash
183
+ git clone https://github.com/danielnachumdev/quickpub.git
184
+ cd quickpub
185
+ uv sync
186
+ uv run pytest
187
+ ```
188
+
189
+ ## License
190
+
191
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,162 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "quickpub"
7
+ version = "4.1.3"
8
+ authors = [
9
+ { name = "danielnachumdev", email = "danielnachumdev@gmail.com" },
10
+ ]
11
+ dependencies = [
12
+ "danielutils>=1.1.23",
13
+ "requests",
14
+ "fire",
15
+ "twine",
16
+ ]
17
+ keywords = []
18
+ license = { "file" = "./LICENSE" }
19
+ description = "A local CI/CD simulation tool that runs quality checks, tests, and validations locally before publishing Python packages, ensuring higher build pass rates and faster feedback loops"
20
+ readme = {file = "./README.md", content-type = "text/markdown"}
21
+ requires-python = ">=3.8.0"
22
+ classifiers = [
23
+ "Development Status :: 5 - Production/Stable",
24
+ "Environment :: Console",
25
+ "Intended Audience :: Developers",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Operating System :: OS Independent",
28
+ "Programming Language :: Python",
29
+ "Programming Language :: Python :: 3",
30
+ "Programming Language :: Python :: 3 :: Only",
31
+ "Programming Language :: Python :: 3.8",
32
+ "Programming Language :: Python :: 3.9",
33
+ "Programming Language :: Python :: 3.10",
34
+ "Programming Language :: Python :: 3.11",
35
+ "Programming Language :: Python :: 3.12",
36
+ "Programming Language :: Python :: 3.13",
37
+ "Topic :: Software Development :: Build Tools",
38
+ "Topic :: Software Development :: Libraries :: Python Modules",
39
+ "Topic :: Software Development :: Quality Assurance",
40
+ "Typing :: Typed",
41
+ ]
42
+ [project.scripts]
43
+ quickpub = "quickpub.__main__:main"
44
+
45
+ [tool.setuptools]
46
+ packages = ["quickpub"]
47
+
48
+ [tool.setuptools.package-data]
49
+ "quickpub" = ["py.typed"]
50
+
51
+ [project.urls]
52
+ "Homepage" = "https://github.com/danielnachumdev/quickpub"
53
+ "Bug Tracker" = "https://github.com/danielnachumdev/quickpub/issues"
54
+
55
+ [dependency-groups]
56
+ dev = [
57
+ "githooklib>=1.0.0",
58
+ "tqdm",
59
+ "pylint",
60
+ "mypy",
61
+ "types-tqdm",
62
+ "types-requests",
63
+ "beautifulsoup4",
64
+ "setuptools",
65
+ "black",
66
+ ]
67
+ test = [
68
+ "pytest",
69
+ "pytest-xdist",
70
+ "pytest-asyncio",
71
+ "pytest-cov",
72
+ ]
73
+
74
+ [tool.uv]
75
+ default-groups = ["dev", "test"]
76
+
77
+ [tool.pytest.ini_options]
78
+ asyncio_default_fixture_loop_scope = "function"
79
+ testpaths = ["tests"]
80
+ python_files = ["test_*.py"]
81
+ python_classes = ["Test*"]
82
+ python_functions = ["test_*"]
83
+ addopts = [
84
+ "-q",
85
+ "--strict-markers",
86
+ "--tb=short",
87
+ "--cov",
88
+ "--cov-report=html",
89
+ "--cov-report=term-missing",
90
+ "--color=yes",
91
+ "--durations=10",
92
+ "--maxfail=10",
93
+ ]
94
+ markers = [
95
+ "unit: Unit tests",
96
+ "integration: Integration tests",
97
+ "slow: Slow running tests",
98
+ ]
99
+
100
+ [tool.coverage.run]
101
+ source = ["quickpub"]
102
+ branch = false
103
+ parallel = false
104
+
105
+ [tool.coverage.report]
106
+ precision = 2
107
+ show_missing = true
108
+ skip_covered = false
109
+ fail_under = 50
110
+ sort = "Cover"
111
+
112
+ [tool.coverage.html]
113
+ directory = "htmlcov"
114
+
115
+ [tool.mypy]
116
+ disallow_untyped_calls = true
117
+ check_untyped_defs = true
118
+ no_implicit_optional = true
119
+ strict_optional = true
120
+ namespace_packages = true
121
+ explicit_package_bases = true
122
+ files = ["quickpub/*.py", "tests", "publish.py"]
123
+
124
+ [[tool.mypy.overrides]]
125
+ module = "*"
126
+ ignore_missing_imports = true
127
+
128
+ [tool.pylint.main]
129
+ ignore-paths = ["^tests/.*", "^tmp/.*"]
130
+
131
+ [tool.pylint.basic]
132
+ good-names = ["foo", "bar"]
133
+ good-names-rgxs = ["^[a-zA-Z]"]
134
+
135
+ [tool.pylint.naming]
136
+ class-rgx = "^(_)?[A-Z][a-zA-Z0-9]*$"
137
+ module-rgx = "^[a-zA-Z][a-zA-Z0-9_]*$"
138
+
139
+ [tool.pylint.messages_control]
140
+ disable = [
141
+ "W0211",
142
+ "C0114",
143
+ "E1120",
144
+ "E0611",
145
+ "W0702",
146
+ "W0612",
147
+ "R0913",
148
+ "C0415",
149
+ "R0912",
150
+ "R0903",
151
+ "R0914",
152
+ "R0911",
153
+ "R1716",
154
+ "W0401",
155
+ "R0801",
156
+ "C0116",
157
+ "W0212",
158
+ "C0115",
159
+ ]
160
+
161
+ [tool.pylint.format]
162
+ max-line-length = 120
@@ -1,9 +1,10 @@
1
1
  from .structures import *
2
2
  from .strategies import *
3
+ from .classifiers import *
3
4
  from .enforcers import ExitEarlyError
4
5
  from .qa import SupportsProgress
5
6
  from .logging_ import set_log_level
6
7
  from .package_manager_detection import detect_package_manager, resolve_publish_environment
7
8
  from .__main__ import publish, main
8
9
 
9
- __version__ = "4.1.1"
10
+ __version__ = "4.1.3"