-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In preparation to migrate parts of pyiron_mpie to pyiron_contrib we should implement the same setup scripts we use for pyiron.
- Loading branch information
1 parent
acb479c
commit 2b7d358
Showing
10 changed files
with
2,519 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- ase =3.19 | ||
- coveralls | ||
- coverage | ||
- codacy-coverage | ||
- matplotlib | ||
- numpy | ||
- pyiron =0.3.6 | ||
- scipy | ||
- seaborn | ||
- skimage |
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,19 @@ | ||
import os | ||
|
||
|
||
def main(): | ||
current_path = os.path.abspath(os.path.curdir) | ||
top_level_path = current_path.replace('\\', '/') | ||
resource_path = os.path.join(current_path, "tests", "static").replace('\\', '/') | ||
pyiron_config = os.path.expanduser('~/.pyiron').replace('\\', '/') | ||
if not os.path.exists(pyiron_config): | ||
with open(pyiron_config, 'w') as f: | ||
f.writelines(['[DEFAULT]\n', | ||
'TOP_LEVEL_DIRS = ' + top_level_path + '\n', | ||
'RESOURCE_PATHS = ' + resource_path + '\n']) | ||
else: | ||
print('config exists') | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,11 @@ | ||
#!/bin/bash | ||
# Setup Miniconda | ||
wget ${1} -O miniconda.sh | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
conda info -a | ||
conda config --set always_yes yes --set changeps1 no | ||
|
||
# Setup pyiron | ||
conda install python=${2} | ||
conda env update --name root --file .ci_support/environment.yml | ||
pip install --pre . |
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,31 @@ | ||
matrix: | ||
include: | ||
- stage: test | ||
name: test_linux_3_7 | ||
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" | ||
- ./.ci_support/travis_setup_pyiron.sh ${MINICONDA} ${PYTHONVER} | ||
- python .ci_support/pyironconfig.py | ||
script: | ||
- coverage run -m unittest discover tests | ||
- coverage combine | ||
after_success: | ||
- coveralls | ||
- coverage xml | ||
- python-codacy-coverage -r coverage.xml | ||
deploy: | ||
- provider: pypi | ||
user: pyiron | ||
password: ${PYPI_UPLOAD_TOKEN} | ||
allow_failure: true | ||
on: | ||
branch: master | ||
- provider: pypi | ||
user: pyiron | ||
password: ${PYPI_UPLOAD_TOKEN} | ||
allow_failure: true | ||
on: | ||
tags: true |
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,3 @@ | ||
include versioneer.py | ||
include pyiron_contrib/_version.py | ||
include LICENSE |
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.