File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
+ # /// script
4
+ # dependencies = ["click", "packaging"]
5
+ # ///
6
+
3
7
4
8
from __future__ import annotations
5
9
10
+ import configparser
6
11
import glob
7
12
import os
8
13
import subprocess
13
18
import click
14
19
from packaging .version import InvalidVersion , Version
15
20
16
- import cibuildwheel
17
-
18
21
config = [
19
22
# file path, version find/replace format
20
23
("README.md" , "cibuildwheel=={}" ),
34
37
35
38
@click .command ()
36
39
def bump_version () -> None :
37
- current_version = cibuildwheel .__version__
40
+ # Update if moving setup.cfg to pyproject.toml
41
+ cfg = configparser .ConfigParser ()
42
+ cfg .read ("setup.cfg" )
43
+ current_version = cfg ["metadata" ]["version" ]
38
44
39
45
try :
40
46
commit_date_str = subprocess .run (
You can’t perform that action at this time.
0 commit comments