tablish 1.0.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.
- tablish-1.0.0/LICENSE +21 -0
- tablish-1.0.0/MANIFEST.in +5 -0
- tablish-1.0.0/PKG-INFO +132 -0
- tablish-1.0.0/README.md +107 -0
- tablish-1.0.0/pyproject.toml +150 -0
- tablish-1.0.0/semver.txt +1 -0
- tablish-1.0.0/setup.cfg +4 -0
- tablish-1.0.0/tablish/__init__.py +87 -0
- tablish-1.0.0/tablish/__main__.py +8 -0
- tablish-1.0.0/tablish/cli.py +266 -0
- tablish-1.0.0/tablish/config.py +418 -0
- tablish-1.0.0/tablish/py.typed +0 -0
- tablish-1.0.0/tablish/release.py +904 -0
- tablish-1.0.0/tablish/t.py +38 -0
- tablish-1.0.0/tablish.egg-info/PKG-INFO +132 -0
- tablish-1.0.0/tablish.egg-info/SOURCES.txt +20 -0
- tablish-1.0.0/tablish.egg-info/dependency_links.txt +1 -0
- tablish-1.0.0/tablish.egg-info/entry_points.txt +2 -0
- tablish-1.0.0/tablish.egg-info/requires.txt +3 -0
- tablish-1.0.0/tablish.egg-info/top_level.txt +1 -0
- tablish-1.0.0/tests/test_config.py +250 -0
- tablish-1.0.0/tests/test_release.py +674 -0
tablish-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tab Atkins-Bittner
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
tablish-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tablish
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Release automation CLI for publishing Python packages to PyPI
|
|
5
|
+
Author: Tab Atkins-Bittner
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/tabatkins/tablish
|
|
8
|
+
Project-URL: Repository, https://github.com/tabatkins/tablish
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
17
|
+
Classifier: Typing :: Typed
|
|
18
|
+
Requires-Python: >=3.12
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: build
|
|
22
|
+
Requires-Dist: check-manifest
|
|
23
|
+
Requires-Dist: twine
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# tablish
|
|
27
|
+
|
|
28
|
+
A typed Python 3.12+ CLI tool for releasing Python packages to PyPI, configured via `[tool.tablish]` in `pyproject.toml`.
|
|
29
|
+
|
|
30
|
+
## What it does
|
|
31
|
+
|
|
32
|
+
1. Verifies you are at the root of the expected git repository with a clean working tree.
|
|
33
|
+
2. Reads and bumps your semver file (`break`/`major`, `feature`/`minor`, `bugfix`/`patch`, or an explicit `MAJOR.MINOR.PATCH` version).
|
|
34
|
+
3. Runs your project's lint/test command (or `check-manifest` when `--skip-lint` is passed) and verifies it leaves the working tree clean.
|
|
35
|
+
4. Optionally generates extra version/metadata files (and rolls them back automatically on `--dry-run`, `--test`, or failure).
|
|
36
|
+
5. Builds sdist and wheel with `build` and validates them with `twine check`.
|
|
37
|
+
6. Uploads to PyPI (or `test.pypi.org` with `--test`) using a token from `secrets.json` or `TWINE_PASSWORD`.
|
|
38
|
+
7. Commits the updated version file(s), creates an annotated git tag, and pushes with `--follow-tags`.
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
pip install tablish
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or install locally in editable mode:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install -e /path/to/tablish
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Requires Python 3.12+.
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
Run `tablish` from your project's root directory (or pass `-C PATH`):
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
tablish bugfix # bump patch version (or `patch`) and publish to pypi.org
|
|
60
|
+
tablish feature --dry-run # bump minor version (or `minor`) without uploading or committing
|
|
61
|
+
tablish break --test # bump major version (or `major`), upload to test.pypi.org, and roll back
|
|
62
|
+
tablish 2.0.0 # release an explicit version
|
|
63
|
+
tablish bugfix --skip-lint # skip lint command (still runs check-manifest if enabled)
|
|
64
|
+
tablish bugfix --no-tag # skip creating/pushing a git tag
|
|
65
|
+
tablish bugfix --verbose-pypi # show verbose output and error details from PyPI upload
|
|
66
|
+
tablish info # display resolved publish metadata (explicit vs defaulted)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## PyPI Credentials
|
|
70
|
+
|
|
71
|
+
By default, `tablish` reads a JSON file at `secrets.json` (gitignored!) in your project root:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"pypi.org release key": "pypi-...",
|
|
76
|
+
"test.pypi.org release key": "pypi-..."
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
If the secrets file is inside the repository (including the default `secrets.json`), `tablish` verifies that it is untracked and gitignored and refuses to run if it is not. If the secrets file is absent, `tablish` falls back to the `TWINE_PASSWORD` environment variable (and `TWINE_USERNAME`, defaulting to `__token__`). You can also point `secrets-file` to a shared path outside the repository such as `~/.config/tablish/secrets.json`.
|
|
81
|
+
|
|
82
|
+
## Configuration (`pyproject.toml`)
|
|
83
|
+
|
|
84
|
+
All keys under `[tool.tablish]` are optional; sensible defaults are inferred from `pyproject.toml`.
|
|
85
|
+
|
|
86
|
+
```toml
|
|
87
|
+
[tool.tablish]
|
|
88
|
+
project-name = "myproject" # defaults to [project].name (set "" to disable remote/dir match)
|
|
89
|
+
semver-file = "semver.txt" # defaults to [tool.setuptools.dynamic].version.file or "semver.txt"
|
|
90
|
+
secrets-file = "secrets.json" # relative to project root, or absolute / ~-expanded path
|
|
91
|
+
pypi-secret-key = "pypi.org release key"
|
|
92
|
+
test-pypi-secret-key = "test.pypi.org release key"
|
|
93
|
+
pypi-url = "" # optional custom repository URL for production uploads
|
|
94
|
+
test-pypi-url = "https://test.pypi.org/legacy/"
|
|
95
|
+
build-dirs = ["build", "dist"]
|
|
96
|
+
lint-command = ["sh", "lint"] # list of args, shell string, or false to disable (defaults to ./lint)
|
|
97
|
+
check-manifest = true # run check-manifest when lint is skipped or disabled
|
|
98
|
+
check-manifest-args = ["--no-build-isolation"]
|
|
99
|
+
tag = true # create and push an annotated git tag (overridden by --no-tag)
|
|
100
|
+
tag-format = "v{version}"
|
|
101
|
+
tag-message = "Release {version}"
|
|
102
|
+
commit-message = "Bump semver to {version}"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Extra generated files
|
|
106
|
+
|
|
107
|
+
Projects that also maintain generated version/build info files can declare `[[tool.tablish.generated-files]]` entries. Each entry takes a relative `path` and either a `command` (whose stripped stdout is written to `path`) or a `template` string (with `{version}` replaced):
|
|
108
|
+
|
|
109
|
+
```toml
|
|
110
|
+
[[tool.tablish.generated-files]]
|
|
111
|
+
path = "mypkg/version-info.txt"
|
|
112
|
+
command = ["git", "log", "-1", "--format=mypkg version %h, updated %cd"]
|
|
113
|
+
|
|
114
|
+
[[tool.tablish.generated-files]]
|
|
115
|
+
path = "mypkg/_version.py"
|
|
116
|
+
template = '__version__ = "{version}"\n'
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Generated files are written alongside `semver-file` before building, staged and committed on real releases, and automatically rolled back (or deleted if newly created) on `--dry-run`, `--test`, or errors.
|
|
120
|
+
|
|
121
|
+
## Development
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
pip install -r requirements-dev.txt
|
|
125
|
+
./lint # runs ruff, black, mypy, pylint (10/10), check-manifest, and pytest
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for coding conventions.
|
|
129
|
+
|
|
130
|
+
## License
|
|
131
|
+
|
|
132
|
+
MIT License — see [LICENSE](LICENSE).
|
tablish-1.0.0/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# tablish
|
|
2
|
+
|
|
3
|
+
A typed Python 3.12+ CLI tool for releasing Python packages to PyPI, configured via `[tool.tablish]` in `pyproject.toml`.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
1. Verifies you are at the root of the expected git repository with a clean working tree.
|
|
8
|
+
2. Reads and bumps your semver file (`break`/`major`, `feature`/`minor`, `bugfix`/`patch`, or an explicit `MAJOR.MINOR.PATCH` version).
|
|
9
|
+
3. Runs your project's lint/test command (or `check-manifest` when `--skip-lint` is passed) and verifies it leaves the working tree clean.
|
|
10
|
+
4. Optionally generates extra version/metadata files (and rolls them back automatically on `--dry-run`, `--test`, or failure).
|
|
11
|
+
5. Builds sdist and wheel with `build` and validates them with `twine check`.
|
|
12
|
+
6. Uploads to PyPI (or `test.pypi.org` with `--test`) using a token from `secrets.json` or `TWINE_PASSWORD`.
|
|
13
|
+
7. Commits the updated version file(s), creates an annotated git tag, and pushes with `--follow-tags`.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pip install tablish
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or install locally in editable mode:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
pip install -e /path/to/tablish
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Requires Python 3.12+.
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Run `tablish` from your project's root directory (or pass `-C PATH`):
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
tablish bugfix # bump patch version (or `patch`) and publish to pypi.org
|
|
35
|
+
tablish feature --dry-run # bump minor version (or `minor`) without uploading or committing
|
|
36
|
+
tablish break --test # bump major version (or `major`), upload to test.pypi.org, and roll back
|
|
37
|
+
tablish 2.0.0 # release an explicit version
|
|
38
|
+
tablish bugfix --skip-lint # skip lint command (still runs check-manifest if enabled)
|
|
39
|
+
tablish bugfix --no-tag # skip creating/pushing a git tag
|
|
40
|
+
tablish bugfix --verbose-pypi # show verbose output and error details from PyPI upload
|
|
41
|
+
tablish info # display resolved publish metadata (explicit vs defaulted)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## PyPI Credentials
|
|
45
|
+
|
|
46
|
+
By default, `tablish` reads a JSON file at `secrets.json` (gitignored!) in your project root:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"pypi.org release key": "pypi-...",
|
|
51
|
+
"test.pypi.org release key": "pypi-..."
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
If the secrets file is inside the repository (including the default `secrets.json`), `tablish` verifies that it is untracked and gitignored and refuses to run if it is not. If the secrets file is absent, `tablish` falls back to the `TWINE_PASSWORD` environment variable (and `TWINE_USERNAME`, defaulting to `__token__`). You can also point `secrets-file` to a shared path outside the repository such as `~/.config/tablish/secrets.json`.
|
|
56
|
+
|
|
57
|
+
## Configuration (`pyproject.toml`)
|
|
58
|
+
|
|
59
|
+
All keys under `[tool.tablish]` are optional; sensible defaults are inferred from `pyproject.toml`.
|
|
60
|
+
|
|
61
|
+
```toml
|
|
62
|
+
[tool.tablish]
|
|
63
|
+
project-name = "myproject" # defaults to [project].name (set "" to disable remote/dir match)
|
|
64
|
+
semver-file = "semver.txt" # defaults to [tool.setuptools.dynamic].version.file or "semver.txt"
|
|
65
|
+
secrets-file = "secrets.json" # relative to project root, or absolute / ~-expanded path
|
|
66
|
+
pypi-secret-key = "pypi.org release key"
|
|
67
|
+
test-pypi-secret-key = "test.pypi.org release key"
|
|
68
|
+
pypi-url = "" # optional custom repository URL for production uploads
|
|
69
|
+
test-pypi-url = "https://test.pypi.org/legacy/"
|
|
70
|
+
build-dirs = ["build", "dist"]
|
|
71
|
+
lint-command = ["sh", "lint"] # list of args, shell string, or false to disable (defaults to ./lint)
|
|
72
|
+
check-manifest = true # run check-manifest when lint is skipped or disabled
|
|
73
|
+
check-manifest-args = ["--no-build-isolation"]
|
|
74
|
+
tag = true # create and push an annotated git tag (overridden by --no-tag)
|
|
75
|
+
tag-format = "v{version}"
|
|
76
|
+
tag-message = "Release {version}"
|
|
77
|
+
commit-message = "Bump semver to {version}"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Extra generated files
|
|
81
|
+
|
|
82
|
+
Projects that also maintain generated version/build info files can declare `[[tool.tablish.generated-files]]` entries. Each entry takes a relative `path` and either a `command` (whose stripped stdout is written to `path`) or a `template` string (with `{version}` replaced):
|
|
83
|
+
|
|
84
|
+
```toml
|
|
85
|
+
[[tool.tablish.generated-files]]
|
|
86
|
+
path = "mypkg/version-info.txt"
|
|
87
|
+
command = ["git", "log", "-1", "--format=mypkg version %h, updated %cd"]
|
|
88
|
+
|
|
89
|
+
[[tool.tablish.generated-files]]
|
|
90
|
+
path = "mypkg/_version.py"
|
|
91
|
+
template = '__version__ = "{version}"\n'
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Generated files are written alongside `semver-file` before building, staged and committed on real releases, and automatically rolled back (or deleted if newly created) on `--dry-run`, `--test`, or errors.
|
|
95
|
+
|
|
96
|
+
## Development
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
pip install -r requirements-dev.txt
|
|
100
|
+
./lint # runs ruff, black, mypy, pylint (10/10), check-manifest, and pytest
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for coding conventions.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
MIT License — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tablish"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Release automation CLI for publishing Python packages to PyPI"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "Tab Atkins-Bittner"},
|
|
15
|
+
]
|
|
16
|
+
dependencies = [
|
|
17
|
+
"build",
|
|
18
|
+
"check-manifest",
|
|
19
|
+
"twine",
|
|
20
|
+
]
|
|
21
|
+
classifiers = [
|
|
22
|
+
"Development Status :: 4 - Beta",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
|
+
"Programming Language :: Python :: 3.14",
|
|
29
|
+
"Topic :: Software Development :: Build Tools",
|
|
30
|
+
"Typing :: Typed",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/tabatkins/tablish"
|
|
35
|
+
Repository = "https://github.com/tabatkins/tablish"
|
|
36
|
+
|
|
37
|
+
[project.scripts]
|
|
38
|
+
tablish = "tablish.cli:main"
|
|
39
|
+
|
|
40
|
+
[tool.setuptools.dynamic]
|
|
41
|
+
version = {file = "semver.txt"}
|
|
42
|
+
|
|
43
|
+
[tool.setuptools.packages.find]
|
|
44
|
+
where = ["."]
|
|
45
|
+
include = ["tablish*"]
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.package-data]
|
|
48
|
+
tablish = ["py.typed"]
|
|
49
|
+
|
|
50
|
+
[tool.black]
|
|
51
|
+
line-length = 120
|
|
52
|
+
target-version = ["py312"]
|
|
53
|
+
|
|
54
|
+
[tool.pylint."MESSAGES CONTROL"]
|
|
55
|
+
disable = [
|
|
56
|
+
"invalid-name", # camelCase style
|
|
57
|
+
"line-too-long", # black handles line lengths
|
|
58
|
+
"no-else-break", # stylistic preference
|
|
59
|
+
"no-else-continue", # ditto
|
|
60
|
+
"no-else-raise", # ditto
|
|
61
|
+
"no-else-return", # ditto
|
|
62
|
+
"superfluous-parens", # stylistic preference
|
|
63
|
+
"too-few-public-methods",
|
|
64
|
+
"too-many-arguments",
|
|
65
|
+
"too-many-boolean-expressions",
|
|
66
|
+
"too-many-branches",
|
|
67
|
+
"too-many-instance-attributes",
|
|
68
|
+
"too-many-lines",
|
|
69
|
+
"too-many-locals",
|
|
70
|
+
"too-many-nested-blocks",
|
|
71
|
+
"too-many-return-statements",
|
|
72
|
+
"too-many-statements",
|
|
73
|
+
"useless-import-alias", # explicit PEP 484 re-exports in __init__.py
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[tool.ruff]
|
|
77
|
+
target-version = "py312"
|
|
78
|
+
line-length = 120
|
|
79
|
+
|
|
80
|
+
[tool.ruff.lint]
|
|
81
|
+
ignore = [
|
|
82
|
+
"E501", # black handles line lengths
|
|
83
|
+
"F811", # @overload redefinitions
|
|
84
|
+
"N802", # camelCase style
|
|
85
|
+
"N803",
|
|
86
|
+
"N806",
|
|
87
|
+
"N812",
|
|
88
|
+
"N815",
|
|
89
|
+
"N816",
|
|
90
|
+
"N999",
|
|
91
|
+
"S101", # assert is used for mypy narrowing
|
|
92
|
+
"PLC0414", # explicit PEP 484 re-exports in __init__.py
|
|
93
|
+
"PLR0911",
|
|
94
|
+
"PLR0912",
|
|
95
|
+
"PLR0913",
|
|
96
|
+
"PLR0915",
|
|
97
|
+
"PLR2004",
|
|
98
|
+
"PLR5501",
|
|
99
|
+
"ISC003", # prefer explicit `+` over implicit multiline concat
|
|
100
|
+
"SIM102", # stylistic readability preferences
|
|
101
|
+
"SIM103",
|
|
102
|
+
"SIM108",
|
|
103
|
+
"SIM114",
|
|
104
|
+
]
|
|
105
|
+
select = [
|
|
106
|
+
"ANN",
|
|
107
|
+
"E",
|
|
108
|
+
"F",
|
|
109
|
+
"N",
|
|
110
|
+
"W",
|
|
111
|
+
"I",
|
|
112
|
+
"YTT",
|
|
113
|
+
"S",
|
|
114
|
+
"PL",
|
|
115
|
+
"COM",
|
|
116
|
+
"C4",
|
|
117
|
+
"EM",
|
|
118
|
+
"EXE",
|
|
119
|
+
"INP",
|
|
120
|
+
"T20",
|
|
121
|
+
"RSE",
|
|
122
|
+
"ISC",
|
|
123
|
+
"SIM",
|
|
124
|
+
"RUF",
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
[tool.ruff.lint.per-file-ignores]
|
|
128
|
+
"tablish/cli.py" = ["T201"] # CLI prints progress and errors
|
|
129
|
+
"tablish/release.py" = ["S603", "S607"] # release runner invokes git/lint/build/twine
|
|
130
|
+
"tests/*.py" = ["INP001", "S603", "S607"]
|
|
131
|
+
|
|
132
|
+
[tool.ruff.lint.isort]
|
|
133
|
+
combine-as-imports = true
|
|
134
|
+
|
|
135
|
+
[tool.ruff.lint.flake8-implicit-str-concat]
|
|
136
|
+
allow-multiline = false
|
|
137
|
+
|
|
138
|
+
[tool.pytest.ini_options]
|
|
139
|
+
testpaths = ["tests"]
|
|
140
|
+
pythonpath = ["."]
|
|
141
|
+
|
|
142
|
+
[tool.check-manifest]
|
|
143
|
+
ignore = [
|
|
144
|
+
"CONTRIBUTING.md",
|
|
145
|
+
"lint",
|
|
146
|
+
"mypy.ini",
|
|
147
|
+
"requirements-dev.txt",
|
|
148
|
+
"requirements.txt",
|
|
149
|
+
"tests/**",
|
|
150
|
+
]
|
tablish-1.0.0/semver.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.0
|
tablish-1.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Release automation CLI for publishing Python packages to PyPI."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .cli import (
|
|
6
|
+
formatReleaseMetadata as formatReleaseMetadata,
|
|
7
|
+
main as main,
|
|
8
|
+
parseArgs as parseArgs,
|
|
9
|
+
supportsColor as supportsColor,
|
|
10
|
+
)
|
|
11
|
+
from .config import (
|
|
12
|
+
DEFAULT_BUILD_DIRS as DEFAULT_BUILD_DIRS,
|
|
13
|
+
DEFAULT_CHECK_MANIFEST_ARGS as DEFAULT_CHECK_MANIFEST_ARGS,
|
|
14
|
+
DEFAULT_COMMIT_MESSAGE as DEFAULT_COMMIT_MESSAGE,
|
|
15
|
+
DEFAULT_PYPI_SECRET_KEY as DEFAULT_PYPI_SECRET_KEY,
|
|
16
|
+
DEFAULT_SECRETS_FILE as DEFAULT_SECRETS_FILE,
|
|
17
|
+
DEFAULT_SEMVER_FILE as DEFAULT_SEMVER_FILE,
|
|
18
|
+
DEFAULT_TAG_FORMAT as DEFAULT_TAG_FORMAT,
|
|
19
|
+
DEFAULT_TAG_MESSAGE as DEFAULT_TAG_MESSAGE,
|
|
20
|
+
DEFAULT_TEST_PYPI_SECRET_KEY as DEFAULT_TEST_PYPI_SECRET_KEY,
|
|
21
|
+
DEFAULT_TEST_PYPI_URL as DEFAULT_TEST_PYPI_URL,
|
|
22
|
+
GeneratedFileConfig as GeneratedFileConfig,
|
|
23
|
+
ReleaseError as ReleaseError,
|
|
24
|
+
TablishConfig as TablishConfig,
|
|
25
|
+
loadConfig as loadConfig,
|
|
26
|
+
parseConfigData as parseConfigData,
|
|
27
|
+
)
|
|
28
|
+
from .release import (
|
|
29
|
+
MetadataItem as MetadataItem,
|
|
30
|
+
ReleaseMetadata as ReleaseMetadata,
|
|
31
|
+
ReleaseOptions as ReleaseOptions,
|
|
32
|
+
ReleaseResult as ReleaseResult,
|
|
33
|
+
bumpSemver as bumpSemver,
|
|
34
|
+
cleanBuildArtifacts as cleanBuildArtifacts,
|
|
35
|
+
collectReleaseMetadata as collectReleaseMetadata,
|
|
36
|
+
createRelease as createRelease,
|
|
37
|
+
ensureSecretsGitIgnored as ensureSecretsGitIgnored,
|
|
38
|
+
findToolCommand as findToolCommand,
|
|
39
|
+
getDirtyFiles as getDirtyFiles,
|
|
40
|
+
gitTagExists as gitTagExists,
|
|
41
|
+
inProjectRoot as inProjectRoot,
|
|
42
|
+
isGitIgnored as isGitIgnored,
|
|
43
|
+
loadPyPiToken as loadPyPiToken,
|
|
44
|
+
parseSemver as parseSemver,
|
|
45
|
+
resolveSecretsPath as resolveSecretsPath,
|
|
46
|
+
runCommand as runCommand,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
__all__ = [
|
|
50
|
+
"DEFAULT_BUILD_DIRS",
|
|
51
|
+
"DEFAULT_CHECK_MANIFEST_ARGS",
|
|
52
|
+
"DEFAULT_COMMIT_MESSAGE",
|
|
53
|
+
"DEFAULT_PYPI_SECRET_KEY",
|
|
54
|
+
"DEFAULT_SECRETS_FILE",
|
|
55
|
+
"DEFAULT_SEMVER_FILE",
|
|
56
|
+
"DEFAULT_TAG_FORMAT",
|
|
57
|
+
"DEFAULT_TAG_MESSAGE",
|
|
58
|
+
"DEFAULT_TEST_PYPI_SECRET_KEY",
|
|
59
|
+
"DEFAULT_TEST_PYPI_URL",
|
|
60
|
+
"GeneratedFileConfig",
|
|
61
|
+
"MetadataItem",
|
|
62
|
+
"ReleaseError",
|
|
63
|
+
"ReleaseMetadata",
|
|
64
|
+
"ReleaseOptions",
|
|
65
|
+
"ReleaseResult",
|
|
66
|
+
"TablishConfig",
|
|
67
|
+
"bumpSemver",
|
|
68
|
+
"cleanBuildArtifacts",
|
|
69
|
+
"collectReleaseMetadata",
|
|
70
|
+
"createRelease",
|
|
71
|
+
"ensureSecretsGitIgnored",
|
|
72
|
+
"findToolCommand",
|
|
73
|
+
"formatReleaseMetadata",
|
|
74
|
+
"getDirtyFiles",
|
|
75
|
+
"gitTagExists",
|
|
76
|
+
"inProjectRoot",
|
|
77
|
+
"isGitIgnored",
|
|
78
|
+
"loadConfig",
|
|
79
|
+
"loadPyPiToken",
|
|
80
|
+
"main",
|
|
81
|
+
"parseArgs",
|
|
82
|
+
"parseConfigData",
|
|
83
|
+
"parseSemver",
|
|
84
|
+
"resolveSecretsPath",
|
|
85
|
+
"runCommand",
|
|
86
|
+
"supportsColor",
|
|
87
|
+
]
|