Skip to content

Commit

Permalink
Update clp-ffi-py dependency; Drop support for Python3.6. (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 authored Apr 21, 2024
1 parent 3d69466 commit 70ca462
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 29 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ["3.8", "3.11"]
python-version: ["3.7", "3.8", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -52,34 +52,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: actions/download-artifact@v3
- name: Download wheels for Python3.7
if: ${{ '3.7' == matrix.python-version }}
uses: actions/download-artifact@v3
with:
name: wheel-${{ matrix.python-version }}
name: wheel-3.8
path: dist/

- run: pip install --upgrade
pip
dist/clp_logging-*.whl
-r requirements-test.txt

- run: python -m unittest -fv

test-py36:
needs: [build]
strategy:
matrix:
os: [macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.6"

- uses: actions/download-artifact@v3
- name: Download wheels for Built Python Versions
if: ${{ '3.7' != matrix.python-version }}
uses: actions/download-artifact@v3
with:
name: wheel-3.8
name: wheel-${{ matrix.python-version }}
path: dist/

- run: pip install --upgrade
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ logging.getLogger(__name__).addHandler(clp_handler)

## Compatibility

Tested on Python 3.6, 3.8, and 3.11 (should also work on newer versions).
Tested on Python 3.7, 3.8, and 3.11 (should also work on newer versions).
Built/packaged on Python 3.8 for convenience regarding type annotation.

## Development
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ authors = [
]
description = "Logging/encoding/decoding using CLP's IR stream format"
readme = "README.md"
requires-python = ">=3.6"
requires-python = ">=3.7"
dependencies = [
"clp-ffi-py >= 0.0.9",
"clp-ffi-py >= 0.0.11",
"python-dateutil >= 2.7.0",
"typing-extensions >= 3.7.4",
"zstandard >= 0.18.0",
Expand All @@ -32,7 +32,7 @@ dev = [
"types-python-dateutil >= 2.8.19.2",
]
test = [
"smart_open >= 6.3.0",
"smart_open == 6.4.0",
]

[project.urls]
Expand Down

0 comments on commit 70ca462

Please sign in to comment.