-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Changes to pyproject for test-pypi #2593
Closed
+11
−1
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
50f7e02
Changes to pyproject for test-pypi
simmonsj330 603d265
changing back from 1.8.1 to 1.8.0
simmonsj330 e2f65bf
adding includes for pip to actually work
simmonsj330 abc7d57
Merge branch 'main' into pyproject_changes
simmonsj330 0f2d876
Merge branch 'main' into pyproject_changes
simmonsj330 82f966a
Merge branch 'main' into pyproject_changes
minhhoang1023 fa36e8d
Merge branch 'main' into pyproject_changes
simmonsj330 e361f92
Merge branch 'main' into pyproject_changes
minhhoang1023 40e7e06
Merge branch 'main' into pyproject_changes
minhhoang1023 a5d9b51
Merge branch 'main' into pyproject_changes
simmonsj330 e3bff67
Merge branch 'main' into pyproject_changes
simmonsj330 896e7e5
Merge branch 'main' into pyproject_changes
simmonsj330 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we bundle it like this the files that we include end up in
envs/obb/lib/python3.9/site-packages/
. That's the same place where all other python packages are. What are the odds that we'll have a conflict there, like an existingi18n
orportfolio
folder?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piiq I would say low if we try to manage our dependencies closely. So hopefully there should be no conflict. Sadly there is no workaround to putting these folders and files into a different location. Additionally, we could potentially change the name of the folders and files that are placed in site-packages, but that would require a major major refactor. Folders like
portfolio
andil8n
are necessary to run the terminal via pip install with the commandopenbb
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you think there's no workaround?
When i was experimenting with instalability i have moved the files into the openbb_terminal folder. We have core,config folders in there, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I should have phrased better. There doesn't seem to be a workaround if we use our current folder structure. Poetry pollutes the top level site-packages with the contents of "include" and per this poetry support thread it seems to be the default and only supported behavior. Changing the folder structure as you mentioned and move folders like
il8n
intoopenbb_terminal
would allow for a more neat and clean pip install since they will be packaged in the module.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with both solutions
Packing everything inside openbb_terminal seems just a tiny bit tidier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now we'll keep it this way (placing materials into
site-packages
), but refactoring the folder structure will be a good idea for a future enhancement. We can track this enhancement with this #2623!