8000 ref: Change serverless dist destination path to `/dist-serverless` (#… · SingleTM/sentry-python@989e01d · GitHub
[go: up one dir, main page]

Skip to content

Commit 989e01d

Browse files
ref: Change serverless dist destination path to /dist-serverless (getsentry#1012)
1 parent 2dbb72a commit 989e01d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
- uses: actions/upload-artifact@v2
2929
with:
3030
name: ${{ github.sha }}
31-
path: dist/*
31+
path: |
32+
dist/*
33+
dist-serverless/*
3234
3335
docs:
3436
timeout-minutes: 10

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pip-log.txt
1111
*.egg-info
1212
/build
1313
/dist
14+
/dist-serverless
1415
.cache
1516
.idea
1617
.eggs

scripts/build-awslambda-layer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77

88
DIST_DIRNAME = "dist"
9-
DIST_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", DIST_DIRNAME))
9+
DEST_REL_PATH = "dist-serverless"
10+
DEST_ABS_PATH = os.path.abspath(
11+
os.path.join(os.path.dirname(__file__), "..", DEST_REL_PATH)
12+
)
1013
DEST_ZIP_FILENAME = f"sentry-python-serverless-{SDK_VERSION}.zip"
1114
WHEELS_FILEPATH = os.path.join(
1215
DIST_DIRNAME, f"sentry_sdk-{SDK_VERSION}-py2.py3-none-any.whl"
@@ -65,7 +68,9 @@ def build_packaged_zip():
6568
package_builder.make_directories()
6669
package_builder.install_python_binaries()
6770
package_builder.zip(DEST_ZIP_FILENAME)
68-
shutil.copy(package_builder.get_relative_path_of(DEST_ZIP_FILENAME), DIST_DIR)
71+
shutil.copy(
72+
package_builder.get_relative_path_of(DEST_ZIP_FILENAME), DEST_ABS_PATH
73+
)
6974

7075

7176
build_packaged_zip()

0 commit comments

Comments
 (0)
0