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

Re-add setup.py to fix dependabot #1832

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

jku
Copy link
Member

@jku jku commented Feb 8, 2022

This seems to fix the issue with dependabot (#1828) in my fork... There's also a unrelated trivial packaging fix included.

Also, reading the dependabot log I noticed there is one more dependency update I did not include in my latest dependency update PR (pycparser): I'll leave that unfixed for now, we can use it as confirmation that dependabot actually works.

Jussi Kukkonen added 2 commits February 8, 2022 09:12
The Python build tools are fine without a setup.py but Dependabot
chokes: dependabot/dependabot-core#4483

Add a setup.py to keep Dependabot happy.

Fixes theupdateframework#1828

Signed-off-by: Jussi Kukkonen <[email protected]>
pylint config lives in pyproject.toml nowadays.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku linked an issue Feb 8, 2022 that may be closed by this pull request
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1811124958

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.89%

Totals Coverage Status
Change from base Build 1807776099: 0.0%
Covered Lines: 1112
Relevant Lines: 1132

💛 - Coveralls

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

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

Ready to un-draft?

# This file exists to keep dependabot happy:
# https://github.com/dependabot/dependabot-core/issues/4483
from setuptools import setup
setup()
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, does setup() read from setup.cfg?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should, to my knowledge... but I want to still confirm this

Copy link
Member Author

@jku jku Feb 8, 2022

Choose a reason for hiding this comment

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

as far as I can tell this works fine: the wheels dist-info contains the correct METADATA.

(as a sidenote, we may be missing a license variable as metadata contains License: UNKNOWN, will file an issue)

@jku jku marked this pull request as ready for review February 8, 2022 09:02
@lukpueh lukpueh merged commit 0bc891f into theupdateframework:develop Feb 8, 2022
lukpueh added a commit to lukpueh/tuf that referenced this pull request Aug 30, 2022
setup.py was removed in favor of setup.cfg in theupdateframework#1626 and re-added
later in theupdateframework#1832 to work around a Dependabot issue theupdateframework#1828. This issue
seems to have been fixed upstream in dependabot/dependabot-core#5392.

Fixes theupdateframework#2089

Signed-off-by: Lukas Puehringer <[email protected]>
@jku jku deleted the return-of-setup-py branch December 30, 2024 09:12
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.

Dependabot does not work
3 participants