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

Update ormar[sqlite] requirement from <0.11.0,>=0.10.16 to >=0.10.16,<0.21.0 #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 18, 2024

Updates the requirements on ormar[sqlite] to permit the latest version.

Release notes

Sourced from ormar[sqlite]'s releases.

BETA - Support for pydantic v2

BETA

0.20.0

You can find updated documentation at: https://collerek.github.io/ormar/0.20.0b1/

✨ Breaking changes

  • ormar Model configuration

    Instead of defining a Meta class now each of the ormar models require an ormar_config parameter that is an instance of the OrmarConfig class. Note that the attribute must be named ormar_config and be an instance of the config class.

    import databases
    import ormar
    import sqlalchemy
    database = databases.Database("sqlite:///db.sqlite")
    metadata = sqlalchemy.MetaData()
    ormar < 0.20
    class Album(ormar.Model):
    class Meta:
    database = database
    metadata = metadata
    tablename = "albums"
    id: int = ormar.Integer(primary_key=True)
    name: str = ormar.String(max_length=100)
    favorite: bool = ormar.Boolean(default=False)
    
    ormar >= 0.20
    class AlbumV20(ormar.Model):
    ormar_config = ormar.OrmarConfig(
    database=database,
    metadata=metadata,
    tablename="albums_v20"
    )
    id: int = ormar.Integer(primary_key=True)
    name: str = ormar.String(max_length=100)
    favorite: bool = ormar.Boolean(default=False)

  • OrmarConfig api/ parameters

    The ormar_config expose the same set of settings as Meta class used to provide. That means that you can use any of the following parameters initializing the config:

... (truncated)

Changelog

Sourced from ormar[sqlite]'s changelog.

0.20.0

✨ Breaking changes

  • ormar Model configuration

    Instead of defining a Meta class now each of the ormar models require an ormar_config parameter that is an instance of the OrmarConfig class. Note that the attribute must be named ormar_config and be an instance of the config class.

    import databases
    import ormar
    import sqlalchemy
    database = databases.Database("sqlite:///db.sqlite")
    metadata = sqlalchemy.MetaData()
    ormar < 0.20
    class Album(ormar.Model):
    class Meta:
    database = database
    metadata = metadata
    tablename = "albums"
    id: int = ormar.Integer(primary_key=True)
    name: str = ormar.String(max_length=100)
    favorite: bool = ormar.Boolean(default=False)
    
    ormar >= 0.20
    class AlbumV20(ormar.Model):
    ormar_config = ormar.OrmarConfig(
    database=database,
    metadata=metadata,
    tablename="albums_v20"
    )
    id: int = ormar.Integer(primary_key=True)
    name: str = ormar.String(max_length=100)
    favorite: bool = ormar.Boolean(default=False)

  • OrmarConfig api/ parameters

    The ormar_config expose the same set of settings as Meta class used to provide. That means that you can use any of the following parameters initializing the config:

    metadata: Optional[sqlalchemy.MetaData]
    database: Optional[databases.Database]
    engine: Optional[sqlalchemy.engine.Engine]

... (truncated)

Commits
  • 5700bd6 create tables in new docs src
  • c569870 proofread and fix rest of the docs, add release notes for 0.20
  • ef6793c proofread and fix the docs for relations
  • 8598de4 proofread and fix the docs for fields
  • 6b0245d proofread and fix the docs for models
  • 280acc1 proofread and fix the docs, part 1
  • 27a981c Change line numbers in documentation (#1265)
  • 4b0a501 downgrade databases for now
  • c8dc612 fix meta references
  • 7517774 fix conflicts
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [ormar[sqlite]](https://github.com/collerek/ormar) to permit the latest version.
- [Release notes](https://github.com/collerek/ormar/releases)
- [Changelog](https://github.com/collerek/ormar/blob/0.20.0/docs/releases.md)
- [Commits](collerek/ormar@0.10.16...0.20.0)

---
updated-dependencies:
- dependency-name: ormar[sqlite]
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 18, 2024
@dependabot dependabot bot requested a review from frankie567 March 18, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants