Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Feb 2, 2020
0 parents commit d97d0fc
Show file tree
Hide file tree
Showing 9 changed files with 214 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
matrix:
include:
- name: linux_3_7
if: tag IS blank
os: linux
language: python
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- wget ${MINICONDA} -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- conda info -a
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -y -c conda-forge python=${PYTHONVER} constructor
script:
- mkdir build
- constructor -v --output-dir=build --platform="linux-64" constructor
- git tag 0.2.10
deploy:
- provider: releases
api_key: $GH_TOKEN
file: "build/pyiron-0.2.10_build-0.2.10-Linux-x86_64.sh"
skip_cleanup: true
on:
branch: master
- name: osx_3_7
if: tag IS blank
os: osx
language: generic
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh" PYTHONVER="3.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- wget ${MINICONDA} -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- conda info -a
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -y -c conda-forge python=${PYTHONVER} constructor
script:
- mkdir build
- constructor -v --output-dir=build --platform="osx-64" constructor
- git tag 0.2.10
deploy:
- provider: releases
api_key: $GH_TOKEN
file: "build/pyiron-0.2.10_build-0.2.10-MacOSX-x86_64.pkg"
skip_cleanup: true
on:
branch: master
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Installers for pyiron
[![Build status](https://ci.appveyor.com/api/projects/status/1ehgny8lg656oo38?svg=true)](https://ci.appveyor.com/project/pyiron-runner/pyiron-installer)
[![Build Status](https://travis-ci.org/pyiron/pyiron-installer.svg?branch=master)](https://travis-ci.org/pyiron/pyiron-installer)

https://github.com/pyiron/pyiron-installer/releases
67 changes: 67 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: 'cmd /E:ON /V:ON /C .\tools\appveyor\run_with_env.cmd'
PROJECT_NAME: pyiron

matrix:
- PYTHON_VERSION: 3.7
CONDA: C:\Miniconda37

version: '{build}'
image: Visual Studio 2015

# For testing only...
#skip_non_tags: true

platform:
- x64

init:
- ps: if ($Env:PLATFORM -eq "x64") { $Env:CONDA = "${Env:CONDA}-x64" }
- ps: Write-Host $Env:PYTHON_VERSION
- ps: Write-Host $Env:CONDA
- ps: Write-Host $Env:PLATFORM
- ps: Write-Host $Env:APPVEYOR_REPO_TAG
- ps: Write-Host $Env:APPVEYOR_REPO_TAG_NAME
- ps: Write-Host $Env:APPVEYOR_REPO_NAME

cache:
- "C:\\condacache\\pkgs"

install:
- appveyor DownloadFile https://repo.anaconda.com/pkgs/misc/conda-execs/conda-latest-win-64.exe -FileName loner_conda.exe
- set "CONDA_PKGS_DIRS=C:\condacache\pkgs"
- set "CONDA_ALWAYS_YES=true"
- set "CONDA_AUTO_UPDATE_CONDA=false"
- loner_conda.exe create -q -p C:\test_conda conda python=%PYTHON_VERSION% constructor
- call C:\test_conda\Scripts\activate
- "conda info -a"
- "conda config --set always_yes yes --set changeps1 no"
- "conda update -q conda"

build: false

test_script:
# Build the package
- call C:\test_conda\Scripts\activate
- "mkdir build"
- "constructor -v --output-dir=build --platform=win-64 constructor"

artifacts:
- path: build\pyiron-*.exe
name: pyiron

deploy:
release: 0.2.10
description: 'Release description'
provider: GitHub
auth_token:
secure: JqmWubnRscCGBr0sjFUQ/CfUIwx/f86OftpGrjS4iKsUsV7g2P+9F4F2zTq2YmXK
draft: false
prerelease: false
force_update: true
on:
branch: master
29 changes: 29 additions & 0 deletions constructor/EULA.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2018, Max-Planck-Institut fuer Eisenforschung GmbH - Computational Materials Design (CM) Department
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 changes: 39 additions & 0 deletions constructor/construct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: pyiron-0.2.10_build
version: 0.2.10

channels:
- https://conda.anaconda.org/conda-forge
- https://repo.anaconda.com/pkgs/main
- https://conda.anaconda.org/pyiron [win]

specs:
- python >=3.6
- conda
- notebook
- jupyterlab
- nodejs
- nglview =2.7.1
- pyiron =0.2.10
- lammps

post_install: post_build_win.bat [win]
post_install: post_build_linux.sh [linux]
post_install: post_build_mac.sh [osx]
ignore_duplicate_files: True
install_in_dependency_order: True
conda_default_channels:
- https://conda.anaconda.org/conda-forge
- https://repo.anaconda.com/pkgs/main
- https://conda.anaconda.org/pyiron [win]

license_file: EULA.txt

welcome_image: pyiron.png [win]

register_python_default: True [win]
initialize_by_default: True

# Linux and Windows are the defaults, but macOS uses pkg instead of sh
installer_type: sh [linux]
installer_type: pkg [osx]
installer_type: exe [win]
9 changes: 9 additions & 0 deletions constructor/post_build_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
export PATH=$PREFIX/bin:$PATH

# NGLview fixes
conda activate
jupyter nbextension install nglview --py --sys-prefix
jupyter nbextension enable nglview --py --sys-prefix
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install nglview-js-widgets
14 changes: 14 additions & 0 deletions constructor/post_build_mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# $2 is the install location, ($HOME by default)
if [ xxx$PREFIX == 'xxx' ]; then
PREFIX=$(echo "$2/__NAME_LOWER__" | sed -e 's,//,/,g')
fi
export PATH=$PREFIX/bin:$PATH

# NGLview fixes
conda activate
jupyter nbextension install nglview --py --sys-prefix
jupyter nbextension enable nglview --py --sys-prefix
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install nglview-js-widgets
1 change: 1 addition & 0 deletions constructor/post_build_win.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CALL "%PREFIX%\Scripts\activate.bat"&&"%PREFIX%\Scripts\jupyter" nbextension install nglview --py --sys-prefix&&"%PREFIX%\Scripts\jupyter" nbextension enable nglview --py --sys-prefix&&"%PREFIX%\Scripts\jupyter" labextension install nglview-js-widgets^@2.7.1 --no-build&&"%PREFIX%\Scripts\jupyter" labextension install ^@jupyter-widgets/jupyterlab-manager
Binary file added constructor/pyiron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d97d0fc

Please sign in to comment.