diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 128a103..ccb18cc 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -12,10 +12,11 @@ jobs: with: python-version: '3.12' + # Install all dependencies from pyproject.toml - name: Install dependencies run: | python -m pip install --upgrade pip - pip install requests + pip install -e . - name: Set preview version run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16b8d81..7d5b141 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,12 @@ jobs: with: python-version: '3.12' + # Install all dependencies from pyproject.toml + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + - name: Get Version id: version run: | diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 11305a5..12bbae0 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -85,7 +85,7 @@ jobs: owner: owner, repo: repo, comment_id: versionComment.id, - body: `❌ **Version Check Failed**\n\nPlease increment...` + body: `❌ **Version Check Failed**\n\nPlease increment the version. Current version in main: ${process.env.MAIN_VERSION}, PR version: ${process.env.PR_VERSION}` }); } } else if (!success) { @@ -94,6 +94,6 @@ jobs: owner: owner, repo: repo, issue_number: prNumber, - body: `❌ **Version Check Failed**\n\nPlease increment...` + body: `❌ **Version Check Failed**\n\nPlease increment the version. Current version in main: ${process.env.MAIN_VERSION}, PR version: ${process.env.PR_VERSION}` }); } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a60130d..630eb73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,6 @@ [build-system] requires = [ - "setuptools >= 61.0", - "requests" + "setuptools >= 61.0" ] build-backend = "setuptools.build_meta" @@ -38,34 +37,20 @@ classifiers = [ [project.optional-dependencies] dev = [ "ruff>=0.3.0", - "twine", - "wheel", - "build", + "twine>=4.0.0", + "wheel>=0.40.0", + "build>=1.0.0" +] +test = [ + "pytest>=7.0.0", + "pytest-cov>=4.0.0" ] [project.urls] Homepage = "https://github.com/socketdev/socket-sdk-python" [tool.setuptools.packages.find] -include = [ - "socketdev", - "socketdev.core", - "socketdev.dependencies", - "socketdev.export", - "socketdev.fullscans", - "socketdev.npm", - "socketdev.openapi", - "socketdev.org", - "socketdev.purl", - "socketdev.quota", - "socketdev.report", - "socketdev.repos", - "socketdev.repositories", - "socketdev.sbom", - "socketdev.settings", - "socketdev.tools", - "socketdev.utils", -] +include = ["socketdev", "socketdev.*"] [tool.setuptools.dynamic] version = {attr = "socketdev.version.__version__"} diff --git a/socketdev/version.py b/socketdev/version.py index 719ffe9..6cc1d24 100644 --- a/socketdev/version.py +++ b/socketdev/version.py @@ -1 +1 @@ -__version__ = "2.0.0" \ No newline at end of file +__version__ = "2.0.1" \ No newline at end of file