Skip to content

Comments

FIX: Exclude testapp from package distribution#503

Open
robberwick wants to merge 1 commit intomicrosoft:devfrom
robberwick:no-testapp-in-package
Open

FIX: Exclude testapp from package distribution#503
robberwick wants to merge 1 commit intomicrosoft:devfrom
robberwick:no-testapp-in-package

Conversation

@robberwick
Copy link

Fixes #502

find_packages() is called without exclusions in setup.py, causing testapp to be
installed as a top-level package alongside mssql into site-packages. This creates namespace collisions for downstream projects that define their own testapp.

Add exclude=['testapp', 'testapp.*'] to find_packages() to prevent this.

find_packages() is called without exclusions in setup.py, causing
testapp to be
installed as a top-level package alongside mssql into site-packages.
This creates namespace collisions for downstream projects that define
their own testapp.

Add exclude=['testapp', 'testapp.*'] to find_packages() to prevent this.
Copilot AI review requested due to automatic review settings February 16, 2026 13:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a packaging issue where the testapp directory (used for testing mssql-django) was being incorrectly included in the package distribution, causing namespace collisions for downstream projects that define their own testapp.

Changes:

  • Add exclusion pattern to find_packages() in setup.py to prevent testapp and its subpackages from being distributed

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.

testapp is included in package distribution

1 participant