Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
70 changes: 70 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions conda_build.sh
Original file line number Diff line number Diff line change
@@ -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