-
Notifications
You must be signed in to change notification settings - Fork 2
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
Init repo #15
Conversation
Hi @fnattino and @vanlankveldthijs. When you have time, could you please help me review this PR? This is a PR setting up the PyDePSI repository. I removed some old irrelevant examples. Could you please focus on:
The testing is failing because currently there are no tests under folder Thanks in advance! |
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.
README is clear and works perfectly.
pyproject file also looks fine to me.
The only thing I noticed is that I initially did not realize that I needed to set the python version when creating the conda environment (as described in the README).
When I then tried to pip install, it did not notify me of the requirement for python to be >=3.10 and then it did not recognize the pydepsi project and created an UNKNOWN project-0.0.0.
I don't know whether we can/should fix this. When I then did follow the instructions in the README correctly, the package installed just fine and the example notebook works.
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.
Looks nice @rogerkuou!
The only main comment I have is regarding the dev installation procedure, but feel free to address it or discard it as you see fit.
The rest is all very minor things!
README.md
Outdated
Create a new conda environment (here we give an example name `pydepsi-dev`) with `mamba`.: | ||
|
||
```bash | ||
mamba create -n pydepsi-dev python=3.12 |
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.
-c conda-forge
? Not really needed here, but I think there were some legal implications for for-profit organizations connected to the use of the anaconda channel..
README.md
Outdated
## References | ||
|
||
- [Python packaging user guide](https://packaging.python.org/) | ||
- [Testing in Python](https://docs.kedro.org/en/stable/development/automated_testing.html) | ||
- [Code formatting and linting](https://docs.kedro.org/en/stable/development/linting.html) |
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.
Are these links provided because they are useful readings for people who starts develop the package? Maybe you could mention it here, or simply call this section "Useful reading material"?
.github/workflows/build.yml
Outdated
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 am not sure, are the following lines actually needed? I think that the pip build/install part already runs this step?
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 realized I forgot to push the fix of this comment. This is implemented with a separate PR #19
I was curious about what would happen in this situation as well, so I also tried to pip install the package in an environment where I had Python 3.9. But in my case pip correctly recognizes the Python version requirement in the
So this seems to be working fine on my system. I wonder whether this is something related to the pip version (I have 24.2). |
Co-authored-by: Francesco Nattino <[email protected]>
Thanks @vanlankveldthijs and @fnattino for the review. I applied some changes according to @fnattino 's suggestions. And @vanlankveldthijs same as Francesco the version constraint seems working for me. Given for now the installation is mainly development oriented, I would park this for now. We can polish up the user oriented installation docs later. Will merge this PR. |
Fix the following issues to setup the repository