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 #172

Merged
merged 3 commits into from
Dec 4, 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
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
Changes
=======

Version 4.0.0 (released 2024-12-04)

- tests: apply changes for sqlalchemy>=2.0
- setup: bump major dependencies

Version 3.0.1 (release 2024-11-30)

- setup: change to reusable workflows
Expand Down
2 changes: 1 addition & 1 deletion invenio_userprofiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .ext import InvenioUserProfiles
from .models import UserProfile, UserProfileProxy

__version__ = "3.0.1"
__version__ = "4.0.0"

__all__ = (
"__version__",
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ packages = find:
python_requires = >=3.7
zip_safe = False
install_requires =
invenio-accounts>=5.0.0,<6.0.0
invenio-i18n>=2.0.0,<3.0.0
invenio-accounts>=6.0.0,<7.0.0
invenio-i18n>=3.0.0,<4.0.0

[options.extras_require]
tests =
pytest-black-ng>=0.4.0
pytest-invenio>=1.4.7,<3.0.0
invenio-db[mysql,postgresql,versioning]>=1.0.14,<2.0.0
invenio-app>=1.4.0,<2.0.0
pytest-invenio>=3.0.0,<4.0.0
invenio-db[mysql,postgresql,versioning]>=2.0.0,<3.0.0
invenio-app>=2.0.0,<3.0.0
sphinx>=4.5
admin =
# empty for backward compatibility
Expand Down
10 changes: 6 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ def base_app(app_config):
base_app.register_blueprint(create_accounts_blueprint(base_app))

with base_app.app_context():
if str(db.engine.url) != "sqlite://" and not database_exists(
str(db.engine.url)
if str(
db.engine.url.render_as_string(hide_password=False)
) != "sqlite://" and not database_exists(
str(db.engine.url.render_as_string(hide_password=False))
):
create_database(str(db.engine.url))
create_database(str(db.engine.url.render_as_string(hide_password=False)))
db.create_all()

# Taken from: https://github.com/inveniosoftware/invenio-accounts/blob/3ecc1a70da3636618fe14ff2ebf754eed9ec75a1/tests/conftest.py#L94-L112
Expand All @@ -128,7 +130,7 @@ def delete_user_from_cache(exception):
yield base_app

with base_app.app_context():
drop_database(str(db.engine.url))
drop_database(str(db.engine.url.render_as_string(hide_password=False)))
shutil.rmtree(instance_path)


Expand Down