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 dp-accounting #29073

Merged
merged 5 commits into from
Feb 10, 2025
Merged

Add dp-accounting #29073

merged 5 commits into from
Feb 10, 2025

Conversation

rpreen
Copy link
Member

@rpreen rpreen commented Feb 9, 2025

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.

Copy link
Contributor

github-actions bot commented Feb 9, 2025

Hi! This is the staged-recipes linter and your PR looks excellent! 🚀

@conda-forge-admin
Copy link
Contributor

conda-forge-admin commented Feb 9, 2025

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/dp-accounting/meta.yaml) and found it was in an excellent condition.

@rpreen rpreen changed the title Add dp-accounting and tensorflow-privacy Add dp-accounting Feb 9, 2025
@rpreen
Copy link
Member Author

rpreen commented Feb 9, 2025

@conda-forge/help-python, ready for review!


build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
script: {{ PYTHON }} -m pip install . -vv
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

- else:
- return version_line.strip('\n \'"')
+ """Return the version number from conda build."""
+ return "0.4.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be 0.4.3?

Comment on lines +11 to +13
patches:
- set_version.patch
- set_requirements.patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can, please open issues upstream for the missing files and add a comment here so we can track the evolution of these patches.

@ocefpaf
Copy link
Member

ocefpaf commented Feb 10, 2025

Not sure that is going on with osx here but we don't need it to merge this PR. The package is noarch.

@rpreen
Copy link
Member Author

rpreen commented Feb 10, 2025

OK, thank you!

I have added an issue about the missing files: google/differential-privacy#286

I noticed that the PyPI tar.gz files are named slightly differently in version 0.4.3 and 0.4.4 - where in 0.4.3 (this meta.yaml) the file name is "dp-accounting-0.4.3.tar.gz" but for 0.4.4 it is named "dp_accounting-0.4.4.tar.gz" - does something need to be changed here to deal with both cases because it's using dp-accounting-{{ version }}.tar.gz in the url?

@ocefpaf
Copy link
Member

ocefpaf commented Feb 10, 2025

I have added an issue about the missing files: google/differential-privacy#286

👍🏽

I noticed that the PyPI tar.gz files are named slightly differently in version 0.4.3 and 0.4.4 - where in 0.4.3 (this meta.yaml) the file name is "dp-accounting-0.4.3.tar.gz" but for 0.4.4 it is named "dp_accounting-0.4.4.tar.gz" - does something need to be changed here to deal with both cases because it's using dp-accounting-{{ version }}.tar.gz in the url?

The import will work with either _ or -, but you may need to fix the URL. The package name is another problem... PyPI doesn't care and you can pip install it in any form, like the import, but conda does care b/c conda is python agnostic. You can:

  1. choose one name and keep it
  2. create multiple outputs and claim both names

For 2 see https://github.com/conda-forge/ioos_qc-feedstock/blob/main/recipe/meta.yaml for an example.

@rpreen
Copy link
Member Author

rpreen commented Feb 10, 2025

Ok, so the URL will just need to be changed for 0.4.4? I believe it's just an odd naming for 0.4.4 because all the prior versions use the "-" naming as here.

@ocefpaf
Copy link
Member

ocefpaf commented Feb 10, 2025

Ok, so the URL will just need to be changed for 0.4.4? I believe it's just an odd naming for 0.4.4 because all the prior versions use the "-" naming as here.

I think PyPI started enforcing _ for URLs. I wish they did the same for naming and installing... But at least we have only 1 URL to download the source now. It is a win.

TL;DR it is not the package/s fault.

@ocefpaf ocefpaf merged commit fe5f36b into conda-forge:main Feb 10, 2025
7 checks passed
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