pre_commit_mirror_maker_2 1.10.0.3__tar.gz → 1.12.0.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.
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/PKG-INFO +3 -1
- pre_commit_mirror_maker_2-1.12.0.0/pre_commit_mirror_maker/golang/go.mod +3 -0
- pre_commit_mirror_maker_2-1.12.0.0/pre_commit_mirror_maker/golang/go.sum +0 -0
- pre_commit_mirror_maker_2-1.12.0.0/pre_commit_mirror_maker/golang/main.go +3 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/languages.py +24 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/PKG-INFO +3 -1
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/SOURCES.txt +3 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/setup.cfg +4 -1
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/LICENSE +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/README.md +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/__init__.py +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/all/.pre-commit-hooks.yaml +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/all/.version +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/main.py +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/make_repo.py +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/node/.npmignore +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/node/package.json +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/python/setup.py +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/ruby/pre_commit_fake_gem.gemspec +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/rust/Cargo.toml +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker/rust/main.rs +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/dependency_links.txt +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/entry_points.txt +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/requires.txt +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/pre_commit_mirror_maker_2.egg-info/top_level.txt +0 -0
- {pre_commit_mirror_maker_2-1.10.0.3 → pre_commit_mirror_maker_2-1.12.0.0}/setup.py +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre_commit_mirror_maker_2
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.0.0
|
|
4
4
|
Summary: Fork of pre-commit-mirror-maker
|
|
5
5
|
Home-page: https://github.com/GideonBear/pre-commit-mirror-maker-2
|
|
6
6
|
Author: Anthony Sottile
|
|
7
7
|
Author-email: asottile@umich.edu
|
|
8
|
+
Maintainer: GideonBear
|
|
9
|
+
Maintainer-email: dig-sultry-sedate@duck.com
|
|
8
10
|
License: MIT
|
|
9
11
|
Platform: all
|
|
10
12
|
Classifier: Programming Language :: Python :: 3
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
+
import re
|
|
4
5
|
import subprocess
|
|
5
6
|
import urllib.request
|
|
6
7
|
|
|
@@ -33,6 +34,21 @@ def rust_get_package_versions(package_name: str) -> list[str]:
|
|
|
33
34
|
return list(reversed([version['num'] for version in resp['versions']]))
|
|
34
35
|
|
|
35
36
|
|
|
37
|
+
def golang_get_package_versions(package_name: str) -> list[str]:
|
|
38
|
+
# https://pkg.go.dev/golang.org/x/mod/module#EscapePath
|
|
39
|
+
# https://github.com/golang/mod/blob/d271cf332fd221d661d13b186b51a11d7e66ff74/module/module.go#L707
|
|
40
|
+
escaped = re.sub(
|
|
41
|
+
r'[A-Z]',
|
|
42
|
+
lambda m: f'!{m.group(0).lower()}', package_name,
|
|
43
|
+
)
|
|
44
|
+
url = f'https://proxy.golang.org/{escaped}/@v/list'
|
|
45
|
+
resp = urllib.request.urlopen(url).read().decode()
|
|
46
|
+
return sorted(
|
|
47
|
+
(v.removeprefix('v') for v in resp.splitlines()),
|
|
48
|
+
key=version.parse,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
36
52
|
def node_get_additional_dependencies(
|
|
37
53
|
package_name: str, package_version: str,
|
|
38
54
|
) -> list[str]:
|
|
@@ -45,7 +61,14 @@ def rust_get_additional_dependencies(
|
|
|
45
61
|
return [f'cli:{package_name}:{package_version}']
|
|
46
62
|
|
|
47
63
|
|
|
64
|
+
def golang_get_additional_dependencies(
|
|
65
|
+
package_name: str, package_version: str,
|
|
66
|
+
) -> list[str]:
|
|
67
|
+
return [f'{package_name}@v{package_version}']
|
|
68
|
+
|
|
69
|
+
|
|
48
70
|
LIST_VERSIONS = {
|
|
71
|
+
'golang': golang_get_package_versions,
|
|
49
72
|
'node': node_get_package_versions,
|
|
50
73
|
'python': python_get_package_versions,
|
|
51
74
|
'ruby': ruby_get_package_versions,
|
|
@@ -53,6 +76,7 @@ LIST_VERSIONS = {
|
|
|
53
76
|
}
|
|
54
77
|
|
|
55
78
|
ADDITIONAL_DEPENDENCIES = {
|
|
79
|
+
'golang': golang_get_additional_dependencies,
|
|
56
80
|
'node': node_get_additional_dependencies,
|
|
57
81
|
'rust': rust_get_additional_dependencies,
|
|
58
82
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre_commit_mirror_maker_2
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.0.0
|
|
4
4
|
Summary: Fork of pre-commit-mirror-maker
|
|
5
5
|
Home-page: https://github.com/GideonBear/pre-commit-mirror-maker-2
|
|
6
6
|
Author: Anthony Sottile
|
|
7
7
|
Author-email: asottile@umich.edu
|
|
8
|
+
Maintainer: GideonBear
|
|
9
|
+
Maintainer-email: dig-sultry-sedate@duck.com
|
|
8
10
|
License: MIT
|
|
9
11
|
Platform: all
|
|
10
12
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -8,6 +8,9 @@ pre_commit_mirror_maker/main.py
|
|
|
8
8
|
pre_commit_mirror_maker/make_repo.py
|
|
9
9
|
pre_commit_mirror_maker/all/.pre-commit-hooks.yaml
|
|
10
10
|
pre_commit_mirror_maker/all/.version
|
|
11
|
+
pre_commit_mirror_maker/golang/go.mod
|
|
12
|
+
pre_commit_mirror_maker/golang/go.sum
|
|
13
|
+
pre_commit_mirror_maker/golang/main.go
|
|
11
14
|
pre_commit_mirror_maker/node/.npmignore
|
|
12
15
|
pre_commit_mirror_maker/node/package.json
|
|
13
16
|
pre_commit_mirror_maker/python/setup.py
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = pre_commit_mirror_maker_2
|
|
3
|
-
version = 1.
|
|
3
|
+
version = 1.12.0.0
|
|
4
4
|
description = Fork of pre-commit-mirror-maker
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
7
7
|
url = https://github.com/GideonBear/pre-commit-mirror-maker-2
|
|
8
8
|
author = Anthony Sottile
|
|
9
9
|
author_email = asottile@umich.edu
|
|
10
|
+
maintainer = GideonBear
|
|
11
|
+
maintainer_email = dig-sultry-sedate@duck.com
|
|
10
12
|
license = MIT
|
|
11
13
|
license_files = LICENSE
|
|
12
14
|
platforms = all
|
|
@@ -35,6 +37,7 @@ console_scripts =
|
|
|
35
37
|
pre_commit_mirror_maker =
|
|
36
38
|
all/.pre-commit-hooks.yaml
|
|
37
39
|
all/.version
|
|
40
|
+
golang/*
|
|
38
41
|
node/.npmignore
|
|
39
42
|
node/*
|
|
40
43
|
python/*
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|