auto-walrus 0.3.2__tar.gz → 0.3.4__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.
- auto_walrus-0.3.4/.github/dependabot.yml +13 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/.github/workflows/publish_to_pypi.yml +5 -5
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/.github/workflows/tox.yml +5 -4
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/.pre-commit-config.yaml +1 -1
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/PKG-INFO +3 -2
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/README.md +1 -1
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/pyproject.toml +7 -1
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/tests/main_test.py +1 -2
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/tox.ini +1 -1
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/utils/bump_version.py +9 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/.gitignore +0 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/.pre-commit-hooks.yaml +0 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/LICENSE +0 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/auto_walrus.py +0 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/requirements-dev.txt +0 -0
- {auto_walrus-0.3.2 → auto_walrus-0.3.4}/tests/__init__.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Keep GitHub Actions up to date with GitHub's Dependabot...
|
|
2
|
+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
|
|
3
|
+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
- package-ecosystem: github-actions
|
|
7
|
+
directory: /
|
|
8
|
+
groups:
|
|
9
|
+
github-actions:
|
|
10
|
+
patterns:
|
|
11
|
+
- "*" # Group all Actions updates into a single larger pull request
|
|
12
|
+
schedule:
|
|
13
|
+
interval: weekly
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
steps:
|
|
11
11
|
- uses: actions/checkout@v4
|
|
12
12
|
- name: Set up Python
|
|
13
|
-
uses: actions/setup-python@
|
|
13
|
+
uses: actions/setup-python@v5
|
|
14
14
|
with:
|
|
15
15
|
python-version: "3.x"
|
|
16
16
|
- name: Install pypa/build
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Build a binary wheel and a source tarball
|
|
23
23
|
run: python3 -m build
|
|
24
24
|
- name: Store the distribution packages
|
|
25
|
-
uses: actions/upload-artifact@
|
|
25
|
+
uses: actions/upload-artifact@v4
|
|
26
26
|
with:
|
|
27
27
|
name: python-package-distributions
|
|
28
28
|
path: dist/
|
|
@@ -42,7 +42,7 @@ jobs:
|
|
|
42
42
|
|
|
43
43
|
steps:
|
|
44
44
|
- name: Download all the dists
|
|
45
|
-
uses: actions/download-artifact@
|
|
45
|
+
uses: actions/download-artifact@v4
|
|
46
46
|
with:
|
|
47
47
|
name: python-package-distributions
|
|
48
48
|
path: dist/
|
|
@@ -63,12 +63,12 @@ jobs:
|
|
|
63
63
|
|
|
64
64
|
steps:
|
|
65
65
|
- name: Download all the dists
|
|
66
|
-
uses: actions/download-artifact@
|
|
66
|
+
uses: actions/download-artifact@v4
|
|
67
67
|
with:
|
|
68
68
|
name: python-package-distributions
|
|
69
69
|
path: dist/
|
|
70
70
|
- name: Sign the dists with Sigstore
|
|
71
|
-
uses: sigstore/gh-action-sigstore-python@
|
|
71
|
+
uses: sigstore/gh-action-sigstore-python@v2.1.1
|
|
72
72
|
with:
|
|
73
73
|
inputs: >-
|
|
74
74
|
./dist/*.tar.gz
|
|
@@ -9,17 +9,18 @@ jobs:
|
|
|
9
9
|
tox:
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
12
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
13
13
|
os: [windows-latest, ubuntu-latest]
|
|
14
14
|
|
|
15
15
|
runs-on: ${{ matrix.os }}
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
18
|
-
- uses: actions/setup-python@
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
19
|
with:
|
|
20
20
|
python-version: ${{ matrix.python-version }}
|
|
21
|
+
allow-prereleases: true
|
|
21
22
|
- name: Cache multiple paths
|
|
22
|
-
uses: actions/cache@
|
|
23
|
+
uses: actions/cache@v4
|
|
23
24
|
with:
|
|
24
25
|
path: |
|
|
25
26
|
~/.cache/pip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: auto-walrus
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Automatically apply the awesome walrus operator
|
|
5
5
|
Project-URL: Homepage, https://github.com/MarcoGorelli/auto-walrus
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/MarcoGorelli/auto-walrus
|
|
@@ -10,6 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.8
|
|
13
|
+
Requires-Dist: tomli; python_version < '3.11'
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
|
|
15
16
|
<h1 align="center">
|
|
@@ -44,7 +45,7 @@ Sample `.pre-commit-config.yaml`:
|
|
|
44
45
|
|
|
45
46
|
```yaml
|
|
46
47
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
|
47
|
-
rev:
|
|
48
|
+
rev: 0.3.4
|
|
48
49
|
hooks:
|
|
49
50
|
- id: auto-walrus
|
|
50
51
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "auto-walrus"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.4"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Marco Gorelli", email="33491632+MarcoGorelli@users.noreply.github.com" },
|
|
10
10
|
]
|
|
@@ -16,6 +16,12 @@ classifiers = [
|
|
|
16
16
|
"License :: OSI Approved :: MIT License",
|
|
17
17
|
"Operating System :: OS Independent",
|
|
18
18
|
]
|
|
19
|
+
dependencies = [
|
|
20
|
+
'tomli; python_version<"3.11"',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
24
|
+
auto-walrus = "auto_walrus:main"
|
|
19
25
|
|
|
20
26
|
[project.urls]
|
|
21
27
|
"Homepage" = "https://github.com/MarcoGorelli/auto-walrus"
|
|
@@ -158,8 +158,7 @@ def project_dir(request: Any, tmp_path: pathlib.Path) -> ProjectDirT:
|
|
|
158
158
|
# | └── c.py
|
|
159
159
|
# └── pyproject.toml
|
|
160
160
|
|
|
161
|
-
config_content
|
|
162
|
-
if config_content:
|
|
161
|
+
if config_content := request.node.get_closest_marker("config_content"):
|
|
163
162
|
(tmp_path / "pyproject.toml").write_text(config_content.args[0])
|
|
164
163
|
|
|
165
164
|
python_files = [
|
|
@@ -20,6 +20,15 @@ content = content.replace(f'version = "{old_version}"', f'version = "{version}"'
|
|
|
20
20
|
with open("pyproject.toml", "w", encoding="utf-8") as f:
|
|
21
21
|
f.write(content)
|
|
22
22
|
|
|
23
|
+
with open("README.md", encoding="utf-8") as f:
|
|
24
|
+
content = f.read()
|
|
25
|
+
content = content.replace(
|
|
26
|
+
f"rev: {old_version}",
|
|
27
|
+
f"rev: {version}",
|
|
28
|
+
)
|
|
29
|
+
with open("README.md", "w", encoding="utf-8") as f:
|
|
30
|
+
f.write(content)
|
|
31
|
+
|
|
23
32
|
subprocess.run(["git", "commit", "-a", "-m", f"Bump version to {version}"])
|
|
24
33
|
subprocess.run(["git", "tag", "-a", version, "-m", version])
|
|
25
34
|
subprocess.run(["git", "push", "--follow-tags"])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|