Skip to content

Commit

Permalink
Support for gitinfo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jan 3, 2024
1 parent 0b43b8b commit 986b144
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ dcicutils
Change Log
----------

8.6.1
=====
* Changed scripts/publish_to_pypi.py to allow untracked gitinfo.json to exist;
this so that we can (optionally) have repos write relevant git info to this
file (via GitHub Actions) and make it accessible to the package for inspection.


8.6.0
=====
* Minor fix to misc_utils.to_integer to handle float strings.
Expand Down
2 changes: 1 addition & 1 deletion dcicutils/scripts/publish_to_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def verify_untracked_files() -> bool:
continue, and returns True for a yes response, otherwise returns False.
"""
untracked_files = get_untracked_files()
if untracked_files:
if untracked_files and not (len(untracked_files) == 1 and os.path.basename(untracked_files[0]) == "gitinfo.json"):
PRINT(f"You are about to PUBLISH the following ({len(untracked_files)})"
f" UNTRACKED file{'' if len(untracked_files) == 1 else 's' } -> SECURITY risk:")
for untracked_file in untracked_files:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.6.0"
version = "8.6.0.1b1" # TODO: To become 8.6.1
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 986b144

Please sign in to comment.