-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
ENH: Add py-flowy #30704
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
base: main
Are you sure you want to change the base?
ENH: Add py-flowy #30704
Conversation
@amritagos @MSallermann can you confirm that you'll be co-maintainers for the |
Hi! This is the staged-recipes linter and I found some lint. It looks like some changes were made outside the If these changes are intentional (and you aren't submitting a recipe), please add a File-specific lints and/or hints:
|
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 ( Here's what I've got... For recipes/pyflowy/meta.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/16694841401. Examine the logs at this URL for more detail. |
Yes, I can confirm :) |
Sure, I'll confirm! Thanks! :) |
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 ( |
Hi! This is the staged-recipes linter and your PR looks excellent! 🚀 |
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 ( Here's what I've got... For recipes/pyflowy/recipe.yaml:
For recipes/pyflowy/recipe.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/16695590029. Examine the logs at this URL for more detail. |
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 ( |
Same error as #30703 (comment) 1 warning and 20 errors generated.
│ │ [6/9] Compiling C++ object subprojects/flowy/libflowy.dylib.p/src_topography.cpp.o
│ │ FAILED: [code=1] subprojects/flowy/libflowy.dylib.p/src_topography.cpp.o
│ │ x86_64-apple-darwin13.4.0-clang++ -Isubprojects/flowy/libflowy.dylib.p -Isubprojects/flowy -I../subprojects/flowy -I../subprojects/flowy/thirdparty/tsl -Isubprojects/pdf_cpplib -I../subprojects/pdf_cpplib -I$PREFIX/include -I$BUILD_PREFIX/include -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O3 -g -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pyflowy-0.0.1 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D_FORTIFY_SOURCE=2 -isystem $PREFIX/include -mmacosx-version-min=10.13 -mmacosx-version-min=10.13 -Wno-unused-local-typedefs -Wno-array-bounds -ffast-math -fno-finite-math-only -fno-plt -Bsymbolic -DWITH_NETCDF -MD -MQ subprojects/flowy/libflowy.dylib.p/src_topography.cpp.o -MF subprojects/flowy/libflowy.dylib.p/src_topography.cpp.o.d -o subprojects/flowy/libflowy.dylib.p/src_topography.cpp.o -c ../subprojects/flowy/src/topography.cpp
│ │ In file included from ../subprojects/flowy/src/topography.cpp:3:
│ │ In file included from ../subprojects/flowy/flowy/include/topography.hpp:8:
│ │ $BUILD_PREFIX/include/xtensor/xsort.hpp:297:27: warning: unused parameter 'data_end' [-Wunused-parameter]
│ │ 297 | ConstRandomIt data_end,
│ │ | ^
│ │ In file included from ../subprojects/flowy/src/topography.cpp:4:
│ │ In file included from ../subprojects/flowy/flowy/include/asc_file.hpp:4:
│ │ ../subprojects/flowy/flowy/include/topography_file.hpp:33:65: error: 'path' is unavailable: introduced in macOS 10.15 unknown - see https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
│ │ 33 | std::filesystem::path handle_suffix( const std::filesystem::path & path_in )
│ │ | Upstream doesn't yet support macos either (officially, the pypi packages are not for macos either). For later. |
Hi! This is the friendly automated conda-forge-linting service. I failed to even lint the recipe, probably because of a conda-smithy bug 😢. This likely indicates a problem in your This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/16698483837. Examine the logs at this URL for more detail. |
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 ( |
@conda-forge/help-python-c, ready for review! |
@@ -0,0 +1,674 @@ | |||
GNU GENERAL PUBLIC LICENSE |
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 should remove this file since it is included in the source distribution and conda/rattler will pick it up from there.
tests: | ||
- python: | ||
imports: | ||
- pyflowy |
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 can remove the script
section below and just add
pip_check: true
. See:
https://rattler.build/latest/reference/recipe_file/#python-tests
context: | ||
name: pyflowy | ||
version: 0.0.1 | ||
build_num: 0 |
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.
Instead of using context
to set jinja variables for build_num
and shasum
, just set them explicitly below.
|
||
build: | ||
skip: | ||
- if: python < 3.9 |
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.
Technically you don't need to have the python < 3.9
check since conda-forge only builds packages for python >=3.9
- win | ||
- osx | ||
number: ${{ build_num }} | ||
string: h${{ hash }}_${{ build_num }} |
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.
Don't set the build string. That's created automatically.
- pybind11 >=2.12.0 | ||
- libnetcdf | ||
- hdf5 | ||
- ${{ pin_compatible('numpy') }} |
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 can just change this to numpy
. `pin_compatible is no longer needed:
https://conda-forge.org/docs/maintainer/knowledge_base/#building-against-numpy
I like to still include numpy
explicitly in run
, even though there is a run_exports
from the numpy package.
@@ -0,0 +1,5 @@ | |||
c_stdlib_version: |
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.
Unless there is a good reason to specify this, it is best to just use the conda-forge defaults. My suggestion would be to delete this file.
- numpy | ||
- libnetcdf | ||
- hdf5 | ||
- ${{ compiler('c') }} |
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.
compiler(...)
should go up in the build
section. I believe host
and build
should be reorganized. There's several things that should be in the build_platform != target_platform
section. The following recipe might be a good guide:
https://github.com/conda-forge/matplotlib-feedstock/blob/5da242b3aa49613299e2bc176011d22aac266bf3/recipe/meta.yaml
Checklist
url
) rather than a repo (e.g.git_url
) is used in your recipe (see here for more details).