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

🚧 build(deps): bump cyclopts from 3.1.4 to 3.3.1 #83

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 24, 2025

Bumps cyclopts from 3.1.4 to 3.3.1.

Release notes

Sourced from cyclopts's releases.

v3.3.1

Breaking Changes / Bug Fixes

The breaking changes are minimal and probably negatively impacts 0 users, but are listed here for completeness.

  • Cyclopts now properly resolves aliases (and similar) for attrs and pydantic.

  • The cyclopts.field_info.FieldInfo no longer is a subclass of inspect.Parameter; it is now an independent class that mimics many of inspect.Parameter attributes. The class's __init__ now takes names: tuple[str, ...] instead of a single name: str. This is because certain-dataclass-like objects (namely, pydantic) allows for multiple python-variables to be mapped to the same attribute. The class still maintains a name: str property that returns the first element of the names attribute. This single name is used whenever an arbitrary choice for selecting a field's name needs to be used.

    It was never intended for users to directly instantiate this class, and the name property makes it backwards compatible for those accessing the object. Probably noone actually accesses FieldInfo objects outside of Cyclopts' internals.

  • In some situations, an ArgumentOrderError could be erroneously raised when an UnknownOptionError would have been more appropriate. In those situations, an UnknownOptionError is now raised.

Full Changelog: BrianPugh/cyclopts@v3.3.0...v3.3.1

v3.3.0

Features

Bug Fixes

Full Changelog: BrianPugh/cyclopts@v3.2.1...v3.3.0

v3.2.1

Features

Full Changelog: BrianPugh/cyclopts@v3.2.0...v3.2.1

v3.2.0

Features

  • Allow Parameter to be used as a decorator. by @​BrianPugh in BrianPugh/cyclopts#295
    from cyclopts import App, Parameter
    from dataclasses import dataclass
    app = App(name="movie-maintainer")
    @​Parameter(name="*")
    @​dataclass
    class Movie:
    title: str
    year: int
    @​app.command
    def add(movie: Movie):
    print(f"Adding movie: {movie}")

... (truncated)

Commits
  • 863648b Merge pull request #306 from BrianPugh/dataclass-aliases
  • 56c8cad Fix handling of attrs aliases.
  • fa67778 Raise an UnknownOptionError instead of an ArgumentOrderError if it seems like...
  • 813118b respect pydantic aliases.
  • 9a028e3 remove unused ParameterDict class.
  • 4719395 breaking: FieldInfo no longer inherits from inspect.Parameter. Now can have m...
  • b195bb3 rename name->python_name
  • 2bb0396 update pydantic error message unit test
  • 686f1b0 Merge pull request #303 from BrianPugh/edit
  • 1ba1274 change creation modification time so that immediate edits are detected.
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

Bumps [cyclopts](https://github.com/BrianPugh/cyclopts) from 3.1.4 to 3.3.1.
- [Release notes](https://github.com/BrianPugh/cyclopts/releases)
- [Commits](BrianPugh/cyclopts@v3.1.4...v3.3.1)

---
updated-dependencies:
- dependency-name: cyclopts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 24, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 28, 2025

Superseded by #91.

@dependabot dependabot bot closed this Jan 28, 2025
@dependabot dependabot bot deleted the dependabot/pip/cyclopts-3.3.1 branch January 28, 2025 12:40
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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants