Skip to content

Commit be48b64

Browse files
authored
Doug/fix deployment process (#30)
* bump version for release * Update deployment * Update workflow yamls for deploy * Fixed the build process by pinning version of setuptools in pyproject.toml, removed LICENSE file in favor of new format in pyproject that works with newer publishing * Removed log file * Added additional needed permissions for leaving PR comments
1 parent 91f5e1a commit be48b64

File tree

5 files changed

+14
-25
lines changed

5 files changed

+14
-25
lines changed

Diff for: .github/workflows/pr-preview.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
jobs:
77
preview:
88
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
issues: write
12+
id-token: write
13+
contents: read
914
steps:
1015
- uses: actions/checkout@v4
1116
- uses: actions/setup-python@v5
@@ -61,7 +66,6 @@ jobs:
6166
uses: pypa/[email protected]
6267
with:
6368
repository-url: https://test.pypi.org/legacy/
64-
password: ${{ secrets.TEST_PYPI_TOKEN }}
6569
verbose: true
6670

6771
- name: Comment on PR

Diff for: .github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
pull-requests: write
14+
issues: write
1015
steps:
1116
- uses: actions/checkout@v4
1217
- uses: actions/setup-python@v5

Diff for: LICENSE

-21
This file was deleted.

Diff for: pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 61.0"
3+
"setuptools==68.2.2",
4+
"wheel"
45
]
56
build-backend = "setuptools.build_meta"
67

@@ -13,7 +14,7 @@ dependencies = [
1314
'typing-extensions>=4.12.2'
1415
]
1516
readme = "README.rst"
16-
license = {file = "LICENSE"}
17+
license = {text = "MIT"}
1718
description = "Socket Security Python SDK"
1819
keywords = ["socketsecurity", "socket.dev", "sca", "oss", "security", "sdk"]
1920
authors = [

Diff for: socketdev/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.14"
1+
__version__ = "2.0.15"

0 commit comments

Comments
 (0)