diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 000000000..c9ff576e7 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,70 @@ +{% set name = "paramak" %} +{% set version = "0.2.3" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + path: .. + +build: + number: 0 + script: python setup.py install --single-version-externally-managed --record=record.txt + +requirements: + host: + - matplotlib + - mpmath + - numpy + - pip + - plasmaboundaries + - plotly + - pytest-cov + - python + - scipy + - sympy + - cadquery + - neutronics_material_maker + run: + - matplotlib + - mpmath + - numpy + - plasmaboundaries + - plotly + - pytest-cov + - python + - scipy + - sympy + - cadquery + - neutronics_material_maker + +test: + imports: + - paramak + - paramak.parametric_components + - paramak.parametric_reactors + - paramak.parametric_shapes + - tests + requires: + - pytest-cov + - pytest-runner + source_files: + - tests/ + - examples/ + commands: + - pytest -v + +about: + home: "https://github.com/ukaea/paramak" + license: MIT + license_family: MIT + license_file: LICENSE.txt + summary: "Create 3D fusion reactor CAD models based on input parameters" + doc_url: https://paramak.readthedocs.io/ + dev_url: https://github.com/ukaea/paramak + summary: Paramak - parameter driven fusion reactor model creation + +extra: + recipe-maintainers: + - shimwell diff --git a/conda_build.sh b/conda_build.sh new file mode 100644 index 000000000..a2a0058ae --- /dev/null +++ b/conda_build.sh @@ -0,0 +1,33 @@ + +pkg='paramak' +array=( 3.6 3.7 3.8 ) + +rm -rf /tmp/conda-build + +for i in "${array[@]}" +do + conda-build conda/ -c cadquery -c conda-forge --croot /tmp/conda-build --python $i + # conda build conda/meta.yaml -c cadquery -c conda-forge --croot /tmp/cbld +done + + +# # convert package to other platforms +platforms=( osx-64 linux-32 linux-64 win-32 win-64 ) +platforms=( linux-64 ) +find /tmp/conda-build/linux-64/ -name *.tar.bz2 | while read file +do + echo $file + #conda convert --platform all $file -o $HOME/conda-bld/ + for platform in "${platforms[@]}" + do + conda convert --platform $platform $file -o /tmp/conda-build/ + done +done + +# conda install anaconda-client + +# find /tmp/conda-build/ -name *.tar.bz2 | while read file +# do +# echo $file +# anaconda upload $file +# done