8000 fix(release): Include in PyPI artifact filter for Craft (#1019) · SingleTM/sentry-python@89f7b15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89f7b15

Browse files
fix(release): Include in PyPI artifact filter for Craft (getsentry#1019)
1 parent da175e3 commit 89f7b15

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.craft.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ github:
66

77
targets:
88
- name: pypi
9+
includeNames: /^sentry[_\-]sdk.*$/
910
- name: github
1011
- name: gh-pages
1112
- name: registry

scripts/build-awslambda-layer.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
from sentry_sdk.consts import VERSION as SDK_VERSION
66

77

8-
DIST_DIRNAME = "dist"
9-
DEST_REL_PATH = "dist-serverless"
8+
DIST_REL_PATH = "dist"
109
DEST_ABS_PATH = os.path.abspath(
11-
os.path.join(os.path.dirname(__file__), "..", DEST_REL_PATH)
10+
os.path.join(os.path.dirname(__file__), "..", DIST_REL_PATH)
1211
)
1312
DEST_ZIP_FILENAME = f"sentry-python-serverless-{SDK_VERSION}.zip"
1413
WHEELS_FILEPATH = os.path.join(
15-
DIST_DIRNAME, f"sentry_sdk-{SDK_VERSION}-py2.py3-none-any.whl"
14+
DIST_REL_PATH, f"sentry_sdk-{SDK_VERSION}-py2.py3-none-any.whl"
1615
)
1716

1817
# Top directory in the ZIP file. Placing the Sentry package in `/python` avoids
@@ -68,8 +67,8 @@ def build_packaged_zip():
6867
package_builder.make_directories()
6968
package_builder.install_python_binaries()
7069
package_builder.zip(DEST_ZIP_FILENAME)
71-
if not os.path.exists(DEST_REL_PATH):
72-
os.makedirs(DEST_REL_PATH)
70+
if not os.path.exists(DIST_REL_PATH):
71+
os.makedirs(DIST_REL_PATH)
7372
shutil.copy(
7473
package_builder.get_relative_path_of(DEST_ZIP_FILENAME), DEST_ABS_PATH
7574
)

0 commit comments

Comments
 (0)
0