Skip to content

Commit

Permalink
Declare build dependencies, declare Requires-Python, bump dependencie…
Browse files Browse the repository at this point in the history
…s, prepare release (#102)

* Declare build dependencies

* Requires 3.8

* Don't build 3.6 wheels

* Bump dependencies, prepare release

* reformat

---------

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
hauntsaninja and JelleZijlstra authored Mar 4, 2024
1 parent e12a492 commit a55ca09
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: "3.11"

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.12.3
run: python -m pip install cibuildwheel==2.16.5

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.10.1

* Add minimum version requirement (Python 3.8) to metadata
* Build Python 3.12 wheels

## 1.10.0

* Drop support for Python 3.7
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ warn_unused_configs = true
[[tool.mypy.overrides]]
module = "nose.plugins.skip"
ignore_missing_imports = true

[build-system]
requires = ["setuptools>=64.0", "cython>=3"]
build-backend = "setuptools.build_meta"
requires-python = ">=3.8"

[tool.cibuildwheel]
build = "cp{38,39,310,311,312}-*"
4 changes: 2 additions & 2 deletions qcore/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ _InputT = TypeVar("_InputT")
_OutputT = TypeVar("_OutputT")

def convert_result(
converter: Callable[[_InputT], _OutputT]
converter: Callable[[_InputT], _OutputT],
) -> Callable[[Callable[..., _InputT]], Callable[..., _OutputT]]: ...
def retry(
exception_cls: Union[Type[BaseException], Tuple[Type[BaseException], ...]],
max_tries: int = ...,
sleep: float = ...,
) -> Callable[[_CallableT], _CallableT]: ...
def decorator_of_context_manager(
ctxt: Callable[..., ContextManager[Any]]
ctxt: Callable[..., ContextManager[Any]],
) -> Callable[..., Callable[[_CallableT], _CallableT]]: ...
2 changes: 1 addition & 1 deletion qcore/inspection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_function_call_repr(
fn: Callable[..., Any], args: Iterable[object], kwargs: Mapping[str, object]
) -> str: ...
def getargspec(
func: Union[types.FunctionType, types.MethodType, Callable[..., Any]]
func: Union[types.FunctionType, types.MethodType, Callable[..., Any]],
) -> inspect.ArgSpec: ...
def is_cython_or_generator(fn: object) -> bool: ...
def is_cython_function(fn: object) -> bool: ...
Expand Down
4 changes: 2 additions & 2 deletions qcore/testing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class GreaterEq:

def disabled(func_or_class: Any) -> Any: ...
def decorate_all_test_methods(
decorator: Callable[[Callable[..., Any]], Any]
decorator: Callable[[Callable[..., Any]], Any],
) -> Callable[[Type[object]], Type[object]]: ...
def decorate_func_or_method_or_class(
decorator: Callable[[Callable[..., Any]], Any]
decorator: Callable[[Callable[..., Any]], Any],
) -> Callable[[Any], Any]: ...
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==7.4.0
mypy==1.4.1
black==23.7.0
mypy==1.8.0
black==24.2.0
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
)


VERSION = "1.10.0"
VERSION = "1.10.1"


EXTENSIONS = [
Expand Down Expand Up @@ -75,5 +75,4 @@
packages=["qcore", "qcore.tests"],
package_data={"qcore": DATA_FILES},
ext_modules=EXTENSIONS,
setup_requires=["Cython"],
)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ python =
3.8: py38, mypy
3.9: py39
3.10: py310
3.11: py311, black
3.12: py312
3.11: py311
3.12: py312, black

0 comments on commit a55ca09

Please sign in to comment.