Skip to content

Comments

Fix import statements for importing from the toplevel package#24

Merged
jesusmartinez-garcia merged 5 commits intoRobbie-H:mainfrom
passagemath:package-toplevel-imports
Jul 22, 2025
Merged

Fix import statements for importing from the toplevel package#24
jesusmartinez-garcia merged 5 commits intoRobbie-H:mainfrom
passagemath:package-toplevel-imports

Conversation

@mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Jun 25, 2025

pyproject.toml declares that the top-level package is called CompGIT.

When the package is installed (for example using sage -pip install .), one cannot rely on being "in the folder". Instead, users would do from CompGIT import .... or from CompGIT.Git import .....

Also fixes #25.

That the testing instructions involved setting of PYTHONPATH was a symptom of this bug. I've simplified it for you.

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.

bug importing SimpleGroup (?)

2 participants