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
Adding settings.ini
to PyPI source
#24
Conversation
cc: @FedericoGarza |
settings.ini
to PyPI sourcesettings.ini
to PyPI source
Thank you for your contribution! We use nbdev to develop the library, so to update the README.md file you have to modify the |
@jmoralez Thank you. Will do it as you explained. |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@jmoralez Done. |
This PR aside, I am actually working on adding The conda-forge ecosystem is built to contain all necessary packages in the channel itself. Since, it is one of the largest channels on conda, it makes sense to add PyPI packages to conda-forge. Once the conda-forge PR is merged you will be able to install it with: conda install -c conda-forge statsforecast cc: @jmoralez @FedericoGarza |
nbs/index.ipynb
Outdated
"[Getting started](https://github.com/Nixtla/statsforecast/tree/main/#-getting-started-) •\n", | ||
"[Installation](https://github.com/Nixtla/statsforecast/tree/main/#-installation)\n", |
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.
Setting these as relative will allow them to work even on your branch so we can test them and (hopefully) in the docs as well.
"[Getting started](https://github.com/Nixtla/statsforecast/tree/main/#-getting-started-) •\n", | |
"[Installation](https://github.com/Nixtla/statsforecast/tree/main/#-installation)\n", | |
"[Getting started](#-getting-started-) •\n", | |
"[Installation](#-installation)\n", |
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.
But this is the source of the broken link on PyPI. Unless you somehow make them absolute links, I am not sure that problem goes away.
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.
Ah I thought you meant they were broken in the github README. I agree with using the full links so they work on github, the webpage and PyPI. Can you please also change the section that says You can reproduce the results
to use the github link as well?
README.md
Outdated
@@ -121,7 +121,7 @@ pip install -e . | |||
|
|||
## 🧬 How to use | |||
|
|||
```python | |||
``` |
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.
Can you please re-render this and make sure that the python suffix stays there? Otherwise the syntax highlighting gets lost.
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.
So, the nbdev rendering does not keep the python language specifier (L/S)? Do I have to manually ensure that the python L/S is still there (after the rendering)?
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.
Did you save the executed notebook and ran the build_docs? The only reason I can think of that it would do this is if there's no metadata specifying the language in the notebook.
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.
Ah! No, I did not execute the notebook. I just made the changes in the markdown and saved the file. And then ran the command you had mentioned.
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.
Following #28 I think we may change the way we generate the README so if you want to fix the links as well we appreciate it but if this becomes too burdensome the changes in the manifest are already a huge help. Thank you!
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 had a similar problem for one of my repositories. The hack that I implemented allowed me to keep relative links in readme file, but while publishing to PyPI, since it runs setup.py, the target set of links were updated with absolute path. This might give you an idea.
- https://github.com/sugatoray/genespeak/blob/e6b49491cf5a872a03d55403ed34d2fa3469d0b8/setup.py#L7-L37
I am skipping updating the notebook/readme for now (reverted already). Please let me know if the rest is fine now.
- include/exclude files in source-distribution
e7a8d31
to
9451e45
Compare
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.
Thank you very much!
@jmoralez If you just change the links from markdown format <a href="_TARGET_URL">
<img src="_BADGE_URL" alt="_DESCRIPTION" />
</a> |
@all-contributors please add @sugatoray for code |
I've put up a pull request to add @sugatoray! 🎉 |
@all-contributors please add @sugatoray for code |
@sugatoray already contributed before to code |
@all-contributors please add @sugatoray for code |
I've put up a pull request to add @sugatoray! 🎉 |
The
setup.py
file reads in the config values fromsettings.ini
. So, absence ofsettings.ini
file in the source distribution (*.tar.gz
file), leads to failure in installation ofstatsforecast
.v0.3.0
) the PyPI source does not include thesettings.ini
file. This PR fixes that.Changes to:README.md
fileFixed some of the formatting errors.Fixed some broken URLs.Closes #24