Skip to content

Move deprecated 'tool.setuptools.license-files', remove license classifier #10289

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

Merged
merged 7 commits into from
Mar 20, 2025

Conversation

winglian
Copy link
Contributor

@winglian winglian commented Mar 20, 2025

When using the latest packaging==24.2, this no longer installs due to pypa/setuptools#4837

and I get the expected error:

setuptools.errors.InvalidConfigError: 'project.license-files' is defined already. Remove 'tool.setuptools.license-files'.

Type of Changes

Type
🐛 Bug fix

Description

Refs #XXXX

Closes #10290
Refs #10292

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for the merge request. We can also remove setup.cfg and the comment about it now : setuptools handle pyproject'toml.(I did it in astroid yesterday)

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Mar 20, 2025
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.86%. Comparing base (62ac273) to head (5b64422).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10289   +/-   ##
=======================================
  Coverage   95.86%   95.86%           
=======================================
  Files         175      175           
  Lines       19074    19074           
=======================================
  Hits        18286    18286           
  Misses        788      788           
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Pierre-Sassoulas Pierre-Sassoulas changed the title move deprecated 'tool.setuptools.license-files' Move deprecated 'tool.setuptools.license-files', remove license classifier Mar 20, 2025
@Pierre-Sassoulas Pierre-Sassoulas merged commit c8c96d2 into pylint-dev:main Mar 20, 2025
26 checks passed
Copy link
Contributor

The backport to maintenance/3.3.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-maintenance/3.3.x maintenance/3.3.x
# Navigate to the new working tree
cd .worktrees/backport-maintenance/3.3.x
# Create a new branch
git switch --create backport-10289-to-maintenance/3.3.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c8c96d20cde3552a79858c7456bb1483bf83d633
# Push it to GitHub
git push --set-upstream origin backport-10289-to-maintenance/3.3.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-maintenance/3.3.x

Then, create a pull request where the base branch is maintenance/3.3.x and the compare/head branch is backport-10289-to-maintenance/3.3.x.

@alexey-pelykh
Copy link
Contributor

I take it release is coming next? :)

@Pierre-Sassoulas
Copy link
Member

Yes, it seems to be affecting pre-commit so we need a patch release to fix that.

Pierre-Sassoulas added a commit that referenced this pull request Mar 20, 2025
Pierre-Sassoulas added a commit that referenced this pull request Mar 20, 2025
ejfine added a commit to LabAutomationAndScreening/copier-base-template that referenced this pull request Mar 20, 2025
## Link to Issue or Slack thread
pylint-dev/pylint#10289


 ## Why is this change necessary?
pylint pre-commit hook was erroring on install

Trying to run copier updates in devcontainers on windows hosts was
sometimes having issues


 ## How does this change address the issue?
Pins a patched version of pylint

Creates a helper script that can be run to reclone all the files inside
the devcontainer on a windows host.


 ## What side effects does this change have?
None


 ## How is this change tested?
In several child and grandchild repositories


 ## Other
Added some misc versions to context.py
@Siebe-Nijs
Copy link

Siebe-Nijs commented Mar 20, 2025

Should an upper version limit not be specified for setup-tools to avoid having pylint break without version upstep again?

requires = [ "setuptools>=71.0.4" ]

@Pierre-Sassoulas
Copy link
Member

Yes, feel free to shoot a PR @Siebe-Nijs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport maintenance/3.3.x Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'project.license-files' is defined already. Remove 'tool.setuptools.license-files'
4 participants