git-remote-codecommit 1.16__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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ Git Remote Codecommit
2
+ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.4
2
+ Name: git-remote-codecommit
3
+ Version: 1.18
4
+ Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
5
+ Home-page: https://github.com/awslabs/git-remote-codecommit
6
+ Author: Amazon Web Services
7
+ License: Apache License 2.0
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Topic :: Utilities
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ License-File: LICENSE
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
23
+
24
+ git-remote-codecommit
25
+ =====================
26
+
27
+ This package provides a simple method for pushing and pulling from `AWS
28
+ CodeCommit <https://aws.amazon.com/codecommit/>`__. This package extends `git
29
+ <https://git-scm.com/>`__ to support repository URLs prefixed with
30
+ **codecommit://**. For example, if using IAM...
31
+
32
+ ::
33
+
34
+ % cat ~/.aws/config
35
+ [profile demo-profile]
36
+ region = us-east-2
37
+ output = json
38
+
39
+ % cat ~/.aws/credentials
40
+ [demo-profile]
41
+ aws_access_key_id = AKIAIOSFODNN7EXAMPLE
42
+ aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
43
+
44
+ ... you can clone repositories as simply as...
45
+
46
+ ::
47
+
48
+ % git clone codecommit://demo-profile@MyRepositoryName
49
+
50
+ The *git-remote-codecommit* package works on Python versions:
51
+
52
+ * 3.8.x
53
+ * 3.9.x
54
+ * 3.10.x
55
+ * 3.11.x
56
+
57
+ Prerequisites
58
+ =============
59
+
60
+ Before you can use *git-remote-codecommit*, you must:
61
+
62
+ * Complete initial configuration for AWS CodeCommit, including:
63
+
64
+ * Creating an AWS account
65
+ * Configuring an IAM user or role
66
+ * `Attaching a policy to that user/role that allows access to AWS CodeCommit repositories <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#managed-policies>`__
67
+
68
+ * Create an AWS CodeCommit repository (or have one already) in your AWS account.
69
+ * Install Python and its package manager, pip, if they are not already installed. To download and install the latest version of Python, `visit the Python website <https://www.python.org/>`__.
70
+ * Install Git on your Linux, macOS, Windows, or Unix computer.
71
+ * Install the latest version of the AWS CLI on your Linux, macOS, Windows, or Unix computer. You can find instructions `here <https://docs.aws.amazon.com/cli/latest/userguide/installing.html>`__.
72
+
73
+ Note: Installation of the AWS CLI on some operating systems requires pip version 9.0.3 or later. To check your version of pip, open a terminal and type the following command:
74
+
75
+ ::
76
+
77
+ % pip --version
78
+
79
+ If the version is not 9.0.3 or later, run the following commands to update your version of pip:
80
+
81
+ ::
82
+
83
+ % curl -O https://bootstrap.pypa.io/get-pip.py
84
+ % python3 get-pip.py --user
85
+
86
+ Set Up
87
+ ===============
88
+
89
+ These instructions show how to set up *git-remote-codecommit* with an IAM user. If you plan to use a role with AWS Single Sign-On (SSO), see `this documentation <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>`__ to help configure your named credential profiles. Once your profile is set up correctly, usage of the remote helper will be the same as if you were using an IAM user (skip to step 3).
90
+
91
+ Step 1: Look Up Your AWS Account ID and IAM User Access Key
92
+ -----------------------------------------------------------
93
+
94
+ * Look up and write down the account ID for your AWS account. You will need this information for step 2. If you don't know how to find your AWS Account ID, learn how `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html>`__.
95
+
96
+ * Look up and write down the access key for your IAM user, if you do not already have that information stored locally. Learn more `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__.
97
+
98
+ Step 2: `Configure an AWS credential profile <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`__ on your local computer
99
+ --------------------------------------------------------------------------------------------------------------------------------------------------
100
+
101
+ * On your local computer, run the **aws configure --profile** command to create an AWS CLI profile to use with *git-remote-codecommit*. When prompted, provide your AWS access key, your secret access key, the AWS Region where you created your AWS CodeCommit repository, and the default output format you prefer. For example:
102
+
103
+ ::
104
+
105
+ % aws configure --profile demo-profile
106
+ AWS Access Key ID [None]: ***************
107
+ AWS Secret Access Key [None]: ***************
108
+ Default region name [None]: us-east-2
109
+ Default output format [None]: json
110
+
111
+ Step 3: Install git-remote-codecommit
112
+ -------------------------------------
113
+
114
+ * On your Linux, macOS, Windows, or Unix computer, install *git-remote-codecommit* using the `pip <https://pip.pypa.io/en/latest/>`__ command. For example:
115
+
116
+ ::
117
+
118
+ % pip install git-remote-codecommit
119
+
120
+ * If you already have *git-remote-codecommit* installed you can upgrade to the latest version with the **--upgrade** parameter:
121
+
122
+ ::
123
+
124
+ % pip install --upgrade git-remote-codecommit
125
+
126
+ Step 4: Clone your repository
127
+ -----------------------------
128
+
129
+ * At the terminal, run the **git clone codecommit** command, using the name of your profile and the name of your repository. For example:
130
+
131
+ ::
132
+
133
+ % git clone codecommit://demo-profile@MyRepositoryName
134
+ Cloning into 'MyRepositoryName'...
135
+ remote: Counting objects: 1753, done.
136
+ Receiving objects: 100% (1753/1753), 351.77 KiB | 1.91 MiB/s, done.
137
+ Resolving deltas: 100% (986/986), done.
138
+
139
+ Usage
140
+ =====
141
+ *git-remote-codecommit* supports several different URL formats and variants with optional parameters.
142
+
143
+ RepositoryName is a required parameter. If you only supply this parameter, then *git-remote-codecommit* will attempt to use your default profile in the AWS Region configured in that profile. For example, to clone a repository named MyRepositoryName using the default profile:
144
+
145
+ ::
146
+
147
+ % git clone codecommit://MyRepositoryName
148
+
149
+ To specify a specific profile to use, use the profile name. For example, to clone a repository named *MyRepositoryName* using a profile named *demo-profile*:
150
+
151
+ ::
152
+
153
+ % git clone codecommit://demo-profile@MyRepositoryName
154
+
155
+ To specify an AWS Region different than the one in your profile, use the region parameter. For example, to clone a repository named *MyRepositoryName* in the *us-east-1* region using a profile named *demo-profile*:
156
+
157
+ ::
158
+
159
+ % git clone codecommit::us-east-1://demo-profile@MyRepositoryName
160
+
161
+ Getting Help
162
+ ============
163
+ We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them. We recommend using the following community resources for getting help:
164
+
165
+ * View the official setup steps for `HTTPS Connections to AWS CodeCommit with git-remote-codecommit <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html>`__.
166
+ * Check our existing troubleshooting `documentation <https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html>`__ to see if your issue has been addressed there.
167
+ * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__.
168
+ * Check for an existing thread or start a new one on the `AWS CodeCommit forum <https://forums.aws.amazon.com/forum.jspa?forumID=189>`__.
169
+ * If you believe that you have found a bug, please `open an issue <https://github.com/aws/git-remote-codecommit/issues>`__.
@@ -26,10 +26,10 @@ CodeCommit <https://aws.amazon.com/codecommit/>`__. This package extends `git
26
26
 
27
27
  The *git-remote-codecommit* package works on Python versions:
28
28
 
29
- * 3.6.x
30
- * 3.7.x
31
29
  * 3.8.x
32
30
  * 3.9.x
31
+ * 3.10.x
32
+ * 3.11.x
33
33
 
34
34
  Prerequisites
35
35
  =============
@@ -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):
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.4
2
+ Name: git-remote-codecommit
3
+ Version: 1.18
4
+ Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
5
+ Home-page: https://github.com/awslabs/git-remote-codecommit
6
+ Author: Amazon Web Services
7
+ License: Apache License 2.0
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Topic :: Utilities
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ License-File: LICENSE
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
23
+
24
+ git-remote-codecommit
25
+ =====================
26
+
27
+ This package provides a simple method for pushing and pulling from `AWS
28
+ CodeCommit <https://aws.amazon.com/codecommit/>`__. This package extends `git
29
+ <https://git-scm.com/>`__ to support repository URLs prefixed with
30
+ **codecommit://**. For example, if using IAM...
31
+
32
+ ::
33
+
34
+ % cat ~/.aws/config
35
+ [profile demo-profile]
36
+ region = us-east-2
37
+ output = json
38
+
39
+ % cat ~/.aws/credentials
40
+ [demo-profile]
41
+ aws_access_key_id = AKIAIOSFODNN7EXAMPLE
42
+ aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
43
+
44
+ ... you can clone repositories as simply as...
45
+
46
+ ::
47
+
48
+ % git clone codecommit://demo-profile@MyRepositoryName
49
+
50
+ The *git-remote-codecommit* package works on Python versions:
51
+
52
+ * 3.8.x
53
+ * 3.9.x
54
+ * 3.10.x
55
+ * 3.11.x
56
+
57
+ Prerequisites
58
+ =============
59
+
60
+ Before you can use *git-remote-codecommit*, you must:
61
+
62
+ * Complete initial configuration for AWS CodeCommit, including:
63
+
64
+ * Creating an AWS account
65
+ * Configuring an IAM user or role
66
+ * `Attaching a policy to that user/role that allows access to AWS CodeCommit repositories <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#managed-policies>`__
67
+
68
+ * Create an AWS CodeCommit repository (or have one already) in your AWS account.
69
+ * Install Python and its package manager, pip, if they are not already installed. To download and install the latest version of Python, `visit the Python website <https://www.python.org/>`__.
70
+ * Install Git on your Linux, macOS, Windows, or Unix computer.
71
+ * Install the latest version of the AWS CLI on your Linux, macOS, Windows, or Unix computer. You can find instructions `here <https://docs.aws.amazon.com/cli/latest/userguide/installing.html>`__.
72
+
73
+ Note: Installation of the AWS CLI on some operating systems requires pip version 9.0.3 or later. To check your version of pip, open a terminal and type the following command:
74
+
75
+ ::
76
+
77
+ % pip --version
78
+
79
+ If the version is not 9.0.3 or later, run the following commands to update your version of pip:
80
+
81
+ ::
82
+
83
+ % curl -O https://bootstrap.pypa.io/get-pip.py
84
+ % python3 get-pip.py --user
85
+
86
+ Set Up
87
+ ===============
88
+
89
+ These instructions show how to set up *git-remote-codecommit* with an IAM user. If you plan to use a role with AWS Single Sign-On (SSO), see `this documentation <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>`__ to help configure your named credential profiles. Once your profile is set up correctly, usage of the remote helper will be the same as if you were using an IAM user (skip to step 3).
90
+
91
+ Step 1: Look Up Your AWS Account ID and IAM User Access Key
92
+ -----------------------------------------------------------
93
+
94
+ * Look up and write down the account ID for your AWS account. You will need this information for step 2. If you don't know how to find your AWS Account ID, learn how `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html>`__.
95
+
96
+ * Look up and write down the access key for your IAM user, if you do not already have that information stored locally. Learn more `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__.
97
+
98
+ Step 2: `Configure an AWS credential profile <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`__ on your local computer
99
+ --------------------------------------------------------------------------------------------------------------------------------------------------
100
+
101
+ * On your local computer, run the **aws configure --profile** command to create an AWS CLI profile to use with *git-remote-codecommit*. When prompted, provide your AWS access key, your secret access key, the AWS Region where you created your AWS CodeCommit repository, and the default output format you prefer. For example:
102
+
103
+ ::
104
+
105
+ % aws configure --profile demo-profile
106
+ AWS Access Key ID [None]: ***************
107
+ AWS Secret Access Key [None]: ***************
108
+ Default region name [None]: us-east-2
109
+ Default output format [None]: json
110
+
111
+ Step 3: Install git-remote-codecommit
112
+ -------------------------------------
113
+
114
+ * On your Linux, macOS, Windows, or Unix computer, install *git-remote-codecommit* using the `pip <https://pip.pypa.io/en/latest/>`__ command. For example:
115
+
116
+ ::
117
+
118
+ % pip install git-remote-codecommit
119
+
120
+ * If you already have *git-remote-codecommit* installed you can upgrade to the latest version with the **--upgrade** parameter:
121
+
122
+ ::
123
+
124
+ % pip install --upgrade git-remote-codecommit
125
+
126
+ Step 4: Clone your repository
127
+ -----------------------------
128
+
129
+ * At the terminal, run the **git clone codecommit** command, using the name of your profile and the name of your repository. For example:
130
+
131
+ ::
132
+
133
+ % git clone codecommit://demo-profile@MyRepositoryName
134
+ Cloning into 'MyRepositoryName'...
135
+ remote: Counting objects: 1753, done.
136
+ Receiving objects: 100% (1753/1753), 351.77 KiB | 1.91 MiB/s, done.
137
+ Resolving deltas: 100% (986/986), done.
138
+
139
+ Usage
140
+ =====
141
+ *git-remote-codecommit* supports several different URL formats and variants with optional parameters.
142
+
143
+ RepositoryName is a required parameter. If you only supply this parameter, then *git-remote-codecommit* will attempt to use your default profile in the AWS Region configured in that profile. For example, to clone a repository named MyRepositoryName using the default profile:
144
+
145
+ ::
146
+
147
+ % git clone codecommit://MyRepositoryName
148
+
149
+ To specify a specific profile to use, use the profile name. For example, to clone a repository named *MyRepositoryName* using a profile named *demo-profile*:
150
+
151
+ ::
152
+
153
+ % git clone codecommit://demo-profile@MyRepositoryName
154
+
155
+ To specify an AWS Region different than the one in your profile, use the region parameter. For example, to clone a repository named *MyRepositoryName* in the *us-east-1* region using a profile named *demo-profile*:
156
+
157
+ ::
158
+
159
+ % git clone codecommit::us-east-1://demo-profile@MyRepositoryName
160
+
161
+ Getting Help
162
+ ============
163
+ We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them. We recommend using the following community resources for getting help:
164
+
165
+ * View the official setup steps for `HTTPS Connections to AWS CodeCommit with git-remote-codecommit <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html>`__.
166
+ * Check our existing troubleshooting `documentation <https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html>`__ to see if your issue has been addressed there.
167
+ * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__.
168
+ * Check for an existing thread or start a new one on the `AWS CodeCommit forum <https://forums.aws.amazon.com/forum.jspa?forumID=189>`__.
169
+ * If you believe that you have found a bug, please `open an issue <https://github.com/aws/git-remote-codecommit/issues>`__.
@@ -1,3 +1,5 @@
1
+ LICENSE
2
+ NOTICE
1
3
  README.rst
2
4
  setup.cfg
3
5
  setup.py
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  git-remote-codecommit = git_remote_codecommit:main
3
-
@@ -3,7 +3,7 @@
3
3
  import os
4
4
  import setuptools
5
5
 
6
- __version__ = '1.16'
6
+ __version__ = '1.18'
7
7
 
8
8
 
9
9
  def read(fname):
@@ -1,159 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: git-remote-codecommit
3
- Version: 1.16
4
- Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
5
- Home-page: https://github.com/awslabs/git-remote-codecommit
6
- Author: Amazon Web Services
7
- Author-email: UNKNOWN
8
- License: Apache License 2.0
9
- Description: git-remote-codecommit
10
- =====================
11
-
12
- This package provides a simple method for pushing and pulling from `AWS
13
- CodeCommit <https://aws.amazon.com/codecommit/>`__. This package extends `git
14
- <https://git-scm.com/>`__ to support repository URLs prefixed with
15
- **codecommit://**. For example, if using IAM...
16
-
17
- ::
18
-
19
- % cat ~/.aws/config
20
- [profile demo-profile]
21
- region = us-east-2
22
- output = json
23
-
24
- % cat ~/.aws/credentials
25
- [demo-profile]
26
- aws_access_key_id = AKIAIOSFODNN7EXAMPLE
27
- aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
28
-
29
- ... you can clone repositories as simply as...
30
-
31
- ::
32
-
33
- % git clone codecommit://demo-profile@MyRepositoryName
34
-
35
- The *git-remote-codecommit* package works on Python versions:
36
-
37
- * 3.6.x
38
- * 3.7.x
39
- * 3.8.x
40
- * 3.9.x
41
-
42
- Prerequisites
43
- =============
44
-
45
- Before you can use *git-remote-codecommit*, you must:
46
-
47
- * Complete initial configuration for AWS CodeCommit, including:
48
-
49
- * Creating an AWS account
50
- * Configuring an IAM user or role
51
- * `Attaching a policy to that user/role that allows access to AWS CodeCommit repositories <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#managed-policies>`__
52
-
53
- * Create an AWS CodeCommit repository (or have one already) in your AWS account.
54
- * Install Python and its package manager, pip, if they are not already installed. To download and install the latest version of Python, `visit the Python website <https://www.python.org/>`__.
55
- * Install Git on your Linux, macOS, Windows, or Unix computer.
56
- * Install the latest version of the AWS CLI on your Linux, macOS, Windows, or Unix computer. You can find instructions `here <https://docs.aws.amazon.com/cli/latest/userguide/installing.html>`__.
57
-
58
- Note: Installation of the AWS CLI on some operating systems requires pip version 9.0.3 or later. To check your version of pip, open a terminal and type the following command:
59
-
60
- ::
61
-
62
- % pip --version
63
-
64
- If the version is not 9.0.3 or later, run the following commands to update your version of pip:
65
-
66
- ::
67
-
68
- % curl -O https://bootstrap.pypa.io/get-pip.py
69
- % python3 get-pip.py --user
70
-
71
- Set Up
72
- ===============
73
-
74
- These instructions show how to set up *git-remote-codecommit* with an IAM user. If you plan to use a role with AWS Single Sign-On (SSO), see `this documentation <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>`__ to help configure your named credential profiles. Once your profile is set up correctly, usage of the remote helper will be the same as if you were using an IAM user (skip to step 3).
75
-
76
- Step 1: Look Up Your AWS Account ID and IAM User Access Key
77
- -----------------------------------------------------------
78
-
79
- * Look up and write down the account ID for your AWS account. You will need this information for step 2. If you don't know how to find your AWS Account ID, learn how `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html>`__.
80
-
81
- * Look up and write down the access key for your IAM user, if you do not already have that information stored locally. Learn more `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__.
82
-
83
- Step 2: `Configure an AWS credential profile <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`__ on your local computer
84
- --------------------------------------------------------------------------------------------------------------------------------------------------
85
-
86
- * On your local computer, run the **aws configure --profile** command to create an AWS CLI profile to use with *git-remote-codecommit*. When prompted, provide your AWS access key, your secret access key, the AWS Region where you created your AWS CodeCommit repository, and the default output format you prefer. For example:
87
-
88
- ::
89
-
90
- % aws configure --profile demo-profile
91
- AWS Access Key ID [None]: ***************
92
- AWS Secret Access Key [None]: ***************
93
- Default region name [None]: us-east-2
94
- Default output format [None]: json
95
-
96
- Step 3: Install git-remote-codecommit
97
- -------------------------------------
98
-
99
- * On your Linux, macOS, Windows, or Unix computer, install *git-remote-codecommit* using the `pip <https://pip.pypa.io/en/latest/>`__ command. For example:
100
-
101
- ::
102
-
103
- % pip install git-remote-codecommit
104
-
105
- * If you already have *git-remote-codecommit* installed you can upgrade to the latest version with the **--upgrade** parameter:
106
-
107
- ::
108
-
109
- % pip install --upgrade git-remote-codecommit
110
-
111
- Step 4: Clone your repository
112
- -----------------------------
113
-
114
- * At the terminal, run the **git clone codecommit** command, using the name of your profile and the name of your repository. For example:
115
-
116
- ::
117
-
118
- % git clone codecommit://demo-profile@MyRepositoryName
119
- Cloning into 'MyRepositoryName'...
120
- remote: Counting objects: 1753, done.
121
- Receiving objects: 100% (1753/1753), 351.77 KiB | 1.91 MiB/s, done.
122
- Resolving deltas: 100% (986/986), done.
123
-
124
- Usage
125
- =====
126
- *git-remote-codecommit* supports several different URL formats and variants with optional parameters.
127
-
128
- RepositoryName is a required parameter. If you only supply this parameter, then *git-remote-codecommit* will attempt to use your default profile in the AWS Region configured in that profile. For example, to clone a repository named MyRepositoryName using the default profile:
129
-
130
- ::
131
-
132
- % git clone codecommit://MyRepositoryName
133
-
134
- To specify a specific profile to use, use the profile name. For example, to clone a repository named *MyRepositoryName* using a profile named *demo-profile*:
135
-
136
- ::
137
-
138
- % git clone codecommit://demo-profile@MyRepositoryName
139
-
140
- To specify an AWS Region different than the one in your profile, use the region parameter. For example, to clone a repository named *MyRepositoryName* in the *us-east-1* region using a profile named *demo-profile*:
141
-
142
- ::
143
-
144
- % git clone codecommit::us-east-1://demo-profile@MyRepositoryName
145
-
146
- Getting Help
147
- ============
148
- We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them. We recommend using the following community resources for getting help:
149
-
150
- * View the official setup steps for `HTTPS Connections to AWS CodeCommit with git-remote-codecommit <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html>`__.
151
- * Check our existing troubleshooting `documentation <https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html>`__ to see if your issue has been addressed there.
152
- * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__.
153
- * Check for an existing thread or start a new one on the `AWS CodeCommit forum <https://forums.aws.amazon.com/forum.jspa?forumID=189>`__.
154
- * If you believe that you have found a bug, please `open an issue <https://github.com/aws/git-remote-codecommit/issues>`__.
155
- Platform: UNKNOWN
156
- Classifier: Development Status :: 5 - Production/Stable
157
- Classifier: Intended Audience :: Developers
158
- Classifier: Topic :: Utilities
159
- Classifier: License :: OSI Approved :: Apache Software License
@@ -1,159 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: git-remote-codecommit
3
- Version: 1.16
4
- Summary: Git remote prefix to simplify pushing to and pulling from CodeCommit.
5
- Home-page: https://github.com/awslabs/git-remote-codecommit
6
- Author: Amazon Web Services
7
- Author-email: UNKNOWN
8
- License: Apache License 2.0
9
- Description: git-remote-codecommit
10
- =====================
11
-
12
- This package provides a simple method for pushing and pulling from `AWS
13
- CodeCommit <https://aws.amazon.com/codecommit/>`__. This package extends `git
14
- <https://git-scm.com/>`__ to support repository URLs prefixed with
15
- **codecommit://**. For example, if using IAM...
16
-
17
- ::
18
-
19
- % cat ~/.aws/config
20
- [profile demo-profile]
21
- region = us-east-2
22
- output = json
23
-
24
- % cat ~/.aws/credentials
25
- [demo-profile]
26
- aws_access_key_id = AKIAIOSFODNN7EXAMPLE
27
- aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
28
-
29
- ... you can clone repositories as simply as...
30
-
31
- ::
32
-
33
- % git clone codecommit://demo-profile@MyRepositoryName
34
-
35
- The *git-remote-codecommit* package works on Python versions:
36
-
37
- * 3.6.x
38
- * 3.7.x
39
- * 3.8.x
40
- * 3.9.x
41
-
42
- Prerequisites
43
- =============
44
-
45
- Before you can use *git-remote-codecommit*, you must:
46
-
47
- * Complete initial configuration for AWS CodeCommit, including:
48
-
49
- * Creating an AWS account
50
- * Configuring an IAM user or role
51
- * `Attaching a policy to that user/role that allows access to AWS CodeCommit repositories <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#managed-policies>`__
52
-
53
- * Create an AWS CodeCommit repository (or have one already) in your AWS account.
54
- * Install Python and its package manager, pip, if they are not already installed. To download and install the latest version of Python, `visit the Python website <https://www.python.org/>`__.
55
- * Install Git on your Linux, macOS, Windows, or Unix computer.
56
- * Install the latest version of the AWS CLI on your Linux, macOS, Windows, or Unix computer. You can find instructions `here <https://docs.aws.amazon.com/cli/latest/userguide/installing.html>`__.
57
-
58
- Note: Installation of the AWS CLI on some operating systems requires pip version 9.0.3 or later. To check your version of pip, open a terminal and type the following command:
59
-
60
- ::
61
-
62
- % pip --version
63
-
64
- If the version is not 9.0.3 or later, run the following commands to update your version of pip:
65
-
66
- ::
67
-
68
- % curl -O https://bootstrap.pypa.io/get-pip.py
69
- % python3 get-pip.py --user
70
-
71
- Set Up
72
- ===============
73
-
74
- These instructions show how to set up *git-remote-codecommit* with an IAM user. If you plan to use a role with AWS Single Sign-On (SSO), see `this documentation <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>`__ to help configure your named credential profiles. Once your profile is set up correctly, usage of the remote helper will be the same as if you were using an IAM user (skip to step 3).
75
-
76
- Step 1: Look Up Your AWS Account ID and IAM User Access Key
77
- -----------------------------------------------------------
78
-
79
- * Look up and write down the account ID for your AWS account. You will need this information for step 2. If you don't know how to find your AWS Account ID, learn how `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html>`__.
80
-
81
- * Look up and write down the access key for your IAM user, if you do not already have that information stored locally. Learn more `here <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>`__.
82
-
83
- Step 2: `Configure an AWS credential profile <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`__ on your local computer
84
- --------------------------------------------------------------------------------------------------------------------------------------------------
85
-
86
- * On your local computer, run the **aws configure --profile** command to create an AWS CLI profile to use with *git-remote-codecommit*. When prompted, provide your AWS access key, your secret access key, the AWS Region where you created your AWS CodeCommit repository, and the default output format you prefer. For example:
87
-
88
- ::
89
-
90
- % aws configure --profile demo-profile
91
- AWS Access Key ID [None]: ***************
92
- AWS Secret Access Key [None]: ***************
93
- Default region name [None]: us-east-2
94
- Default output format [None]: json
95
-
96
- Step 3: Install git-remote-codecommit
97
- -------------------------------------
98
-
99
- * On your Linux, macOS, Windows, or Unix computer, install *git-remote-codecommit* using the `pip <https://pip.pypa.io/en/latest/>`__ command. For example:
100
-
101
- ::
102
-
103
- % pip install git-remote-codecommit
104
-
105
- * If you already have *git-remote-codecommit* installed you can upgrade to the latest version with the **--upgrade** parameter:
106
-
107
- ::
108
-
109
- % pip install --upgrade git-remote-codecommit
110
-
111
- Step 4: Clone your repository
112
- -----------------------------
113
-
114
- * At the terminal, run the **git clone codecommit** command, using the name of your profile and the name of your repository. For example:
115
-
116
- ::
117
-
118
- % git clone codecommit://demo-profile@MyRepositoryName
119
- Cloning into 'MyRepositoryName'...
120
- remote: Counting objects: 1753, done.
121
- Receiving objects: 100% (1753/1753), 351.77 KiB | 1.91 MiB/s, done.
122
- Resolving deltas: 100% (986/986), done.
123
-
124
- Usage
125
- =====
126
- *git-remote-codecommit* supports several different URL formats and variants with optional parameters.
127
-
128
- RepositoryName is a required parameter. If you only supply this parameter, then *git-remote-codecommit* will attempt to use your default profile in the AWS Region configured in that profile. For example, to clone a repository named MyRepositoryName using the default profile:
129
-
130
- ::
131
-
132
- % git clone codecommit://MyRepositoryName
133
-
134
- To specify a specific profile to use, use the profile name. For example, to clone a repository named *MyRepositoryName* using a profile named *demo-profile*:
135
-
136
- ::
137
-
138
- % git clone codecommit://demo-profile@MyRepositoryName
139
-
140
- To specify an AWS Region different than the one in your profile, use the region parameter. For example, to clone a repository named *MyRepositoryName* in the *us-east-1* region using a profile named *demo-profile*:
141
-
142
- ::
143
-
144
- % git clone codecommit::us-east-1://demo-profile@MyRepositoryName
145
-
146
- Getting Help
147
- ============
148
- We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them. We recommend using the following community resources for getting help:
149
-
150
- * View the official setup steps for `HTTPS Connections to AWS CodeCommit with git-remote-codecommit <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html>`__.
151
- * Check our existing troubleshooting `documentation <https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html>`__ to see if your issue has been addressed there.
152
- * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__.
153
- * Check for an existing thread or start a new one on the `AWS CodeCommit forum <https://forums.aws.amazon.com/forum.jspa?forumID=189>`__.
154
- * If you believe that you have found a bug, please `open an issue <https://github.com/aws/git-remote-codecommit/issues>`__.
155
- Platform: UNKNOWN
156
- Classifier: Development Status :: 5 - Production/Stable
157
- Classifier: Intended Audience :: Developers
158
- Classifier: Topic :: Utilities
159
- Classifier: License :: OSI Approved :: Apache Software License