-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from bjodah/more-sym
Bump CI image, use sym
- Loading branch information
Showing
18 changed files
with
237 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.RxcFQnm0aBsJCz8bgQj_zrSLCFgkvwrGGlRu8aUH2J74zDsuaXZIpnhEgtpMv6RX_kqudaofSMe_euEl-c24By4N4QE1me7UpnPDRkuLYmWl8xl2Klot0rqXKNhZO7A0KQVWdtuVNPH8MxZUwjY18VkhAa1jJLuvTKIEaxzF-1WUMFbmVnhgFGOzkQJXZQDax8RP1cF-t6B7fXFUBkphjRlfSG1dEGhSqtFOeLv-TJ2pCNBbNQrfDbYxd8yVtHABvbzezpaVBZhc5AEUleNv7s7bmn2yXD-BsVPWSEF5ksLekXEgKft-DsyiU2bF1d2aSoixgWZ-DTqubMy65VjhTQ.y03vzHCHgFhpsVFy.p3tAhOXZ3rfxWInB3ajy0z9XP7XH-r54tSH7OXvG_9COIt-a4Ej_hal3Pb0EMNCintIvgsn44cfE_V-4YIhmp8Dhv6u9ZwSAVC_7OKt4wG6GTX2FF_gN6KU-BhSfnoBtJrq0P3T4wr1Gu_3dvZN9quURLY-4wd8E-svXTBetfqfJgMjCKys0q2MRCf51OJyOio4OPP98UcWnzi27.HP0QWTXM5o_2lVZ8UDqPDw | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.AhUu4693LswxH_s88tvpvB2V2z0ql2NWLzlyb9aybs8LEip3FjeGedMMK3uYSb_SoakPIgOeBqsfWVeXyQV9wV8lV2yv_8F2gNx9ccDtzoXzfkakUA3rEelEkpE9MdI2_GOnn4J3Y0niNiAUZLBRgrp2vQa3xOUKyM1cKAmYO-T7B380LG_weB2KfiOqLiTItCwloSZGpQ6tzQ_-3ola5OKdK5tNPZF7lyXCTahuCEuQFFrJ9IcGjq9yuJ3qG0uRSV9Lp7y2Toyiua35wBt8ZLjFTiONOvlSqNpA9oMM6I1QRr6XOB2KFRMt0HQKYHnXMY3hdA67O51A4bMNTqhw6w.1RlrqyEuqdjcKg9_.pUYfpYMfGl0UpYmZ0UuXbjvthQs13RQ7cHiK_TbN6eyuR49snGr-8rVxKTOZpbZp9LLa-GIhYGTIKNOjtUvSCm_wJFlSSZoikt78FdOmgKRfSZAzlJ6IoOv6-9fEKd48C9_grap7m1Dssjb6Z36HW8XK5t6MValR4Bfk1gQF1X2tPwaU8aPL7gsZ0HUjqxdPobgwVI6TP-6eAliJpZg.ECsKZKJClxiqVbXfpeKwhw |
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
Empty 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,3 +1,7 @@ | ||
unreleased | ||
========== | ||
- Rely on ``sym`` package. | ||
|
||
v0.4.2 | ||
====== | ||
- Support for chained solvers | ||
|
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,32 +1,46 @@ | ||
{% set name = "pyneqsys" %} | ||
{% set version = "0.5.0.git" %} | ||
|
||
package: | ||
name: pyneqsys | ||
version: 0.4.0.git | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
path: ../ | ||
git_url: ../ | ||
|
||
build: | ||
number: 0 | ||
script: python setup.py install --single-version-externally-managed --record record.txt | ||
|
||
requirements: | ||
build: | ||
- python | ||
- numpy | ||
- setuptools | ||
run: | ||
- python | ||
- numpy | ||
- sympy | ||
- scipy | ||
- pyodesys | ||
- sym | ||
- sympy | ||
- symcxx | ||
- python-symengine | ||
- pysym | ||
|
||
test: | ||
imports: | ||
- pyneqsys | ||
- {{ name }} | ||
requires: | ||
- nose | ||
- pytest | ||
commands: | ||
- nosetests pyneqsys | ||
- pytest --pyargs {{ name }} | ||
|
||
about: | ||
home: https://github.com/bjodah/pyneqsys | ||
license: BSD | ||
home: https://github.com/bjodah/{{ name }} | ||
license: BSD 2-Clause | ||
license_file: LICENSE | ||
summary: 'Solve symbolically defined systems of non-linear equations numerically.' | ||
doc_url: https://bjodah.github.io/{{ name }}/latest | ||
|
||
extra: | ||
recipe-maintainers: | ||
- bjodah |
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 +1 @@ | ||
__version__ = '0.4.0.git' | ||
__version__ = '0.5.0.git' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,51 @@ | ||
#!/bin/bash -xe | ||
#!/bin/bash -xeu | ||
# Usage: | ||
# | ||
# $ ./scripts/release.sh v1.2.3 ~/anaconda2/bin | ||
# $ ./scripts/release.sh v1.2.3 ~/anaconda2/bin upstream | ||
# $ ./scripts/release.sh v1.2.3 ~/anaconda2/bin myserver.example.com GITHUB_USER GITHUB_REPO | ||
# | ||
|
||
if [[ $1 != v* ]]; then | ||
echo "Argument does not start with 'v'" | ||
exit 1 | ||
fi | ||
if [[ $# == 3 ]]; then | ||
REMOTE=origin | ||
else | ||
REMOTE=$4 | ||
fi | ||
VERSION=${1#v} | ||
CONDA_PATH=$2 | ||
SERVER=$3 | ||
find . -type f -iname "*.pyc" -exec rm {} + | ||
find . -type f -iname "*.o" -exec rm {} + | ||
find . -type f -iname "*.so" -exec rm {} + | ||
find . -type d -name "__pycache__" -exec rmdir {} + | ||
./scripts/check_clean_repo_on_master.sh | ||
cd $(dirname $0)/.. | ||
# PKG will be name of the directory one level up containing "__init__.py" | ||
PKG=$(find . -maxdepth 2 -name __init__.py -print0 | xargs -0 -n1 dirname | xargs basename) | ||
! grep --include "*.py" "will_be_missing_in='$VERSION'" -R $PKG/ # see deprecation() | ||
PKG_UPPER=$(echo $PKG | tr '[:lower:]' '[:upper:]') | ||
./scripts/run_tests.sh | ||
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python setup.py sdist | ||
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION ./scripts/generate_docs.sh | ||
if [[ -e ./scripts/generate_docs.sh ]]; then | ||
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION ./scripts/generate_docs.sh # $4 ${5:-$PKG} v$VERSION | ||
fi | ||
for CONDA_PY in 2.7 3.4 3.5; do | ||
PATH=$2:$PATH ./scripts/build_conda_recipe.sh v$VERSION --python $CONDA_PY | ||
for CONDA_NPY in 1.11; do | ||
continue # we build the conda recipe on another host for now.. | ||
PATH=$CONDA_PATH:$PATH ./scripts/build_conda_recipe.sh v$VERSION --python $CONDA_PY --numpy $CONDA_NPY | ||
done | ||
done | ||
|
||
# All went well | ||
# All went well, add a tag and push it. | ||
git tag -a v$VERSION -m v$VERSION | ||
git push $REMOTE | ||
git push $REMOTE --tags | ||
git push | ||
git push --tags | ||
twine upload dist/${PKG}-$VERSION.tar.gz | ||
|
||
echo "Create a new release on github (with custom .tar.gz), then run ./scripts/post_release.sh ..." | ||
set +x | ||
echo "" | ||
echo " You may now create a new github release at with the tag \"v$VERSION\", here is a link:" | ||
echo " https://github.com/$4/${5:-$PKG}/releases/new " | ||
echo " name the release \"${PKG}-${VERSION}\", and don't foreget to manually attach the file:" | ||
echo " $(openssl sha256 $(pwd)/dist/${PKG}-${VERSION}.tar.gz)" | ||
echo " Then run:" | ||
echo "" | ||
echo " $ ./scripts/post_release.sh $1 $SERVER $4" | ||
echo "" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -e | ||
cd examples/ | ||
jupyter nbconvert --debug --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300 *.ipynb | ||
../scripts/render_index.sh *.html |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/bash -x | ||
# | ||
# Usage: | ||
# | ||
# $ ./scripts/update-gh-pages.sh v0.6.0 origin | ||
# | ||
|
||
tag=${1:-master} | ||
remote=${2:-origin} | ||
|
||
ori_branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | ||
tmpdir=$(mktemp -d) | ||
cleanup() { | ||
rm -r $tmpdir | ||
} | ||
trap cleanup INT TERM | ||
|
||
cp -r doc/_build/html/ $tmpdir | ||
git ls-files --others | tar cf $tmpdir/untracked.tar -T - | ||
if [[ -d .gh-pages-skeleton ]]; then | ||
cp -r .gh-pages-skeleton $tmpdir | ||
fi | ||
|
||
git checkout gh-pages | ||
if [[ $? -ne 0 ]]; then | ||
git checkout --orphan gh-pages | ||
if [[ $? -ne 0 ]]; then | ||
>&2 echo "Failed to switch to 'gh-pages' branch." | ||
cleanup | ||
exit 1 | ||
fi | ||
preexisting=0 | ||
else | ||
preexisting=1 | ||
fi | ||
|
||
if [[ $preexisting == 1 ]]; then | ||
while [[ "$(git log -1 --pretty=%B)" == Volatile* ]]; do | ||
# overwrite previous docs | ||
git reset --hard HEAD~1 | ||
done | ||
fi | ||
|
||
shopt -s extglob | ||
git clean -xfd | ||
if [[ $preexisting == 1 ]]; then | ||
git rm -rf !(v*) > /dev/null | ||
fi | ||
cp -r $tmpdir/html/ $tag | ||
if [[ -d $tmpdir/.gh-pages-skeleton ]]; then | ||
cp -r $tmpdir/.gh-pages-skeleton/. . | ||
fi | ||
if [[ "$tag" == v* ]]; then | ||
ln -s $tag latest | ||
commit_msg="Release docs for $tag" | ||
else | ||
if [[ $preexisting == 1 ]]; then | ||
commit_msg="Volatile ($tag) docs" | ||
else | ||
commit_msg="Initial commit" | ||
fi | ||
fi | ||
git add -f . >/dev/null | ||
git commit -m "$commit_msg" | ||
if [[ $preexisting == 1 ]]; then | ||
git push -f $remote gh-pages | ||
else | ||
git push --set-upstream $remote gh-pages | ||
fi | ||
git checkout $ori_branch | ||
tar xf $tmpdir/untracked.tar | ||
cleanup |
Oops, something went wrong.