From 43219b27afa030a606c201bb5f7bac7372afcc37 Mon Sep 17 00:00:00 2001 From: Marion Deveaud Date: Mon, 18 Mar 2024 17:38:46 +0100 Subject: [PATCH] feat(3.2.0): upgrade to next minor version --- README.rst | 12 ++++++++---- docs-source/conf.py | 2 +- pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index a05878a..11fff55 100644 --- a/README.rst +++ b/README.rst @@ -26,12 +26,14 @@ A simple wrapper for the Fossology REST API. See `the OpenAPI specification `_ used to implement this library. -Current release is compatible with **Fossology version 4.4.0** - API version 2.0.0 (not all endpoints are supported) +Current release is compatible with **Fossology version 4.4.0-rc2** - API version 2.0.0 (not all endpoints are supported) `See release notes `_ for all details. If you miss an API Endpoint, please open a new issue or contribute a pull request. + API v1 is supported too, it needs to be specified explicitly. + Documentation ============= @@ -61,17 +63,19 @@ Using the API from fossology import fossology_token from fossology.enum import TokenScope - FOSSOLOGY_SERVER = "https://fossology.example.com/repo" # Note the absense of the trailing slash, otherwise the token generation will fail + FOSSOLOGY_SERVER = "https://fossology.example.com/repo" # Note the absence of the trailing slash, otherwise the token generation will fail FOSSOLOGY_USER = "fossy" FOSSOLOGY_PASSWORD = "fossy" TOKEN_NAME = "fossy_token" + # By default version v2 of the token generation API will be used token = fossology_token( FOSSOLOGY_SERVER, FOSSOLOGY_USER, FOSSOLOGY_PASSWORD, TOKEN_NAME, TokenScope.WRITE + version="v2" ) - Start using the API: @@ -80,8 +84,8 @@ Using the API from fossology import Fossology - # Starting from API version 1.2.3, the `FOSSOLOGY_USER` option is not needed anymore - foss = Fossology(FOSSOLOGY_SERVER, token, FOSSOLOGY_USER) + # By default version v2 of the API will be used + foss = Fossology(FOSSOLOGY_SERVER, token, FOSSOLOGY_USER, version="v2") print(f"Logged in as user {foss.user.name}") diff --git a/docs-source/conf.py b/docs-source/conf.py index 6ac2f57..a93f4da 100644 --- a/docs-source/conf.py +++ b/docs-source/conf.py @@ -22,7 +22,7 @@ copyright = "2021, Siemens AG" # The full version, including major/minor/patch tags -release = "3.1.1" +release = "3.2.0" # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 33cf935..77707d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fossology" -version = "3.1.1" +version = "3.2.0" description = "A library to automate Fossology from Python scripts" authors = ["Marion Deveaud "] license = "MIT License"