git-remote-codecommit 1.17__tar.gz → 1.18__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.
- {git-remote-codecommit-1.17/git_remote_codecommit.egg-info → git_remote_codecommit-1.18}/PKG-INFO +11 -2
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit/__init__.py +9 -2
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18/git_remote_codecommit.egg-info}/PKG-INFO +11 -2
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/setup.py +1 -1
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/LICENSE +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/NOTICE +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/README.rst +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/SOURCES.txt +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/dependency_links.txt +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/entry_points.txt +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/requires.txt +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/top_level.txt +0 -0
- {git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/setup.cfg +0 -0
{git-remote-codecommit-1.17/git_remote_codecommit.egg-info → git_remote_codecommit-1.18}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: git-remote-codecommit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.18
|
|
4
4
|
Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
|
|
5
5
|
Home-page: https://github.com/awslabs/git-remote-codecommit
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -11,6 +11,15 @@ Classifier: Topic :: Utilities
|
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
License-File: NOTICE
|
|
14
|
+
Requires-Dist: botocore>=1.17.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: summary
|
|
14
23
|
|
|
15
24
|
git-remote-codecommit
|
|
16
25
|
=====================
|
|
@@ -125,7 +125,7 @@ class Context(collections.namedtuple('Context', ['session', 'repository', 'versi
|
|
|
125
125
|
except ImportError:
|
|
126
126
|
pass
|
|
127
127
|
|
|
128
|
-
available_regions = [region for partition in session.get_available_partitions() for region in session.get_available_regions('codecommit', partition)]
|
|
128
|
+
available_regions = [region for partition in session.get_available_partitions() for region in session.get_available_regions('codecommit', partition)] + UNLISTED_REGIONS
|
|
129
129
|
|
|
130
130
|
if url.scheme == 'codecommit':
|
|
131
131
|
region = session.get_config_variable('region')
|
|
@@ -136,7 +136,7 @@ class Context(collections.namedtuple('Context', ['session', 'repository', 'versi
|
|
|
136
136
|
if region not in available_regions:
|
|
137
137
|
raise RegionNotAvailable('The following AWS Region is not available for use with AWS CodeCommit: {}. For more information about CodeCommit\'s availability in AWS Regions, see the AWS CodeCommit User Guide. If an AWS Region is listed as supported but you receive this error, try updating your version of the AWS CLI or the AWS SDKs.'.format(region))
|
|
138
138
|
|
|
139
|
-
elif re.match(r"^[a-z]{2}-\w*.*-\d{1}", url.scheme):
|
|
139
|
+
elif re.match(r"^[a-z]{2}-\w*.*-\d{1}", url.scheme) or url.scheme in UNLISTED_REGIONS:
|
|
140
140
|
if url.scheme in available_regions:
|
|
141
141
|
region = url.scheme
|
|
142
142
|
|
|
@@ -153,6 +153,11 @@ class Context(collections.namedtuple('Context', ['session', 'repository', 'versi
|
|
|
153
153
|
return Context(session, repository, 'v1', region, credentials)
|
|
154
154
|
|
|
155
155
|
|
|
156
|
+
# CodeCommit regions that botocore's endpoint data doesn't list for CodeCommit
|
|
157
|
+
# yet, and whose names the region pattern above doesn't match.
|
|
158
|
+
UNLISTED_REGIONS = ['eusc-de-east-1']
|
|
159
|
+
|
|
160
|
+
|
|
156
161
|
def error(msg):
|
|
157
162
|
sys.stderr.write('%s\n' % msg)
|
|
158
163
|
sys.exit(1)
|
|
@@ -183,6 +188,8 @@ def main():
|
|
|
183
188
|
def website_domain_mapping(region):
|
|
184
189
|
if region in ['cn-north-1', 'cn-northwest-1']:
|
|
185
190
|
return 'amazonaws.com.cn'
|
|
191
|
+
if region in ['eusc-de-east-1']:
|
|
192
|
+
return 'amazonaws.eu'
|
|
186
193
|
return 'amazonaws.com'
|
|
187
194
|
|
|
188
195
|
def git_url(repository, version, region, credentials):
|
{git-remote-codecommit-1.17 → git_remote_codecommit-1.18/git_remote_codecommit.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: git-remote-codecommit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.18
|
|
4
4
|
Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
|
|
5
5
|
Home-page: https://github.com/awslabs/git-remote-codecommit
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -11,6 +11,15 @@ Classifier: Topic :: Utilities
|
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
License-File: NOTICE
|
|
14
|
+
Requires-Dist: botocore>=1.17.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
Dynamic: license
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: summary
|
|
14
23
|
|
|
15
24
|
git-remote-codecommit
|
|
16
25
|
=====================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{git-remote-codecommit-1.17 → git_remote_codecommit-1.18}/git_remote_codecommit.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|