Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/package-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ concurrency:
cancel-in-progress: true

jobs:
package-check:
package-check-python:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -25,19 +28,16 @@ jobs:

- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"

- name: Install build tooling
uses: ./.github/actions/setup-hatch
python-version: ${{ matrix.python-version }}

- name: Install test and distribution tooling
run: python -m pip install ".[test]" "twine>=4.0.0"
run: python -m pip install -e ".[dev,test]"

- name: Run unit tests
run: python -m pytest -q tests/unit

- name: Build distributions
run: hatch build
run: python -m build

- name: Validate distributions
run: python -m twine check dist/*
Expand All @@ -47,12 +47,23 @@ jobs:
python -m venv "$RUNNER_TEMP/package-check"
"$RUNNER_TEMP/package-check/bin/pip" install --upgrade pip
"$RUNNER_TEMP/package-check/bin/pip" install dist/*.whl
"$RUNNER_TEMP/package-check/bin/python" -c "import socketdev; from socketdev.version import __version__; print('wheel smoke OK', __version__)"
"$RUNNER_TEMP/package-check/bin/python" -I -c "import socketdev; from socketdev.version import __version__; print('wheel smoke OK', __version__)"

- name: Upload distributions
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: socketdev-${{ github.sha }}
path: dist/*
if-no-files-found: error
retention-days: 14

package-check:
if: always()
needs: package-check-python
runs-on: ubuntu-latest
steps:
- name: Require all Python versions to pass
env:
RESULT: ${{ needs.package-check-python.result }}
run: test "$RESULT" = success
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 3.7.0

### Changed: Python 3.11 or newer is required

- `socketdev` now requires Python 3.11 or newer. Python 3.10 reached end of
life in October 2026. Installs on Python 3.10 keep resolving to 3.6.x.

### Changed: `build` replaces `hatch` for local builds

- The `dev` extra replaces `hatch` and `hatchling` with `build`. Run
`python -m build` to build the distributions; `hatchling` remains the build
backend. This removes `virtualenv` and `filelock` from the development
lockfile.

## 3.6.4

### Fixed: every advisory on a package is kept
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Development setup

Use Python 3.9 or newer. Create and activate a virtual environment, then
Use Python 3.11 or newer. Create and activate a virtual environment, then
install the package with its development and test dependencies:

```bash
Expand All @@ -16,7 +16,7 @@ complete local check is:

```bash
python -m pytest
hatch build
python -m build
python -m twine check dist/*
```

Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ socketdev
Supported Python versions
-------------------------

This SDK supports Python 3.10 and newer.
This SDK requires Python 3.11 or newer. On Python 3.10, pin
``socketdev<3.7``.

Purpose
-------
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "socketdev"
dynamic = ["version"]
requires-python = ">= 3.10"
requires-python = ">= 3.11"
dependencies = [
'requests>=2.33.0,<3',
'typing-extensions>=4.12.2,<5',
Expand All @@ -26,7 +26,6 @@ maintainers = [
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand All @@ -47,8 +46,7 @@ core-metadata-version = "2.4"
[project.optional-dependencies]
dev = [
"ruff>=0.3.0",
"hatch>=1.18.1",
"hatchling>=1.27.0",
"build>=1.2.0",
"twine>=4.0.0"
]
test = [
Expand Down
2 changes: 1 addition & 1 deletion socketdev/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.6.4"
__version__ = "3.7.0"
Loading