Skip to content

Commit

Permalink
Bumping pyproject.toml version number and updating github workflow to…
Browse files Browse the repository at this point in the history
… work with it.
  • Loading branch information
bltravis committed Jul 16, 2024
1 parent aa5976d commit 4b6fd93
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,.venv,.nox,.pytest_cache,.mypy_cache,.vscode
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ venv/
ENV/
env.bak/
venv.bak/
.nox

# Spyder project settings
.spyderproject
Expand Down
4 changes: 4 additions & 0 deletions folioclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
import importlib.metadata

__version__ = importlib.metadata.version("folioclient")

from folioclient.FolioClient import FolioClient
3 changes: 3 additions & 0 deletions folioclient/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
def retry_on_server_error(func):
"""Retry a function if a temporary server error is encountered.
Args:
func: The function to be retried.
Returns:
The decorated function.
"""
Expand Down
5 changes: 5 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# mypy.ini
[mypy]

[mypy-nox.*,pytest]
ignore_missing_imports = True
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

@nox.session()
def tests(session):
posargs = ["--cov=./", "--cov-report=xml", "--durations=20"]
# posargs = ["--cov=./", "--cov-report=xml", "--durations=20"]
session.run("poetry", "install", external=True)
session.run("pytest", "--cov", *posargs, env=env)
# session.run("pytest", "--cov", *posargs, env=env)
session.run("pytest", env=env)


@nox.session()
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 = "folioclient"
version = "0.60.3"
version = "0.60.4"
authors = ["Theodor Tolstoy <[email protected]>", "Brooks Travis <[email protected]>"]
description = "An API wrapper over the FOLIO LSP API Suite OKAPI."
repository = "https://github.com/FOLIO-FSE/folioclient"
Expand Down
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
anyio==4.0.0 ; python_version >= "3.9" and python_version < "4.0"
certifi==2023.7.22 ; python_version >= "3.9" and python_version < "4.0"
exceptiongroup==1.1.3 ; python_version >= "3.9" and python_version < "3.11"
anyio==4.4.0 ; python_version >= "3.9" and python_version < "4.0"
certifi==2024.7.4 ; python_version >= "3.9" and python_version < "4.0"
exceptiongroup==1.2.2 ; python_version >= "3.9" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.9" and python_version < "4.0"
httpcore==0.16.3 ; python_version >= "3.9" and python_version < "4.0"
httpx==0.23.3 ; python_version >= "3.9" and python_version < "4.0"
idna==3.4 ; python_version >= "3.9" and python_version < "4.0"
python-dateutil==2.8.2 ; python_version >= "3.9" and python_version < "4.0"
idna==3.7 ; python_version >= "3.9" and python_version < "4.0"
py-openapi-schema-to-json-schema==0.0.3 ; python_version >= "3.9" and python_version < "4.0"
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "4.0"
pyyaml==6.0.1 ; python_version >= "3.9" and python_version < "4.0"
rfc3986[idna2008]==1.5.0 ; python_version >= "3.9" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.9" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.9" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.9" and python_version < "4.0"
typing-extensions==4.12.2 ; python_version >= "3.9" and python_version < "3.11"

0 comments on commit 4b6fd93

Please sign in to comment.