This pull request removes the implicit assumptions of the project directory structure. Now, there is no need that there is a src/ directory in the project directory and top-level directories in the project directory are not treated as top-level packages, which will be installed as separate packages, but normal packages in the project like every other. As a result, top-level *.py files are no longer ignored.
Tests were updated to the new behavior and the test project directories are restructured.
There is a new entry in the changelog for this change.
## Description
This pull request removes the implicit assumptions of the project directory structure. Now, there is no need that there is a `src/` directory in the project directory and top-level directories in the project directory are not treated as top-level packages, which will be installed as separate packages, but normal packages in the project like every other. As a result, top-level `*.py` files are no longer ignored.
Tests were updated to the new behavior and the test project directories are restructured.
There is a new entry in the changelog for this change.
## Related issues
Closes #32
jakob.scheid
added this to the 0.2.0 milestone 2026-09-22 19:15:07 +02:00
Updated tests to do not implicitly assume a 'src/' directory structure
and removed all 'src/' subdirectory structures in test project
directories (if possible).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
This pull request removes the implicit assumptions of the project directory structure. Now, there is no need that there is a
src/directory in the project directory and top-level directories in the project directory are not treated as top-level packages, which will be installed as separate packages, but normal packages in the project like every other. As a result, top-level*.pyfiles are no longer ignored.Tests were updated to the new behavior and the test project directories are restructured.
There is a new entry in the changelog for this change.
Related issues
Closes #32
@@ -12,6 +12,7 @@- Replaced the installation instructions, which used the old registry, with a reference to the Gitea Package Registry in README- Made Python function signatures (argument default values) compliant with PEP 8- Removed implicit project directory structure assumptionsMention that it only affects Python projects.
@@ -30,5 +30,5 @@'tests/unit/core/python/_core/test_project_dirs/pdir_1'),pathlib.Path('tests/unit/core/python/_core/test_project_dirs/pdir_1/docs'),Keep the
src/anddocs/directory.cfc00dadb2to62cadcc7ae62cadcc7aeto9a2bee78a19a2bee78a1to53ab0e3829