Skip to content

Commit

Permalink
Refine package location messages and update .env template
Browse files Browse the repository at this point in the history
The commit makes important modifications in echoing package location messages in both 'config.py' and 'build.py' files by inserting the actual package name. It provides more precise information to the user. The default URL and SCOPE_ID in the '.env.template' has also been replaced with placeholders for security purposes. Additionally, a new GitToolBoxBlame settings file is added to the '.idea' directory and '.env.template' is excluded from MANIFEST.in.
  • Loading branch information
Jochem Berends committed Jul 3, 2024
1 parent b7cbf7d commit d9177ee
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
## KECHAIN_SCOPE_ID - the UUID of the project / scope.
##

KECHAIN_URL=https://pim3-test.ke-chain.com
KECHAIN_URL=https://....ke-chain.com
KECHAIN_TOKEN=... token from your user account ...
KECHAIN_SCOPE_ID=12345678-1234-5678-123456-7812345678
KECHAIN_SCOPE_ID=... scope id ...
6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ graft tests
graft kecpkg
prune .idea
prune .env*
exclude .env.template
prune *.depr
exclude build_release.sh
recursive-include kecpkg *.template
Expand All @@ -20,5 +21,3 @@ global-exclude *.pyc
exclude *-OFF
exclude *.yml
prune .github


2 changes: 1 addition & 1 deletion kecpkg/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
@click.option("-v", "--verbose", help="Be more verbose", is_flag=True)
def build(package=None, **options):
"""Build the package and create a kecpkg file."""
echo_info(f"Locating package ``")
echo_info(f"Locating package `{package}`")
package_dir = get_package_dir(package_name=package)
package_name = os.path.basename(package_dir)
echo_info(f"Package `{package_name}` has been selected")
Expand Down
2 changes: 1 addition & 1 deletion kecpkg/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def config(package, **options):
(or recently uploaded)
last_upload: date and time of the last upload
"""
echo_info(f"Locating package ``")
echo_info(f"Locating package `{package}`")
package_dir = get_package_dir(package_name=package)
package_name = os.path.basename(package_dir)
echo_info(f"Package `{package_name}` has been selected")
Expand Down
19 changes: 0 additions & 19 deletions pyproject.toml.depr

This file was deleted.

0 comments on commit d9177ee

Please sign in to comment.