Skip to content

Commit adc2470

Browse files
authored
pre-installing deps in workflows (#17)
* workflow cleanup and correction
1 parent 86bba2d commit adc2470

File tree

5 files changed

+20
-28
lines changed

5 files changed

+20
-28
lines changed

.github/workflows/pr-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
with:
1313
python-version: '3.12'
1414

15+
# Install all dependencies from pyproject.toml
1516
- name: Install dependencies
1617
run: |
1718
python -m pip install --upgrade pip
18-
pip install requests
19+
pip install -e .
1920
2021
- name: Set preview version
2122
run: |

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
with:
1414
python-version: '3.12'
1515

16+
# Install all dependencies from pyproject.toml
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -e .
21+
1622
- name: Get Version
1723
id: version
1824
run: |

.github/workflows/version-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
owner: owner,
8686
repo: repo,
8787
comment_id: versionComment.id,
88-
body: `❌ **Version Check Failed**\n\nPlease increment...`
88+
body: `❌ **Version Check Failed**\n\nPlease increment the version. Current version in main: ${process.env.MAIN_VERSION}, PR version: ${process.env.PR_VERSION}`
8989
});
9090
}
9191
} else if (!success) {
@@ -94,6 +94,6 @@ jobs:
9494
owner: owner,
9595
repo: repo,
9696
issue_number: prNumber,
97-
body: `❌ **Version Check Failed**\n\nPlease increment...`
97+
body: `❌ **Version Check Failed**\n\nPlease increment the version. Current version in main: ${process.env.MAIN_VERSION}, PR version: ${process.env.PR_VERSION}`
9898
});
9999
}

pyproject.toml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 61.0",
4-
"requests"
3+
"setuptools >= 61.0"
54
]
65
build-backend = "setuptools.build_meta"
76

@@ -38,34 +37,20 @@ classifiers = [
3837
[project.optional-dependencies]
3938
dev = [
4039
"ruff>=0.3.0",
41-
"twine",
42-
"wheel",
43-
"build",
40+
"twine>=4.0.0",
41+
"wheel>=0.40.0",
42+
"build>=1.0.0"
43+
]
44+
test = [
45+
"pytest>=7.0.0",
46+
"pytest-cov>=4.0.0"
4447
]
4548

4649
[project.urls]
4750
Homepage = "https://github.com/socketdev/socket-sdk-python"
4851

4952
[tool.setuptools.packages.find]
50-
include = [
51-
"socketdev",
52-
"socketdev.core",
53-
"socketdev.dependencies",
54-
"socketdev.export",
55-
"socketdev.fullscans",
56-
"socketdev.npm",
57-
"socketdev.openapi",
58-
"socketdev.org",
59-
"socketdev.purl",
60-
"socketdev.quota",
61-
"socketdev.report",
62-
"socketdev.repos",
63-
"socketdev.repositories",
64-
"socketdev.sbom",
65-
"socketdev.settings",
66-
"socketdev.tools",
67-
"socketdev.utils",
68-
]
53+
include = ["socketdev", "socketdev.*"]
6954

7055
[tool.setuptools.dynamic]
7156
version = {attr = "socketdev.version.__version__"}

socketdev/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0"
1+
__version__ = "2.0.1"

0 commit comments

Comments
 (0)