Skip to content

Relative imports #26

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

Merged
merged 6 commits into from
May 21, 2020
Merged

Relative imports #26

merged 6 commits into from
May 21, 2020

Conversation

eulertour
Copy link
Member

Converts all of the absolute imports in manimlib into relative imports as described in #15.

This required moving get_module() from config.py to extract_scene.py in order to prevent the user's code from triggering imports from constants.py until after the directories were initialized.

I would highly recommend testing this PR with a few scenes.

@eulertour eulertour linked an issue May 20, 2020 that may be closed by this pull request
@PgBiel
Copy link
Member

PgBiel commented May 20, 2020

From my analysis, the only thing that could break here is the get_module moving, so we should probably test that yeah

@PgBiel PgBiel added pr:bugfix Bug fix for use in PRs solving a specific issue:bug enhancement Additions and improvements in general labels May 20, 2020
@eulertour
Copy link
Member Author

By "test" I mean just running a few scenes and making sure they don't break. I don't think this should wait until we get pytest or something similar working.

@leotrs
Copy link
Contributor

leotrs commented May 20, 2020

Would running the sample scenes discussed in #22 be enough of a test to merge this?

@eulertour
Copy link
Member Author

I verified that all of the sample scenes run and actually even found a few missed imports. It's tested enough for me.

@leotrs leotrs merged commit 0fc1562 into master May 21, 2020
@leotrs leotrs deleted the relative-imports branch May 21, 2020 19:53
naveen521kk added a commit that referenced this pull request Dec 31, 2020
* Use manimpango

* Remove MarkUp Text not yet supported

* add manimpango as dep

* remove MarkupText from __all__

* Fix CairoText

* Remove test for Pango

* Run black

* Update ManimPango

* Try fixing MacOS CI by restricting version of grpc

* Try fixing MacOS CI - 2

* Make MarkupText use manimpango (#26)

* Update ManimPango

* update manimpango

* Remove pango installation docs

* remove ffi workaround from Dockerfile

* troubleshooting: new entry for manimpango, hint for update for old pango problems

Co-authored-by: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additions and improvements in general pr:bugfix Bug fix for use in PRs solving a specific issue:bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix imports
4 participants