auto-walrus 0.3.3__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.
@@ -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@v4
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@v3
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@v3
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@v3
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@v1.2.3
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@v3
18
- - uses: actions/setup-python@v4
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@v3
23
+ uses: actions/cache@v4
23
24
  with:
24
25
  path: |
25
26
  ~/.cache/pip
@@ -1,7 +1,7 @@
1
1
  repos:
2
2
  - repo: https://github.com/astral-sh/ruff-pre-commit
3
3
  # Ruff version.
4
- rev: 'v0.3.5'
4
+ rev: 'v0.4.1'
5
5
  hooks:
6
6
  # Run the formatter.
7
7
  - id: ruff-format
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: auto-walrus
3
- Version: 0.3.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: v0.2.2
48
+ rev: 0.3.4
48
49
  hooks:
49
50
  - id: auto-walrus
50
51
  ```
@@ -30,7 +30,7 @@ Sample `.pre-commit-config.yaml`:
30
30
 
31
31
  ```yaml
32
32
  - repo: https://github.com/MarcoGorelli/auto-walrus
33
- rev: v0.2.2
33
+ rev: 0.3.4
34
34
  hooks:
35
35
  - id: auto-walrus
36
36
  ```
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "auto-walrus"
7
- version = "0.3.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,9 @@ 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
+ ]
19
22
 
20
23
  [project.scripts]
21
24
  auto-walrus = "auto_walrus:main"
@@ -158,7 +158,7 @@ def project_dir(request: Any, tmp_path: pathlib.Path) -> ProjectDirT:
158
158
  # | └── c.py
159
159
  # └── pyproject.toml
160
160
 
161
- if (config_content := request.node.get_closest_marker("config_content")):
161
+ if config_content := request.node.get_closest_marker("config_content"):
162
162
  (tmp_path / "pyproject.toml").write_text(config_content.args[0])
163
163
 
164
164
  python_files = [
@@ -1,5 +1,5 @@
1
1
  [tox]
2
- envlist = py{38,39,310,311}
2
+ envlist = py{38,39,310,311,312}
3
3
 
4
4
  [testenv]
5
5
  deps =
@@ -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