-
Notifications
You must be signed in to change notification settings - Fork 12
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
Move utils package under windIO #18
Conversation
One more thing to note - I searched GitHub for which repositories are using the It's limited to this repository, and this pull request addresses those lines. |
I would like to include windio into the package foxes, and I think this pull request makes this a lot easier. As a side note, a release to PyPi and conda-forge would even be better since it would allow to add windio as a dependency directly. Probably I am just being impatient, thanks for all the work! |
I generally approve of this change, since indeed the generic naming could conflict with many other packages. Although it should not be addressed in this PR, I think we should separate the core windIO package from downstream frameworks that use it. Interfaces to these frameworks should be maintained in self-contained repos, that are then themselves responsible for checking for compatibility with changes in windIO. @MMPe @bayc I think you added the utils code, so I leave it to you to decide on this one. |
@fzahle I agree, and I'll propose the change if the maintainers like it, too.
I'm also happy to add this infrastructure in another pull request, but I'll create a separate issue for this. |
I completely agree. The constructors defined in the yaml reader are a crucial part of our defined schema. We should consider versioning the YAML schema as well as these associated constructors. |
thank you @rafmudaf ! I believe we are good to merge this PR? |
Yes, please! |
This pull request changes the directory structure of the repository so that the
utils
package is included underwindIO
rather than beside it. I have not discussed these changes with windIO developers, so please feel free to discuss here or disregard this pull request if it isn't inline with the intended design of windIO.Directory reorg
Currently, pip-installing windIO results in two (actually three, see below) packages being installed:
windIO
andutils
. This leads to import statements like the following from the plant-tests:Within the windIO repository, the context is clear. However, when used outside of this repository,
utils
is vague and leads to ambiguity.This pull request moves the
utils
directory under thewindIO
directory so that only one package is installed. The import statements then read like this:For context, I'm using windIO in another project, and this reorganization of the modules improves the readability of the new software.
Installation config
Additionally, the
test
directory is currently installed since thefind_package(exclude
configuration in setup.py does not include a wildcard (*
). This pull request adds a wildcard to each item in the exclude and also adds thedocs
directory to exclude. The sources list fromwindIO.egg-info/SOURCES.txt
before and after are included below.Current:
After this pull request:
Lastly, this pull request adds PyWake and TopFarm as dependencies in the setup config when requested. For a typical installation, these two packages are not installed, so this retains the current behavior. However, these two packages are installed when the
test
extras are requested:pip install -e ".[test]"