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

chore: dont add 'tests' package to wheel #2087

Merged
merged 2 commits into from
Jul 27, 2023
Merged

Conversation

cwegener
Copy link
Contributor

in commit 7f194cf, the tests package got moved from within the
'flask_appbuilder' namespace into the root namespace, but the package
was not explicitely excluded from the wheel in setuptools.

As a result, all the FAB tests would get installed into the 'tests'
package namespace during an installation of the FAB 4.3.4 wheel.

Furthermore, if other wheels would also ship modules inside the 'tests'
namespace, these modules would get overidden. Package managers like
pip probably wouldn't even notice.

But other package managers (e.g. dpkg or rpm) will detect such
conflicts and will complain about it loudly and refuse to install
packages with conflicting files.

cwegener and others added 2 commits July 17, 2023 19:11
in commit 7f194cf, the tests package got moved from within the
'flask_appbuilder' namespace into the root namespace, but the package
was not explicitely excluded from the wheel in setuptools.

As a result, all the FAB tests would get installed into the 'tests'
package namespace during an installation of the FAB 4.3.4 wheel.

Furthermore, if other wheels would also ship modules inside the 'tests'
namespace, these modules would get overidden. Package managers like
`pip` probably wouldn't even notice.

But other package managers (e.g. `dpkg` or `rpm`) will detect such
conflicts and will complain about it loudly and refuse to install
packages with conflicting files.
Copy link
Owner

@dpgaspar dpgaspar 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!

@dpgaspar dpgaspar merged commit 15b45de into dpgaspar:master Jul 27, 2023
8 checks passed
@cwegener
Copy link
Contributor Author

You're welcome. I think I'm probably the only person installing python packages as apt/rpm OS packages. 😁

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