ci-helper 0.1.0__tar.gz → 0.2.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.
- {ci_helper-0.1.0/ci_helper.egg-info → ci_helper-0.2.0}/PKG-INFO +18 -14
- {ci_helper-0.1.0 → ci_helper-0.2.0}/README.md +17 -13
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper/__main__.py +20 -12
- {ci_helper-0.1.0 → ci_helper-0.2.0/ci_helper.egg-info}/PKG-INFO +18 -14
- {ci_helper-0.1.0 → ci_helper-0.2.0}/.gitignore +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/LICENSE.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_distinfo.py +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper/__init__.py +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper/__version__.py +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper/ci_distinfo.py +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper.egg-info/SOURCES.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper.egg-info/dependency_links.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper.egg-info/entry_points.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper.egg-info/requires.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/ci_helper.egg-info/top_level.txt +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/pyproject.toml +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/setup.cfg +0 -0
- {ci_helper-0.1.0 → ci_helper-0.2.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ci-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Get info on how a package should be built on CI
|
|
5
5
|
Home-page: http://github.com/chrisjbillington/ci-helper
|
|
6
6
|
Author: Christopher Billington
|
|
@@ -69,11 +69,6 @@ pip install ci-helper
|
|
|
69
69
|
## Usage:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
# The second-most recent minor Python release, a good choice for the version to run
|
|
73
|
-
# tools from:
|
|
74
|
-
$ ci-helper defaultpython
|
|
75
|
-
3.12
|
|
76
|
-
|
|
77
72
|
# All stable, non-end-of-life Python versions:
|
|
78
73
|
$ ci-helper pythons
|
|
79
74
|
3.9,3.10,3.11,3.12,3.13
|
|
@@ -82,11 +77,16 @@ $ ci-helper pythons
|
|
|
82
77
|
$ ci-helper pythons --cibw
|
|
83
78
|
cp39-* cp310-* cp311-* cp312-* cp313-*
|
|
84
79
|
|
|
80
|
+
# The second-most recent minor Python release, a good choice for the version to run
|
|
81
|
+
# tools from:
|
|
82
|
+
$ ci-helper defaultpython
|
|
83
|
+
3.12
|
|
84
|
+
|
|
85
85
|
# Info about the source Python project in the current working directory - name, version,
|
|
86
86
|
# whether it's a pure Python package, and whether its build or run requirements contain
|
|
87
87
|
# any # environment markers (that is, whether its requirements vary by platform or
|
|
88
88
|
# Python version):
|
|
89
|
-
$ ci-helper distinfo
|
|
89
|
+
$ ci-helper distinfo .
|
|
90
90
|
{
|
|
91
91
|
"name": "ci-helper",
|
|
92
92
|
"version": "0.1.dev1+g5043fb5.d20241202",
|
|
@@ -95,13 +95,13 @@ $ ci-helper distinfo
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
# Same but one field at a time, more convenient for assigning to environment variables:
|
|
98
|
-
$ ci-helper distinfo name
|
|
98
|
+
$ ci-helper distinfo name .
|
|
99
99
|
ci-helper
|
|
100
|
-
$ ci-helper distinfo version
|
|
100
|
+
$ ci-helper distinfo version .
|
|
101
101
|
0.1.0
|
|
102
|
-
$ ci-helper distinfo is_pure
|
|
102
|
+
$ ci-helper distinfo is_pure .
|
|
103
103
|
true
|
|
104
|
-
$ ci-helper distinfo has_env_markers
|
|
104
|
+
$ ci-helper distinfo has_env_markers .
|
|
105
105
|
false
|
|
106
106
|
```
|
|
107
107
|
|
|
@@ -134,7 +134,7 @@ options:
|
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
```shell
|
|
137
|
-
$ ci-helper
|
|
137
|
+
$ ci-helper default_python -h
|
|
138
138
|
usage: ci-helper defaultpython [-h]
|
|
139
139
|
|
|
140
140
|
options:
|
|
@@ -143,11 +143,15 @@ options:
|
|
|
143
143
|
|
|
144
144
|
```shell
|
|
145
145
|
$ ci-helper distinfo -h
|
|
146
|
-
usage: ci-helper distinfo [-h]
|
|
146
|
+
usage: ci-helper distinfo [-h]
|
|
147
|
+
[{name,version,is_pure,has_env_markers}]
|
|
148
|
+
project_directory
|
|
147
149
|
|
|
148
150
|
positional arguments:
|
|
149
151
|
{name,version,is_pure,has_env_markers}
|
|
150
|
-
Name of field to output as a single json value, if not
|
|
152
|
+
Name of field to output as a single json value, if not
|
|
153
|
+
given, all info is output as json
|
|
154
|
+
project_directory Directory of Python project
|
|
151
155
|
|
|
152
156
|
options:
|
|
153
157
|
-h, --help show this help message and exit
|
|
@@ -47,11 +47,6 @@ pip install ci-helper
|
|
|
47
47
|
## Usage:
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
# The second-most recent minor Python release, a good choice for the version to run
|
|
51
|
-
# tools from:
|
|
52
|
-
$ ci-helper defaultpython
|
|
53
|
-
3.12
|
|
54
|
-
|
|
55
50
|
# All stable, non-end-of-life Python versions:
|
|
56
51
|
$ ci-helper pythons
|
|
57
52
|
3.9,3.10,3.11,3.12,3.13
|
|
@@ -60,11 +55,16 @@ $ ci-helper pythons
|
|
|
60
55
|
$ ci-helper pythons --cibw
|
|
61
56
|
cp39-* cp310-* cp311-* cp312-* cp313-*
|
|
62
57
|
|
|
58
|
+
# The second-most recent minor Python release, a good choice for the version to run
|
|
59
|
+
# tools from:
|
|
60
|
+
$ ci-helper defaultpython
|
|
61
|
+
3.12
|
|
62
|
+
|
|
63
63
|
# Info about the source Python project in the current working directory - name, version,
|
|
64
64
|
# whether it's a pure Python package, and whether its build or run requirements contain
|
|
65
65
|
# any # environment markers (that is, whether its requirements vary by platform or
|
|
66
66
|
# Python version):
|
|
67
|
-
$ ci-helper distinfo
|
|
67
|
+
$ ci-helper distinfo .
|
|
68
68
|
{
|
|
69
69
|
"name": "ci-helper",
|
|
70
70
|
"version": "0.1.dev1+g5043fb5.d20241202",
|
|
@@ -73,13 +73,13 @@ $ ci-helper distinfo
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
# Same but one field at a time, more convenient for assigning to environment variables:
|
|
76
|
-
$ ci-helper distinfo name
|
|
76
|
+
$ ci-helper distinfo name .
|
|
77
77
|
ci-helper
|
|
78
|
-
$ ci-helper distinfo version
|
|
78
|
+
$ ci-helper distinfo version .
|
|
79
79
|
0.1.0
|
|
80
|
-
$ ci-helper distinfo is_pure
|
|
80
|
+
$ ci-helper distinfo is_pure .
|
|
81
81
|
true
|
|
82
|
-
$ ci-helper distinfo has_env_markers
|
|
82
|
+
$ ci-helper distinfo has_env_markers .
|
|
83
83
|
false
|
|
84
84
|
```
|
|
85
85
|
|
|
@@ -112,7 +112,7 @@ options:
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
```shell
|
|
115
|
-
$ ci-helper
|
|
115
|
+
$ ci-helper default_python -h
|
|
116
116
|
usage: ci-helper defaultpython [-h]
|
|
117
117
|
|
|
118
118
|
options:
|
|
@@ -121,11 +121,15 @@ options:
|
|
|
121
121
|
|
|
122
122
|
```shell
|
|
123
123
|
$ ci-helper distinfo -h
|
|
124
|
-
usage: ci-helper distinfo [-h]
|
|
124
|
+
usage: ci-helper distinfo [-h]
|
|
125
|
+
[{name,version,is_pure,has_env_markers}]
|
|
126
|
+
project_directory
|
|
125
127
|
|
|
126
128
|
positional arguments:
|
|
127
129
|
{name,version,is_pure,has_env_markers}
|
|
128
|
-
Name of field to output as a single json value, if not
|
|
130
|
+
Name of field to output as a single json value, if not
|
|
131
|
+
given, all info is output as json
|
|
132
|
+
project_directory Directory of Python project
|
|
129
133
|
|
|
130
134
|
options:
|
|
131
135
|
-h, --help show this help message and exit
|
|
@@ -87,13 +87,29 @@ def main():
|
|
|
87
87
|
help="Name of field to output as a single json value, "
|
|
88
88
|
+ "if not given, all info is output as json",
|
|
89
89
|
)
|
|
90
|
+
parser_distinfo.add_argument(
|
|
91
|
+
'project_directory',
|
|
92
|
+
help="Directory of Python project",
|
|
93
|
+
)
|
|
90
94
|
|
|
91
95
|
args = parser.parse_args()
|
|
92
96
|
|
|
93
|
-
if args.command == '
|
|
94
|
-
|
|
97
|
+
if args.command == 'pythons':
|
|
98
|
+
pythons = get_pythons()
|
|
99
|
+
if args.cibw:
|
|
100
|
+
print(' '.join([f"cp{p.replace('.', '')}-*" for p in pythons]))
|
|
101
|
+
else:
|
|
102
|
+
print(','.join(pythons))
|
|
103
|
+
|
|
104
|
+
elif args.command == 'defaultpython':
|
|
105
|
+
pythons = get_pythons()
|
|
106
|
+
print(pythons[-2])
|
|
107
|
+
|
|
108
|
+
elif args.command == 'distinfo':
|
|
95
109
|
cmd = [sys.executable, *setup_py('.'), '-q', 'ci_distinfo']
|
|
96
|
-
result = subprocess.run(
|
|
110
|
+
result = subprocess.run(
|
|
111
|
+
cmd, cwd=args.project_directory, check=True, capture_output=True
|
|
112
|
+
)
|
|
97
113
|
info = result.stdout.decode('utf8')
|
|
98
114
|
if args.field is not None:
|
|
99
115
|
info = json.loads(info)
|
|
@@ -104,15 +120,7 @@ def main():
|
|
|
104
120
|
print(json.dumps(value))
|
|
105
121
|
else:
|
|
106
122
|
print(info)
|
|
107
|
-
|
|
108
|
-
pythons = get_pythons()
|
|
109
|
-
if args.cibw:
|
|
110
|
-
print(' '.join([f"cp{p.replace('.', '')}-*" for p in pythons]))
|
|
111
|
-
else:
|
|
112
|
-
print(','.join(pythons))
|
|
113
|
-
elif args.command == 'defaultpython':
|
|
114
|
-
pythons = get_pythons()
|
|
115
|
-
print(pythons[-2])
|
|
123
|
+
|
|
116
124
|
sys.exit(0)
|
|
117
125
|
|
|
118
126
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ci-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Get info on how a package should be built on CI
|
|
5
5
|
Home-page: http://github.com/chrisjbillington/ci-helper
|
|
6
6
|
Author: Christopher Billington
|
|
@@ -69,11 +69,6 @@ pip install ci-helper
|
|
|
69
69
|
## Usage:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
# The second-most recent minor Python release, a good choice for the version to run
|
|
73
|
-
# tools from:
|
|
74
|
-
$ ci-helper defaultpython
|
|
75
|
-
3.12
|
|
76
|
-
|
|
77
72
|
# All stable, non-end-of-life Python versions:
|
|
78
73
|
$ ci-helper pythons
|
|
79
74
|
3.9,3.10,3.11,3.12,3.13
|
|
@@ -82,11 +77,16 @@ $ ci-helper pythons
|
|
|
82
77
|
$ ci-helper pythons --cibw
|
|
83
78
|
cp39-* cp310-* cp311-* cp312-* cp313-*
|
|
84
79
|
|
|
80
|
+
# The second-most recent minor Python release, a good choice for the version to run
|
|
81
|
+
# tools from:
|
|
82
|
+
$ ci-helper defaultpython
|
|
83
|
+
3.12
|
|
84
|
+
|
|
85
85
|
# Info about the source Python project in the current working directory - name, version,
|
|
86
86
|
# whether it's a pure Python package, and whether its build or run requirements contain
|
|
87
87
|
# any # environment markers (that is, whether its requirements vary by platform or
|
|
88
88
|
# Python version):
|
|
89
|
-
$ ci-helper distinfo
|
|
89
|
+
$ ci-helper distinfo .
|
|
90
90
|
{
|
|
91
91
|
"name": "ci-helper",
|
|
92
92
|
"version": "0.1.dev1+g5043fb5.d20241202",
|
|
@@ -95,13 +95,13 @@ $ ci-helper distinfo
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
# Same but one field at a time, more convenient for assigning to environment variables:
|
|
98
|
-
$ ci-helper distinfo name
|
|
98
|
+
$ ci-helper distinfo name .
|
|
99
99
|
ci-helper
|
|
100
|
-
$ ci-helper distinfo version
|
|
100
|
+
$ ci-helper distinfo version .
|
|
101
101
|
0.1.0
|
|
102
|
-
$ ci-helper distinfo is_pure
|
|
102
|
+
$ ci-helper distinfo is_pure .
|
|
103
103
|
true
|
|
104
|
-
$ ci-helper distinfo has_env_markers
|
|
104
|
+
$ ci-helper distinfo has_env_markers .
|
|
105
105
|
false
|
|
106
106
|
```
|
|
107
107
|
|
|
@@ -134,7 +134,7 @@ options:
|
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
```shell
|
|
137
|
-
$ ci-helper
|
|
137
|
+
$ ci-helper default_python -h
|
|
138
138
|
usage: ci-helper defaultpython [-h]
|
|
139
139
|
|
|
140
140
|
options:
|
|
@@ -143,11 +143,15 @@ options:
|
|
|
143
143
|
|
|
144
144
|
```shell
|
|
145
145
|
$ ci-helper distinfo -h
|
|
146
|
-
usage: ci-helper distinfo [-h]
|
|
146
|
+
usage: ci-helper distinfo [-h]
|
|
147
|
+
[{name,version,is_pure,has_env_markers}]
|
|
148
|
+
project_directory
|
|
147
149
|
|
|
148
150
|
positional arguments:
|
|
149
151
|
{name,version,is_pure,has_env_markers}
|
|
150
|
-
Name of field to output as a single json value, if not
|
|
152
|
+
Name of field to output as a single json value, if not
|
|
153
|
+
given, all info is output as json
|
|
154
|
+
project_directory Directory of Python project
|
|
151
155
|
|
|
152
156
|
options:
|
|
153
157
|
-h, --help show this help message and exit
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|