ci-helper 0.2.0__tar.gz → 0.3.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.2.0/ci_helper.egg-info → ci_helper-0.3.0}/PKG-INFO +32 -11
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper/__main__.py +14 -4
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper/__version__.py +1 -4
- ci_helper-0.3.0/ci_helper/command/__init__.py +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0/ci_helper.egg-info}/PKG-INFO +32 -11
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper.egg-info/SOURCES.txt +3 -4
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper.egg-info/requires.txt +1 -1
- ci_helper-0.3.0/pyproject.toml +44 -0
- ci_helper-0.3.0/setup.cfg +4 -0
- ci_helper-0.2.0/pyproject.toml +0 -2
- ci_helper-0.2.0/setup.cfg +0 -35
- ci_helper-0.2.0/setup.py +0 -29
- {ci_helper-0.2.0 → ci_helper-0.3.0}/.gitignore +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/LICENSE.txt +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/README.md +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_distinfo.py +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper/__init__.py +0 -0
- {ci_helper-0.2.0/ci_helper → ci_helper-0.3.0/ci_helper/command}/ci_distinfo.py +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper.egg-info/dependency_links.txt +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper.egg-info/entry_points.txt +0 -0
- {ci_helper-0.2.0 → ci_helper-0.3.0}/ci_helper.egg-info/top_level.txt +0 -0
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ci-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Get info on how a package should be built on CI
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Author-email: Christopher Billington <chrisjbillington@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Christopher Billington
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/chrisjbillington/ci-helper
|
|
29
|
+
Project-URL: Documentation, https://github.com/chrisjbillington/ci-helper
|
|
30
|
+
Project-URL: Repository, https://github.com/chrisjbillington/ci-helper
|
|
31
|
+
Project-URL: Downloads, https://pypi.org/project/ci-helper/
|
|
11
32
|
Project-URL: Tracker, https://github.com/chrisjbillington/ci-helper/issues
|
|
12
|
-
Keywords: build
|
|
13
|
-
Classifier: License :: OSI Approved ::
|
|
33
|
+
Keywords: build,setuptools,CI
|
|
34
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
14
35
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Requires-Python: >=3.
|
|
36
|
+
Requires-Python: >=3.9
|
|
16
37
|
Description-Content-Type: text/markdown
|
|
17
38
|
License-File: LICENSE.txt
|
|
39
|
+
Requires-Dist: setuptools
|
|
18
40
|
Requires-Dist: setuptools_scm
|
|
19
|
-
Requires-Dist: importlib_metadata
|
|
20
41
|
Requires-Dist: toml
|
|
21
42
|
Requires-Dist: requests
|
|
22
43
|
|
|
@@ -106,10 +106,20 @@ def main():
|
|
|
106
106
|
print(pythons[-2])
|
|
107
107
|
|
|
108
108
|
elif args.command == 'distinfo':
|
|
109
|
-
cmd = [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
cmd = [
|
|
110
|
+
sys.executable,
|
|
111
|
+
*setup_py('.'),
|
|
112
|
+
'-q',
|
|
113
|
+
'--command-packages=ci_helper.command',
|
|
114
|
+
'ci_distinfo',
|
|
115
|
+
]
|
|
116
|
+
try:
|
|
117
|
+
result = subprocess.run(
|
|
118
|
+
cmd, cwd=args.project_directory, check=True, capture_output=True
|
|
119
|
+
)
|
|
120
|
+
except subprocess.CalledProcessError as e:
|
|
121
|
+
sys.stderr.write(e.stderr.decode('utf8'))
|
|
122
|
+
raise
|
|
113
123
|
info = result.stdout.decode('utf8')
|
|
114
124
|
if args.field is not None:
|
|
115
125
|
info = json.loads(info)
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
import importlib.metadata as importlib_metadata
|
|
5
|
-
except ImportError:
|
|
6
|
-
import importlib_metadata
|
|
3
|
+
import importlib.metadata as importlib_metadata
|
|
7
4
|
|
|
8
5
|
VERSION_SCHEME = {
|
|
9
6
|
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "guess-next-dev"),
|
|
File without changes
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ci-helper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Get info on how a package should be built on CI
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Author-email: Christopher Billington <chrisjbillington@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Christopher Billington
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/chrisjbillington/ci-helper
|
|
29
|
+
Project-URL: Documentation, https://github.com/chrisjbillington/ci-helper
|
|
30
|
+
Project-URL: Repository, https://github.com/chrisjbillington/ci-helper
|
|
31
|
+
Project-URL: Downloads, https://pypi.org/project/ci-helper/
|
|
11
32
|
Project-URL: Tracker, https://github.com/chrisjbillington/ci-helper/issues
|
|
12
|
-
Keywords: build
|
|
13
|
-
Classifier: License :: OSI Approved ::
|
|
33
|
+
Keywords: build,setuptools,CI
|
|
34
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
14
35
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Requires-Python: >=3.
|
|
36
|
+
Requires-Python: >=3.9
|
|
16
37
|
Description-Content-Type: text/markdown
|
|
17
38
|
License-File: LICENSE.txt
|
|
39
|
+
Requires-Dist: setuptools
|
|
18
40
|
Requires-Dist: setuptools_scm
|
|
19
|
-
Requires-Dist: importlib_metadata
|
|
20
41
|
Requires-Dist: toml
|
|
21
42
|
Requires-Dist: requests
|
|
22
43
|
|
|
@@ -3,15 +3,14 @@ LICENSE.txt
|
|
|
3
3
|
README.md
|
|
4
4
|
ci_distinfo.py
|
|
5
5
|
pyproject.toml
|
|
6
|
-
setup.cfg
|
|
7
|
-
setup.py
|
|
8
6
|
ci_helper/__init__.py
|
|
9
7
|
ci_helper/__main__.py
|
|
10
8
|
ci_helper/__version__.py
|
|
11
|
-
ci_helper/ci_distinfo.py
|
|
12
9
|
ci_helper.egg-info/PKG-INFO
|
|
13
10
|
ci_helper.egg-info/SOURCES.txt
|
|
14
11
|
ci_helper.egg-info/dependency_links.txt
|
|
15
12
|
ci_helper.egg-info/entry_points.txt
|
|
16
13
|
ci_helper.egg-info/requires.txt
|
|
17
|
-
ci_helper.egg-info/top_level.txt
|
|
14
|
+
ci_helper.egg-info/top_level.txt
|
|
15
|
+
ci_helper/command/__init__.py
|
|
16
|
+
ci_helper/command/ci_distinfo.py
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools", "wheel", "setuptools_scm"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[tool.setuptools_scm]
|
|
6
|
+
local_scheme = "no-local-version"
|
|
7
|
+
|
|
8
|
+
[tool.setuptools.packages]
|
|
9
|
+
find = {namespaces = false}
|
|
10
|
+
|
|
11
|
+
[project]
|
|
12
|
+
name = "ci-helper"
|
|
13
|
+
description = "Get info on how a package should be built on CI"
|
|
14
|
+
authors = [
|
|
15
|
+
{name = "Christopher Billington", email = "chrisjbillington@gmail.com"},
|
|
16
|
+
]
|
|
17
|
+
keywords = ["build", "setuptools", "CI"]
|
|
18
|
+
license = {file = 'LICENSE.txt'}
|
|
19
|
+
classifiers = [
|
|
20
|
+
"License :: OSI Approved :: BSD License",
|
|
21
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
22
|
+
]
|
|
23
|
+
requires-python = ">=3.9"
|
|
24
|
+
dependencies = [
|
|
25
|
+
"setuptools",
|
|
26
|
+
"setuptools_scm",
|
|
27
|
+
"toml",
|
|
28
|
+
"requests",
|
|
29
|
+
]
|
|
30
|
+
dynamic = ["version"]
|
|
31
|
+
|
|
32
|
+
[project.readme]
|
|
33
|
+
file = "README.md"
|
|
34
|
+
content-type = "text/markdown"
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://github.com/chrisjbillington/ci-helper"
|
|
38
|
+
Documentation = "https://github.com/chrisjbillington/ci-helper"
|
|
39
|
+
Repository = "https://github.com/chrisjbillington/ci-helper"
|
|
40
|
+
Downloads = "https://pypi.org/project/ci-helper/"
|
|
41
|
+
Tracker = "https://github.com/chrisjbillington/ci-helper/issues"
|
|
42
|
+
|
|
43
|
+
[project.scripts]
|
|
44
|
+
ci-helper = "ci_helper.__main__:main"
|
ci_helper-0.2.0/pyproject.toml
DELETED
ci_helper-0.2.0/setup.cfg
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[metadata]
|
|
2
|
-
name = ci-helper
|
|
3
|
-
description = Get info on how a package should be built on CI
|
|
4
|
-
long_description = file: README.md
|
|
5
|
-
long_description_content_type = text/markdown
|
|
6
|
-
author = Christopher Billington
|
|
7
|
-
author_email = chrisjbillington@gmail.com
|
|
8
|
-
url = http://github.com/chrisjbillington/ci-helper
|
|
9
|
-
project_urls =
|
|
10
|
-
Source Code=https://github.com/chrisjbillington/ci-helper
|
|
11
|
-
Download=https://github.com/chrisjbillington/ci-helper/releases
|
|
12
|
-
Tracker=https://github.com/chrisjbillington/ci-helper/issues
|
|
13
|
-
keywords = build setuptools conda
|
|
14
|
-
license = MIT
|
|
15
|
-
classifiers =
|
|
16
|
-
License :: OSI Approved :: MIT License
|
|
17
|
-
Programming Language :: Python :: 3 :: Only
|
|
18
|
-
|
|
19
|
-
[options]
|
|
20
|
-
packages = find:
|
|
21
|
-
python_requires = >=3.8
|
|
22
|
-
install_requires =
|
|
23
|
-
setuptools_scm
|
|
24
|
-
importlib_metadata
|
|
25
|
-
toml
|
|
26
|
-
requests
|
|
27
|
-
|
|
28
|
-
[options.entry_points]
|
|
29
|
-
console_scripts =
|
|
30
|
-
ci-helper = ci_helper.__main__:main
|
|
31
|
-
|
|
32
|
-
[egg_info]
|
|
33
|
-
tag_build =
|
|
34
|
-
tag_date = 0
|
|
35
|
-
|
ci_helper-0.2.0/setup.py
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
import os
|
|
3
|
-
from setuptools import setup
|
|
4
|
-
import sysconfig
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
|
|
7
|
-
# Normally packages don't have to do this - the dist_conda command should be
|
|
8
|
-
# automatically available. But since we're installing it, it isn't there yet!
|
|
9
|
-
from ci_helper.ci_distinfo import ci_distinfo
|
|
10
|
-
CMDCLASS = {'ci_distinfo': ci_distinfo}
|
|
11
|
-
|
|
12
|
-
VERSION_SCHEME = {
|
|
13
|
-
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "guess-next-dev"),
|
|
14
|
-
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
SITE_PACKAGES = sysconfig.get_path('purelib')
|
|
18
|
-
|
|
19
|
-
# Add the dist_conda command to the distlib vendored in setuptools:
|
|
20
|
-
setuptools_distutils = Path(SITE_PACKAGES) / 'setuptools' / '_distutils' / 'command'
|
|
21
|
-
DATA_FILES = [
|
|
22
|
-
(str(setuptools_distutils.relative_to(sys.prefix)), ["ci_distinfo.py"]),
|
|
23
|
-
]
|
|
24
|
-
setup(
|
|
25
|
-
use_scm_version=VERSION_SCHEME,
|
|
26
|
-
cmdclass=CMDCLASS,
|
|
27
|
-
data_files=DATA_FILES,
|
|
28
|
-
)
|
|
29
|
-
|
|
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
|