Skip to content

Commit

Permalink
Merge pull request #179 from ehossack/fix/upgrade-version
Browse files Browse the repository at this point in the history
Update version in package and toml to v6
  • Loading branch information
ehossack authored Apr 12, 2024
2 parents bfe8fb3 + b190d57 commit e6500c4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_backblaze_b2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .storage import BackblazeB2Storage
from .storages import LoggedInStorage, PublicStorage, StaffStorage

__version__ = "1.0.1"
__version__ = "6.0.0"
__all__ = ["PublicStorage", "LoggedInStorage", "StaffStorage", "BackblazeB2Storage", "urls"]
13 changes: 12 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-backblaze-b2"
version = "5.1.0"
version = "6.0.0"
description = "A Django app to use backblaze b2 as storage."
authors = ["Etienne H <django_backblaze_b2@internet-e-mail.com>"]
maintainers = ["Etienne H <django_backblaze_b2@internet-e-mail.com>"]
Expand Down Expand Up @@ -49,6 +49,7 @@ pytest-pythonpath = "^0.7"
docutils = "^0.20"
toml = "^0.10.2"
ruff = ">=0.1.7,<0.4.0"
types-toml = "^0.10.8.20240310"

[build-system]
requires = ["poetry>=1.5.2"]
Expand Down
5 changes: 4 additions & 1 deletion tests/test_django_backblaze_b2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from unittest import mock

import pytest
import toml
from b2sdk.v2 import B2Api, Bucket, DownloadedFile, DownloadVersion, DownloadVersionFactory
from b2sdk.v2.exception import FileNotPresent
from django.contrib.auth.models import User
Expand All @@ -25,7 +26,9 @@


def test_version():
assert __version__ == "1.0.1"
pyproject_contents = toml.load("pyproject.toml")
pyproject_version = pyproject_contents.get("tool", {}).get("poetry", {}).get("version", None)
assert __version__ == pyproject_version


@pytest.mark.django_db
Expand Down

0 comments on commit e6500c4

Please sign in to comment.