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

Features/dependencies on files on pyton path #903

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

dwt
Copy link

@dwt dwt commented Mar 19, 2021

Issue(s) Resolved

Fixes #499 - or at least makes it much more manageable.

Description of Changes

None of this has happened yet, because this is a draft pull request to spark discussion.

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)
  • Link to corresponding documentation pull request for getlektor.com

I have relaxed the requirement for the path cache that every file be below the env.root_path but can also be below any of the paths in sys.path. This allows source files in plugins to work, even if the plugin is not a source install, but instead a normal dependency.

What do you think? I am kind of surprised that this worked at all. Also I have no ideas about the ramifications.

So - what do you guys think, what would be a better way to support source files that are not below env.root_path and what ramifications does a change like this have?

One thing I don't like about this, is that before this AFAIK no absolute paths where stored in the build-state, making the entire project eminently relocatable (even between machines). Not sure if that is actually a design goal though.

dwt and others added 25 commits February 18, 2021 09:53
typo

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Suggested help string

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
…equirements_file) as it is not used / needed anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant