Skip to content

Commit

Permalink
Merge pull request #89 from evo-company/support-3.11
Browse files Browse the repository at this point in the history
support 3.11
  • Loading branch information
kindermax committed Oct 31, 2022
2 parents 84ae2e0 + 9cdda47 commit a50cafb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions docs/changelog/changes_07.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Changes in 0.7
- Added caching for parsing graphql query. It is optional and can be enabled by calling :py:func:`hiku.readers.graphql.setup_query_cache`.
- Added result cache - it is possible now to specify ``@cached`` directive to cache parts of the query. :ref:`Check cache documentation <caching-doc>`
- ``Link(requires=['a', 'b'])`` can be specified as a list of strings. It is useful when you want to require multiple fields at once. It will pass a list of dicts to the resolver.
- Added support for Python 3.11

Backward-incompatible changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions hiku/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ def __init__( # type: ignore[no-untyped-def]
:param name: name of the link
:param type_: type of the link
:param func: function to load identifiers of the linked node
:param requires: field name from the current node, required to compute
identifiers of the linked node
:param requires: field name(s) from the current node,
required to compute identifiers of the linked node
:param options: list of acceptable options
:param description: description of the link
:param directives: list of directives for the link
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
],
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,pypy3,py38,py39,py310,py310_sqlalchemy14
envlist = py37,pypy3,py38,py39,py310,py310_sqlalchemy14,py311

[testenv]
commands = py.test tests {posargs}
Expand Down Expand Up @@ -44,6 +44,7 @@ python =
3.8: py38
3.9: py39
3.10: py310,py310_sqlalchemy14
3.11: py311

[coverage:run]
branch = True
Expand Down

0 comments on commit a50cafb

Please sign in to comment.