Skip to content
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

Add recipe for rl-games #25480

Merged
merged 9 commits into from
Mar 2, 2024
Merged

Add recipe for rl-games #25480

merged 9 commits into from
Mar 2, 2024

Conversation

flferretti
Copy link
Contributor

@flferretti flferretti commented Feb 19, 2024

This is a recipe for rl-games pure-Python package.

PyPI: https://pypi.org/project/rl-games/
Repo: https://github.com/Denys88/rl_games

Checklist

  • Title of this PR is meaningful: e.g. "Adding my_nifty_package", not "updated meta.yaml".
  • License file is packaged (see here for an example).
  • Source is from official source.
  • Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged).
  • If static libraries are linked in, the license of the static library is packaged.
  • Package does not ship static libraries. If static libraries are needed, follow CFEP-18.
  • Build number is 0.
  • A tarball (url) rather than a repo (e.g. git_url) is used in your recipe (see here for more details).
  • GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there.
  • When in trouble, please check our knowledge base documentation before pinging a team.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found some lint.

Here's what I've got...

For recipes/rl-games:

  • The summary item is expected in the about section.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found it was in an excellent condition.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found some lint.

Here's what I've got...

For recipes/rl-games:

  • requirements: host: python<3.11 must contain a space between the name and the pin, i.e. python <3.11

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found it was in an excellent condition.

@flferretti flferretti force-pushed the patch-6 branch 2 times, most recently from f72bc79 to 9031c44 Compare February 19, 2024 14:29
@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found some lint.

Here's what I've got...

For recipes/rl-games:

  • noarch: python recipes are required to have a lower bound on the python version. Typically this means putting python >=3.6 in both host and run but you should check upstream for the package's Python compatibility.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found it was in an excellent condition.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found some lint.

Here's what I've got...

For recipes/rl-games:

  • noarch packages can't have selectors. If the selectors are necessary, please remove noarch: python.

For recipes/rl-games:

  • Please depend on pytorch directly, in order to avoid forcing CUDA users to downgrade to the CPU version for no reason.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/rl-games) and found it was in an excellent condition.

@flferretti flferretti marked this pull request as ready for review February 20, 2024 12:39
@flferretti

This comment was marked as outdated.

@traversaro
Copy link
Contributor

Thanks @flferretti for working on this! For the review it would be helpful to:

@flferretti
Copy link
Contributor Author

flferretti commented Feb 23, 2024

Thanks for review!

  • explain why you need to set include_package_data to false?

I thought they were not useful for the recipe. This will install rl_games/configs/*.yaml, which I believe it to be not necessary in this case

This is interesting, I was not aware of this! The dependencies were recognized correctly by conda-forge at first, but the problem is that they are super strict and some packages are not currently available here, e.g. gym>=0.23, <0.24. For this reason, I decided to drop poetry and make conda solve the environment

@traversaro
Copy link
Contributor

This is interesting, I was not aware of this! The dependencies were recognized correctly by conda-forge at first, but the problem is that they are super strict and some packages are not currently available here, e.g. gym>=0.23, <0.24. For this reason, I decided to drop poetry and make conda solve the environment

Perhaps we can use the --only-root option for handling this? See python-poetry/poetry#5783 .

@traversaro
Copy link
Contributor

traversaro commented Feb 26, 2024

This is interesting, I was not aware of this! The dependencies were recognized correctly by conda-forge at first, but the problem is that they are super strict and some packages are not currently available here, e.g. gym>=0.23, <0.24. For this reason, I decided to drop poetry and make conda solve the environment

Perhaps we can use the --only-root option for handling this? See python-poetry/poetry#5783 .

Sorry, we aligned with @flferretti in person and the problem is a bit more complex. The problem here is that poetry/pyproject.toml and setup.py are basically inconsistent, i.e. they have a different set of dependencies and constraints. It seems that the one most recently updated is the setup.py, so indeed I think it make sense to just remove poetry/pyproject.toml and use setup.py.

@flferretti
Copy link
Contributor Author

@conda-forge/help-python, @conda-forge/staged-recipes the recipe is now ready for review, thanks!

The Windows action is still failing because pytorch is not available.

Copy link
Contributor

To help direct your pull request to the best reviewers, please mention a topic-specifc team if your recipe matches any of the following: conda-forge/help-c-cpp, conda-forge/help-cdts, conda-forge/help-go, conda-forge/help-java, conda-forge/help-julia, conda-forge/help-nodejs, conda-forge/help-perl, conda-forge/help-python, conda-forge/help-python-c, conda-forge/help-r, conda-forge/help-ruby,or conda-forge/help-rust. Thanks!

@traversaro
Copy link
Contributor

I can confirm all my doubts have been addressed.

@xhochy xhochy merged commit 8654313 into conda-forge:main Mar 2, 2024
3 of 5 checks passed
@flferretti flferretti deleted the patch-6 branch March 2, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants