Skip to content

Commit

Permalink
feat(3.2.0): upgrade to next minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
deveaud-m committed Mar 18, 2024
1 parent dacf44e commit 43219b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ A simple wrapper for the Fossology REST API.

See `the OpenAPI specification <https://raw.githubusercontent.com/fossology/fossology/master/src/www/ui/api/documentation/openapi.yaml>`_ 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 <https://github.com/fossology/fossology-python/releases>`_ 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
=============

Expand Down Expand Up @@ -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:
Expand All @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion docs-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT License"
Expand Down

0 comments on commit 43219b2

Please sign in to comment.