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

Migrate to PEP621 #121

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

LecrisUT
Copy link

@LecrisUT LecrisUT commented Jun 28, 2024

This PR is mostly to migrate to PEP621 but in the process needed to add a few other improvements to fully migrate:

  • Migrate metadata to PEP621
  • Migrate from flake8 to ruff. Currently only minimal configuration, please consider uncommenting the other rules, at the very least: I, B, Q, COM, PL, and recommended for upgrades UP, PTH
  • Added pre-commit and ran for
  • Added release workflow (See this, and specifically this for what's needed to setup)
    Related, how about using setuptools_scm?
  • Remove Makefile? The remaining usage of it looks outdated
  • Migrate to nox? This seems to be the recommended upgrade from tox

@auvipy auvipy self-requested a review September 8, 2024 14:35
@@ -1,7 +0,0 @@
#!/usr/bin/env python3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should keep this file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you elaborate on why you would want that? setup.py is deprecated, and you should instead use pip, python -m build, etc. commands instead that are PEP517 compatible.

As a Fedora packager, the only issue that I've encountered is in packaging for EPEL9 due to ancient setuptools that do not support PEP621, but that is easily resolved by moving to hatchling and this can even be done downstream by the packager only if upstream does not wish to move to hatchling

@@ -1,47 +0,0 @@
[metadata]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this

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.

2 participants