Skip to content

Commit

Permalink
Release 0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison authored Oct 8, 2024
2 parents 4a28982 + a29a7a4 commit 61ff3de
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Authors: Andrew P. Davison, Onur Ates, Nico Feld, Yann Zerlaut, Glynis Mattheisen, Peyman Najafi

Copyright CNRS 2019-2023
Copyright CNRS 2019-2024

**fairgraph** is a Python library for working with metadata
in the EBRAINS Knowledge Graph, with a particular focus on data reuse,
Expand Down Expand Up @@ -156,4 +156,5 @@ please open a ticket in the [issue tracker](https://github.com/HumanBrainProject

<div><img src="https://www.braincouncil.eu/wp-content/uploads/2018/11/wsi-imageoptim-EU-Logo.jpg" alt="EU Logo" height="23%" width="15%" align="right" style="margin-left: 10px"></div>

This open source software code was developed in part or in whole in the Human Brain Project, funded from the European Union's Horizon 2020 Framework Programme for Research and Innovation under Specific Grant Agreements No. 720270, No. 785907 and No. 945539 (Human Brain Project SGA1, SGA2 and SGA3).
This open source software code was developed in part or in whole in the Human Brain Project, funded from the European Union's Horizon 2020 Framework Programme for Research and Innovation under Specific Grant Agreements No. 720270, No. 785907 and No. 945539 (Human Brain Project SGA1, SGA2 and SGA3) and in the EBRAINS research infrastructure,
funded from the European Union's Horizon Europe funding programme under grant agreement No. 101147319 (EBRAINS-2.0).
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = "0.12"
# The full version, including alpha/beta/rc tags
release = "0.12.0"
release = "0.12.1"


# -- General configuration ---------------------------------------------------
Expand Down
22 changes: 20 additions & 2 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
Release notes
=============


Version 0.12.1
==============

This version includes various small changes and bug fixes.

- Reverse properties/fields, introduced in version 0.11, are now contained in the attribute :attr:`reverse_properties`,
which makes it easier to operate only on intrinsic, "forward" properties or only on reverse properties.
- The :attr:`type_` attribute is now a string (as in openMINDS Python), rather than a single-element list containing that string (as in the KG).
- The :class:`KGClient` now allows interactive authentication via a web-browser ("device flow"),
if the client cannot find an authorization token.
To disable this (for example for non-interactive use), create the client with ``allow_interactive=False``.
- Added methods :meth:`space_info()` and :meth:`clean_space()` to :class:`KGClient`, to make it easier to clean up private and collab KG spaces used for testing and development.
- Added method :meth:`move_all_to_space()` method to :class:`KGClient`, primarily intended for use by KG curators.
- Added the option to ignore duplicates in :meth:`node.exists()` calls (by default, if multiple nodes match the existence query an Exception will be raised)
- Updated the :mod:`openminds` module to include the latest changes in the openMINDS schemas.
- Partially fixed a `bug <https://github.com/HumanBrainProject/fairgraph/issues/92>`_ in which resolving certain reverse links is broken.

Version 0.12.0
==============

Expand Down Expand Up @@ -85,10 +103,10 @@ and you can also make queries across these reverse links, e.g.
Other changes
-------------

- made the `follow_links` argument to `resolve()` behave the same way as for `list()`, `from_id()`, etc.,
- made the ``follow_links`` argument to :meth:`resolve()` behave the same way as for :meth:`list()`, :meth:`from_id()`, etc.,
i.e. it expects a structure of nested dicts to specify explicitly which links to follow,
rather than an integer meaning "follow all links for this number of levels".
- added :func:`set_error_handling()` as a module-level function, so you can control the behaviour of all classes in a module (e.g. `fairgraph.openminds.core`) in a single line.
- added :func:`set_error_handling()` as a module-level function, so you can control the behaviour of all classes in a module (e.g. ``fairgraph.openminds.core``) in a single line.


Version 0.10.0
Expand Down
2 changes: 1 addition & 1 deletion fairgraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .kgquery import KGQuery
from .base import IRI

__version__ = "0.12.0"
__version__ = "0.12.1"

# from . import (
# base, client, errors, utility, openminds)
2 changes: 1 addition & 1 deletion fairgraph/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def clean_space(self, space_name):
for instance in instances:
assert instance.space == space_name
print(".", end="")
instance.delete(self, ignore_errors=False)
instance.delete(self, ignore_not_found=False)
print()
else:
print(f"The space '{space_name}' is already clean")
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "fairgraph"
version = "0.12.0"
version = "0.12.1"
description = "Python API for the EBRAINS Knowledge Graph"
readme = "README.md"
authors = [
{ name="Andrew P. Davison", email="[email protected]" }
]
requires-python = ">=3.7"
requires-python = ">=3.8"
license = {text = "Apache Software License"}
classifiers = [
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 61ff3de

Please sign in to comment.