Skip to content

Commit 136c735

Browse files
authored
Merge pull request #18 from unfor19/feature-package-name
change package from scripts to githubsecrets
2 parents 0559b95 + 1953723 commit 136c735

9 files changed

Lines changed: 20 additions & 20 deletions

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
!./LICENSE
77
!./version
88
!./requirements.txt
9-
!./scripts/
9+
!./githubsecrets/
1010
!./entrypoint.sh

__init__.py

Whitespace-only changes.
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import click
2-
from .config import pass_config, pass_validate, create_artifacts, list_by_comma, print_pretty_json, is_docker
2+
from .config import pass_config, pass_validate, create_artifacts, \
3+
list_by_comma, print_pretty_json, is_docker
34
from .profile import Profile
45
from .secret import Secret
56

@@ -65,7 +66,7 @@ def profile_apply(
6566
profile_name, github_owner, personal_access_token
6667
):
6768
"""[pa] Create or modify multiple profiles providing a string delimited by commas ","\n
68-
Example: ghs profile-apply -p 'willy, oompa'"""
69+
Example: ghs profile-apply -p 'willy, oompa'""" # noqa: 501
6970
profile_names = list_by_comma(profile_name)
7071
for prof_name in profile_names:
7172
profile = Profile(config, prof_name)
@@ -111,7 +112,7 @@ def secret_apply(
111112
repository, profile_name, secret_name, secret_value
112113
):
113114
"""[sa] Apply to multiple repositories providing a string delimited by commas ","\n
114-
Example: ghs secret-apply -p willy -r 'githubsecrets, serverless-template'"""
115+
Example: ghs secret-apply -p willy -r 'githubsecrets, serverless-template'""" # noqa: 501
115116
profile = Profile(config, profile_name)
116117
repositories = list_by_comma(repository)
117118
responses = []
@@ -133,7 +134,7 @@ def secret_delete(
133134
repository, profile_name, secret_name
134135
):
135136
"""[sd] Delete secrets from multiple repositories providing a string delimited by commas ","\n
136-
Example: ghs secret-delete -p willy -r 'githubsecrets, serverless-template'"""
137+
Example: ghs secret-delete -p willy -r 'githubsecrets, serverless-template'""" # noqa: 501
137138
profile = Profile(config, profile_name)
138139
repositories = list_by_comma(repository)
139140
responses = []
@@ -154,7 +155,7 @@ def secret_get(
154155
repository, profile_name, secret_name
155156
):
156157
"""[sg] Get secrets from multiple repositories providing a string delimited by commas ","\n
157-
Example: ghs secret-get -p willy -r 'githubsecrets, serverless-template'"""
158+
Example: ghs secret-get -p willy -r 'githubsecrets, serverless-template'""" # noqa: 501
158159
profile = Profile(config, profile_name)
159160
repositories = list_by_comma(repository)
160161
responses = []
@@ -174,7 +175,7 @@ def secret_list(
174175
repository, profile_name
175176
):
176177
"""[sl] List secrets of multiple repositories providing a string delimited by commas ","\n
177-
Example: ghs secret-delete -p willy -r 'githubsecrets, serverless-template'"""
178+
Example: ghs secret-delete -p willy -r 'githubsecrets, serverless-template'""" # noqa: 501
178179
profile = Profile(config, profile_name)
179180
repositories = list_by_comma(repository)
180181
responses = []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def lista():
1919
msg = "\n"
2020
if not credentials_content:
2121
error_exit(
22-
f"WARNING: Couldn't find any profile, create one by executing:\nghs profile-apply -p profile_name\n") # noqa: E501
22+
"WARNING: Couldn't find any profile, create one by executing:\nghs profile-apply -p profile_name\n") # noqa: E501
2323
for key, value in credentials_content.items():
2424
token_length = len(value['personal_access_token'])
2525
value['personal_access_token'] = \
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import click
22
import requests
3-
import json
43
from base64 import b64encode
54
from nacl import encoding, public
65
from .config import error_exit

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from scripts import githubsecrets
1+
from githubsecrets import cli
22

33
if __name__ == '__main__':
4-
githubsecrets.cli()
4+
cli.cli()

scripts/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
entry_points='''
3131
[console_scripts]
32-
ghs=scripts.githubsecrets:cli
32+
ghs=githubsecrets.cli:cli
3333
''',
3434
setup_requires=[
3535
'setuptools>=44.1.0',
@@ -38,12 +38,12 @@
3838
'docutils>=0.16'
3939
],
4040
classifiers=[
41-
'Development Status :: 5 - Production/Stable',
42-
'Intended Audience :: Developers',
43-
'Topic :: Software Development :: Build Tools',
44-
'License :: OSI Approved :: MIT License',
45-
'Programming Language :: Python :: 3.6',
46-
'Programming Language :: Python :: 3.7',
47-
'Programming Language :: Python :: 3.8'
48-
],
41+
'Development Status :: 5 - Production/Stable',
42+
'Intended Audience :: Developers',
43+
'Topic :: Software Development :: Build Tools',
44+
'License :: OSI Approved :: MIT License',
45+
'Programming Language :: Python :: 3.6',
46+
'Programming Language :: Python :: 3.7',
47+
'Programming Language :: Python :: 3.8'
48+
],
4949
)

0 commit comments

Comments
 (0)