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: migrate from flat to src layout #568

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

JP-Ellis
Copy link
Contributor

@JP-Ellis JP-Ellis commented Feb 29, 2024

📝 Summary

Migrate from a flat layout with the Python code stored directly under pact/ in the root to a src layout with the Python code stored under src/pact/

🚨 Breaking Changes

While this is a major change to the structure, the packaged executable is the same.

🔥 Motivation

The src layout helps prevent a number of issues during development. A discussion by Python's packaging group of the pros can be found at https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/.

Fundamentally, it prevents import pact from finding the local pact/ directory, and ensures that the package is installed correctly (typically as an editable installation).

🔨 Test Plan

Regular CI/CD

🔗 Related issues/PRs

The src layout helps prevent a number of issues during development. A
discussion by Python's packaging group of the pros can be found at
https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/.

Fundamentally, it prevents `import pact` from finding the local `pact/`
directory, and ensures that the package is installed
correctly (typically as an editable installation).

Signed-off-by: JP-Ellis <[email protected]>
@JP-Ellis JP-Ellis self-assigned this Feb 29, 2024
@JP-Ellis JP-Ellis merged commit 3ce053e into master Feb 29, 2024
27 of 38 checks passed
@JP-Ellis JP-Ellis deleted the chore/flat-to-src-layout branch February 29, 2024 22:11
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.

Migrate from flat to src layout
1 participant