-
Notifications
You must be signed in to change notification settings - Fork 49
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
Create recipe.yaml for simplejson #458
base: main
Are you sure you want to change the base?
Conversation
Looking at the CI logs it doesn't look like anything is being built:
|
version: "{{ version }}" | ||
|
||
build: | ||
number: 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.
since there are some C part to this library:
https://github.com/simplejson/simplejson/blob/master/simplejson/_speedups.c
shouldn't we also add {{ compiler('c') }}
as a build requirement (see https://github.com/conda-forge/simplejson-feedstock/blob/main/recipe/meta.yaml#LL23C7-L23C26) or disable the speed ups with REQUIRE_SPEEDUPS
to make it pure 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.
@proppy absolutely correct!
|
||
build: | ||
number: 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.
should we also get the test
from the original conda-forge recipe? https://github.com/conda-forge/simplejson-feedstock/blob/main/recipe/meta.yaml#L30-L38
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 need to add such tests in the form of a test_simplejson.py
/ test_<some_name>
.py and test the imports there.
ie:
def test_imports():
import simplejson
import simplejson._speedups
|
||
source: | ||
- url: https://files.pythonhosted.org/packages/c0/5c/61e2afbe62bbe2e328d4d1f426f6e39052b73eddca23b5ba524026561250/simplejson-{{ version }}.tar.gz | ||
sha256: 6277f60848a7d8319d27d2be767a7546bc965535b28070e310b3a9af90604a4c |
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.
missing about
with license
section, see: https://github.com/conda-forge/simplejson-feedstock/blob/main/recipe/meta.yaml#L40-L53
|
||
source: | ||
- url: https://files.pythonhosted.org/packages/c0/5c/61e2afbe62bbe2e328d4d1f426f6e39052b73eddca23b5ba524026561250/simplejson-{{ version }}.tar.gz | ||
sha256: 6277f60848a7d8319d27d2be767a7546bc965535b28070e310b3a9af90604a4c |
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.
missing about
with license
section, see: https://github.com/conda-forge/simplejson-feedstock/blob/main/recipe/meta.yaml#L40-L53
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.
tests should be added
This should fix #456