Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump major #213

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
Changes
=======


Version 3.0.0 (release 2024-12-10)

- fix: tests, compatibility with sqlalchemy>=2
- setup: bump major dependencies

Version 2.3.0 (released 2024-12-10)

- zip: move fullscreen.js to fix the zip previewer
Expand Down
2 changes: 1 addition & 1 deletion invenio_previewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,6 @@
from .ext import InvenioPreviewer
from .proxies import current_previewer

__version__ = "2.3.0"
__version__ = "3.0.0"

__all__ = ("__version__", "current_previewer", "InvenioPreviewer")
14 changes: 13 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
# This file is part of Invenio.
# Copyright (C) 2016-2020 CERN.
# Copyright (C) 2020 Northwestern University.
# Copyright (C) 2022 Graz University of Technology.
# Copyright (C) 2022-2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


# Quit on errors
set -o errexit
# Quit on unbound symbols
set -o nounset
# Always bring down docker services
function cleanup() {
eval "$(docker-services-cli down --env)"
}
trap cleanup EXIT

python -m check_manifest
python -m setup extract_messages --output-file /dev/null
python -m sphinx.cmd.build -qnNW docs docs/_build/html
eval "$(docker-services-cli up --db ${DB:-postgresql} --env)"
python -m pytest
24 changes: 12 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ python_requires = >=3.7
zip_safe = False
install_requires =
charset_normalizer>=3.3.2
invenio-assets>=1.2.7,<4.0.0
invenio-base>=1.2.10,<2.0.0
invenio-formatter>=1.1.3,<3.0.0
invenio-i18n>=1.3.1,<3.0.0
invenio-pidstore>=1.2.3,<2.0.0
invenio-records-ui>=1.2.0,<2.0.0
invenio-assets>=4.0.0,<5.0.0
invenio-base>=2.0.0,<3.0.0
invenio-formatter>=3.0.0,<4.0.0
invenio-i18n>=3.0.0,<4.0.0
invenio-pidstore>=2.0.0,<3.0.0
invenio-records-ui>=2.0.0,<3.0.0
mistune>=0.8.1
nbconvert>=7,<8
nbformat>=5.1,<6.0
lxml-html-clean>=0.1.1

[options.extras_require]
tests =
pytest-black>=0.3.0
pytest-invenio>=1.4.5,<3.0.0
invenio-app>=1.0.0,<2.0.0
pytest-black-ng>=0.4.0
pytest-invenio>=3.0.0,<4.0.0
invenio-app>=2.0.0,<3.0.0
invenio-config>=1.0.3
invenio-db[versioning]>=1.0.14,<2.0.0
invenio-files-rest>=1.3.2,<3.0.0
invenio-db[postgresql,versioning]>=2.0.0,<3.0.0
invenio-files-rest>=3.0.0,<4.0.0
invenio-records-files>=1.2.1
invenio-theme>=1.3.20,<4.0.0
invenio-theme>=4.0.0,<5.0.0
mock>=1.3.0
sphinx>=4.5
# Kept for backwards compatibility
Expand Down
4 changes: 1 addition & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -141,7 +142,6 @@ def location(db):
tmppath = tempfile.mkdtemp()
loc = Location(name="testloc", uri=tmppath, default=True)
db.session.add(loc)
db.session.commit()
yield loc
shutil.rmtree(tmppath)

Expand All @@ -158,7 +158,6 @@ def record(db, location):
},
id_=rec_uuid,
)
db.session.commit()
return record


Expand All @@ -180,7 +179,6 @@ def record_with_file(db, record, location):
)
)
record.commit()
db.session.commit()
return record, testfile


Expand Down