Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions recipes/sans-fitter/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
schema_version: 1

context:
version: "0.2.2"
python_min: "3.12"

package:
name: sans-fitter
version: ${{ version }}

source:
url: https://pypi.org/packages/source/s/sans-fitter/sans_fitter-${{ version }}.tar.gz
sha256: 9646566d1ce8dd03d1437a87a24c8b12d084135a6c225fd7fc96d61c33171da3

build:
number: 0
noarch: python
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

requirements:
host:
- python ${{ python_min }}.*
- setuptools >=61.0
- wheel
- pip
run:
- python >=${{ python_min }}
- numpy >=1.20
- plotly >=5.0
- scipy >=1.7
- sasmodels >=1.0
- sasdata >=0.8
- bumps >=0.9
- jupyter >=1.0
- notebook >=7.0
- ipykernel >=6.0
- ipywidgets >=8.0
- columnize

tests:
- python:
imports:
- sans_fitter
pip_check: false # sasmodels 1.1.0 has unresolved tccbox metadata

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We need to fix this in statsmodel first.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for the review @ocefpaf! I'm trying to get this fixed upstream first SasView/sasmodels#752 but it will probably take some time going through the stack and a release. Is it possible to get it on conda-forge and then I can update the feedstock with the pip check with the new release?

PS: no 't', sasmodels :D

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See conda-forge/sasmodels-feedstock#20 for the fix. Can you mark the build number 0 as broken?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated this recipe to do a pip check and it's happy, thanks!

python_version:
- ${{ python_min }}.*
- "*"

about:
summary: A flexible template for fitting SANS data with SasModels
license: BSD-3-Clause
license_file: LICENSE
homepage: https://pypi.org/project/sans-fitter/
Comment thread
MridulS marked this conversation as resolved.
Outdated

extra:
recipe-maintainers:
- MridulS
Loading