Skip to content

Modernize packaging #193

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abhiaagarwal
Copy link

Description

This migrates the old setuptools-based packaging to instead use the pyproject.toml format, with uv as the package manager and hatchling as the build system. This mainly avoids adding the transitive dependencies of build and setuptools that are currently packaged with the sdk.

Moves CI over to use uv.

References

Closes #192

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

@abhiaagarwal abhiaagarwal requested a review from a team as a code owner May 22, 2025 21:44
Copy link

linux-foundation-easycla bot commented May 22, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhatchling@​1.27.096100100100100

View full report

Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert (click for details)
Warn High
[email protected] has a License Policy Violation.

License: LGPL-2.1-or-later (astroid-3.3.10/astroid.egg-info/PKG-INFO)

License: LGPL-2.1-or-later (astroid-3.3.10/PKG-INFO)

License: LGPL-2.1-or-later (astroid-3.3.10/pyproject.toml)

License: LGPL-2.1-or-later (astroid-3.3.10/LICENSE)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: LGPL-2.1+ (astroid-3.3.10.dist-info/licenses/LICENSE)

License: LGPL-2.1-or-later (astroid-3.3.10.dist-info/METADATA)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: LGPL-3.0 (autocommand-2.2.2.dist-info/METADATA)

License: LGPL-3.0 (autocommand-2.2.2.dist-info/METADATA)

License: LGPL-3.0 (autocommand-2.2.2.dist-info/LICENSE)

License: LGPL-3.0-or-later (autocommand/errors.py)

License: LGPL-3.0-or-later (autocommand/autoasync.py)

License: LGPL-3.0-or-later (autocommand/automain.py)

License: LGPL-3.0-or-later (autocommand/autocommand.py)

License: LGPL-3.0-or-later (autocommand/init.py)

License: LGPL-3.0-or-later (autocommand/autoparse.py)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: LGPL-3.0 (autocommand-2.2.2/pyproject.toml)

License: LGPL-3.0 (autocommand-2.2.2/PKG-INFO)

License: LGPL-3.0 (autocommand-2.2.2/PKG-INFO)

License: LGPL-3.0 (autocommand-2.2.2/setup.py)

License: LGPL-3.0 (autocommand-2.2.2/setup.py)

License: LGPL-3.0 (autocommand-2.2.2/LICENSE)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/errors.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/autocommand.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/autoparse.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/init.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/automain.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/test/test_autocommand.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/test/test_autoasync.py)

License: LGPL-3.0-or-later (autocommand-2.2.2/test/test_automain.py)

License: LGPL-3.0 (autocommand-2.2.2/src/autocommand.egg-info/PKG-INFO)

License: LGPL-3.0 (autocommand-2.2.2/src/autocommand.egg-info/PKG-INFO)

License: LGPL-3.0-or-later (autocommand-2.2.2/src/autocommand/autoasync.py)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has a License Policy Violation.

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: MPL-1.1 (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/METADATA)

License: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) (cchardet-2.1.7.dist-info/METADATA)

License: GPL-2.0+ (cchardet-2.1.7.dist-info/COPYING)

License: LGPL-2.1+ (cchardet-2.1.7.dist-info/COPYING)

License: MPL-1.1 (cchardet-2.1.7.dist-info/COPYING)

From: ?pypi/[email protected]

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

See 192 more rows in the dashboard

View full report

@abhiaagarwal abhiaagarwal marked this pull request as draft May 22, 2025 21:55
@abhiaagarwal
Copy link
Author

Marking this as draft to make the upstream changes in sdk-generator, I'll force push on this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use modern packaging
1 participant