-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
R Support [WIP] #349
R Support [WIP] #349
Conversation
…into cran-branch
…into cran-branch
# Due to how the metadata is rendered there can be | ||
# significant areas of repeated newlines. | ||
# This collapses them and also strips any trailing spaces. |
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.
All those comments that you put before the function, can you move them to be the function docstring please?
|
||
def get_cran_archive_versions(cran_url, session, package, verbose=True): | ||
if verbose: | ||
print(f"Fetching archived versions for package {package} from {cran_url}") |
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 use log, or can you use print_msg
from grayskull.cli.stdout
please?
|
||
cran_url = "https://cran.r-project.org" | ||
|
||
|
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 create unit tests for those free functions in this file please?
recipe = GrayskullFactory.create_recipe( | ||
"pypi", Configuration(name="pytest", version="5.3.2") | ||
) | ||
# The CRAN test is not passing. I don't understand why! |
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.
you also need to change line 124
to
cli.main([index, str(recipe_path), "--sections", "requirements"])
Co-authored-by: Marcelo Duarte Trevisani <marcelotrevisani@users.noreply.github.com>
Co-authored-by: Marcelo Duarte Trevisani <marcelotrevisani@users.noreply.github.com>
Closing this in favor of #423 Thank you very much for your hard work and all effort that you put into this! |
Fixes #306
Add CRAN origin to Grayskull.
These changes only aim to handle simple R recipes.
The functionality to extract compiler information from R metadata and therefore handle complex packages will be added in consequent iterations.
ToDo
(It is not a requirement to have the packages listed in a sorted order. But it's a nice to have, as it improves readability for users trying to look for a specific package in the list)