Skip to content

Commit

Permalink
Python >=3.10 required.
Browse files Browse the repository at this point in the history
  • Loading branch information
coady committed Jan 3, 2025
1 parent 8f3f14e commit 905643c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14.0-alpha - 3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14.0-alpha - 3.14']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
platforms: all
- uses: pypa/[email protected]
env:
CIBW_BUILD: cp39-*
CIBW_BUILD: cp310-*
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 arm64
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Unreleased
### Changed
* Python >=3.9 required
* Python >=3.10 required

## [1.5](https://pypi.org/project/placeholder/1.5/) - 2023-11-10
### Changed
Expand Down
3 changes: 1 addition & 2 deletions placeholder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import operator
from collections.abc import Callable, Iterable, Iterator, Sequence
from functools import partial
from typing import Optional
from . import partials # type: ignore


Expand Down Expand Up @@ -64,7 +63,7 @@ def __getitem__(self, item) -> 'F':
"""Return `itemgetter`."""
return type(self)(self, operator.itemgetter(item))

def __round__(self, ndigits: Optional[int] = None) -> 'F':
def __round__(self, ndigits: int | None = None) -> 'F':
"""Return `round(...)`."""
return type(self)(self, round if ndigits is None else partial(round, ndigits=ndigits))

Expand Down
2 changes: 1 addition & 1 deletion placeholder/partials.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define Py_LIMITED_API 0x03090000
#define Py_LIMITED_API 0x03100000
#include "Python.h"

typedef struct {
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "placeholder"
version = "1.5"
description = "Operator overloading for fast anonymous functions."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {file = "LICENSE.txt"}
authors = [{name = "Aric Coady", email = "[email protected]"}]
keywords = ["functional", "lambda", "scala", "underscore"]
Expand All @@ -17,7 +17,6 @@ classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[bdist_wheel]
py_limited_api = cp39
py_limited_api = cp310

0 comments on commit 905643c

Please sign in to comment.