-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release 1.4.0 * remove 3.8 * use release.sh * weird parity with cma-py * play well with twine and snyk * play well with twine and snyk
- Loading branch information
Showing
8 changed files
with
49 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.25.0 | ||
language-settings: | ||
python: "3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[requires] | ||
python_version = "3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
VERSION_TAG=$(awk -F\' '{print $2}' cumulus_process/version.py) | ||
LATEST_TAG=$(curl -H \ | ||
"Authorization: token $GITHUB_TOKEN" \ | ||
https://api.github.com/repos/nasa/cumulus-process-py/tags | jq --raw-output '.[0].name') | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Cumulus Bot" | ||
export VERSION_TAG | ||
export LATEST_TAG | ||
|
||
if [ "$VERSION_TAG" != "$LATEST_TAG" ]; then | ||
echo "tag does not exist for version $VERSION_TAG, creating tag" | ||
|
||
# create git tag | ||
git tag -a "$VERSION_TAG" -m "$VERSION_TAG" || echo "$VERSION_TAG already exists" | ||
git push origin "$VERSION_TAG" | ||
fi | ||
|
||
RELEASE_URL=$(curl -H \ | ||
"Authorization: token $GITHUB_TOKEN" \ | ||
https://api.github.com/repos/nasa/cumulus-process-py/releases/tags/$VERSION_TAG | jq --raw-output '.url // ""') | ||
export RELEASE_URL | ||
|
||
if [ -z "$RELEASE_URL" ]; then | ||
echo "release does not exist" | ||
|
||
curl -H \ | ||
"Authorization: token $GITHUB_TOKEN" \ | ||
-d "{\"tag_name\": \"$VERSION_TAG\", \"name\": \"$VERSION_TAG\", \"body\": \"Release $VERSION_TAG\" }"\ | ||
-H "Content-Type: application/json"\ | ||
-X POST \ | ||
https://api.github.com/repos/nasa/cumulus-process-py/releases | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.3.0' | ||
__version__ = '1.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
boto3~=1.26.90 | ||
python-json-logger~=0.1 | ||
dicttoxml~=1.7.4 | ||
cumulus-message-adapter-python~=2.2.0 | ||
cumulus-message-adapter-python~=2.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters