-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:fusion-energy/paramak into develop
- Loading branch information
Showing
45 changed files
with
249 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,3 @@ jobs: | |
- name: run tests | ||
run: | | ||
bash run_tests.sh | ||
curl -s https://codecov.io/bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
|
||
#assumes anaconda-client and conda-build have been installed | ||
# conda install anaconda-client | ||
# conda install conda-build | ||
# conda install -y anaconda-client | ||
# conda install -y conda-build | ||
# anaconda login | ||
|
||
pkg='paramak' | ||
array=( 3.6 3.7 3.8 ) | ||
|
||
rm -rf /tmp/conda-build | ||
mkdir -p /tmp/conda-build | ||
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 | ||
|
||
|
||
find /tmp/conda-build/ -name *.tar.bz2 | while read file | ||
do | ||
echo $file | ||
anaconda upload $file | ||
done | ||
|
||
# VERSION=$(echo $GITHUB_REF | sed 's#.*/v##') | ||
VERSION=0.3.2 | ||
PLACEHOLDER='version="develop"' | ||
VERSION_FILE='setup.py' | ||
# Grep checks that the placeholder is in the file. If grep doesn't find | ||
# the placeholder then it exits with exit code 1 and github actions fails. | ||
grep "$PLACEHOLDER" "$VERSION_FILE" | ||
sed -i "s/$PLACEHOLDER/version=\"${VERSION}\"/g" "$VERSION_FILE" | ||
|
||
conda-build conda/ -c cadquery -c conda-forge --croot /tmp/conda-build | ||
|
||
# converting using all includes quite a few oxs and linux versions (arm arch etc) | ||
# conda convert /tmp/conda-build/linux-64/*.tar.bz2 --platform all -o /tmp/conda-build | ||
|
||
# option for converting package to specified platforms | ||
# platforms=( osx-64 linux-32 linux-64 win-32 win-64 ) | ||
# find /tmp/conda-build/linux-64/ -name *.tar.bz2 | while read file | ||
# do | ||
# echo $file | ||
# for platform in "${platforms[@]}" | ||
# do | ||
# conda convert --platform $platform $file -o /tmp/conda-build/ | ||
# done | ||
# done | ||
|
||
anaconda upload -f /tmp/conda-build/*/*.tar.bz2 | ||
|
||
sed -i "s/version=\"${VERSION}\"/$PLACEHOLDER/g" "$VERSION_FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
python: | ||
- 3.8 | ||
- 3.7 | ||
- 3.6 | ||
cadquery: | ||
- 2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.