Skip to content

Commit

Permalink
Python 3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Jul 19, 2023
1 parent 7303610 commit 027a381
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on: [push, workflow_dispatch ]

jobs:
test:
name: test
name: Tests
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ 'windows-latest', 'ubuntu-latest' ]
python-version: [ '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
timeout-minutes: 35
steps:
- uses: actions/checkout@v3
Expand All @@ -32,7 +32,7 @@ jobs:
fail-fast: false
matrix:
platform: [ 'windows-latest', 'ubuntu-latest' ]
python-version: [ '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
timeout-minutes: 35
env:
CONAN_REVISIONS_ENABLED: 1
Expand Down
4 changes: 2 additions & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any
from typing import Any, Dict

from hatchling.builders.hooks.plugin.interface import BuildHookInterface

Expand All @@ -8,7 +8,7 @@


class WheelHook(BuildHookInterface):
def initialize(self, version: str, build_data: dict[str, Any]) -> None:
def initialize(self, version: str, build_data: Dict[str, Any]) -> None:
super().initialize(version, build_data)
build_data["infer_tag"] = True
build_data["pure_python"] = False
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ build-backend = "hatchling.build"
name = "libcosimpy"
dynamic = ["version"]
authors = [
{ name = "Magnus Steinstø", email = "[email protected]" }
{ name = "Magnus Steinstø", email = "[email protected]" },
]
maintainers = [
{ name = "Hee Jong Park", email = "[email protected]"}
]
description = "Python wrapper for the libcosim library"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.8, <3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 027a381

Please sign in to comment.