Skip to content

Conversation

@mmmavis
Copy link
Member

@mmmavis mmmavis commented Apr 4, 2025

This PR resolves build issues on Heroku by moving the setuptools and wheel dependencies from build-requirements.txt into the main requirements.txt file.

Heroku uses requirements.txt as the default install target during the slug build process. Having setuptools and wheel there ensures that packages like django-allauth, which rely on older setup.py behavior, install correctly without metadata generation errors.

@mmmavis mmmavis requested a review from danielfmiranda April 4, 2025 20:23
Copy link
Contributor

@danielfmiranda danielfmiranda left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks @mmmavis 👍 approved!

# Required on Heroku to prevent build failures with legacy packages like django-allauth
# Ensures build dependencies (e.g. setuptools, wheel) are installed before other packages
-r build-requirements.txt
# The two lines below are needed for Heroku compatibility.
Copy link
Contributor

Choose a reason for hiding this comment

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

Kudos Thank you for updating the comment here!

@mmmavis mmmavis merged commit ad0a5b8 into master Apr 4, 2025
2 checks passed
@mmmavis mmmavis deleted the more-fix branch April 4, 2025 22:47
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.

3 participants