-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathanaconda-project.yml
136 lines (129 loc) · 3.38 KB
/
anaconda-project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: pymbe
icon:
description: |
A pythonic Model-based Engineering analysis framework based on SysML v2.
variables:
MAX_LINE_LENGTH: 99
commands:
lab:
description: launch lab
env_spec: developer
unix: &lab jupyter lab --no-browser --debug
windows: *lab
setup:
description: setup development environment
env_spec: developer
unix: |
git submodule update --init
pip install -e . --no-dependencies
windows: |
git submodule update --init & pip install -e . --no-dependencies
lint:
description: lint the code
env_spec: developer
unix: |
isort .
black src/ tests/ -l {{MAX_LINE_LENGTH}}
flake8 src/
pylint src/ --rcfile=.pylintrc
windows: |
isort . & black src/ tests/ -l {{MAX_LINE_LENGTH}} & flake8 src/ & pylint src/ --rcfile=.pylintrc
package:
description: make a source distribution
env_spec: developer
unix: python setup.py sdist bdist_wheel
windows: python setup.py sdist bdist_wheel
test:
description: run the tests
env_spec: developer
unix: py.test tests/
windows: py.test tests/
download:fixtures:
description: update the test fixtures from the Intercax server
env_spec: developer
unix: python -m tests.fixtures.update
windows: python -m tests.fixtures.update
push:fixtures:
description: push the fixture data to the remote repo
env_spec: developer
unix: |
cd tests/fixtures
git add *.json
git commit -m "Updated test fixtures"
git push origin main
cd ..
git add fixtures
git commit -m "Pointing submodule to latest test fixtures"
git push origin main
cd ..
windows: cd tests\fixtures & git add *.json & git commit -m "Updated test fixtures" & git push origin main & cd .. & git add fixtures & git commit -m "Pointing submodule to latest test fixtures" & git push origin main & cd ..
push:package:check:
description: check package befor pushing to PyPI
env_spec: developer
unix: twine check dist/*
windows: twine check dist/*
push:package:pypi:
description: push package to PyPI
env_spec: developer
unix: twine upload dist/*
windows: twine upload dist/*
push:package:pypitest:
description: push package to PyPI test repository
env_spec: developer
unix: twine upload -r testpypi dist/*
windows: twine upload -r testpypi dist/* --verbose
notebooks/Tutorial.ipynb:
env_spec: user
notebook: notebooks/Tutorial.ipynb
vscode:
env_spec: developer
unix: code .
windows: code .
channels:
- conda-forge
- conda-forge/label/ipyelk_alpha # TODO: Remove this when ipyelk=2 is released
- nodefaults
platforms:
- linux-64
- osx-64
- win-64
env_specs:
user:
description: The environment for running the notebooks
packages:
- importnb
- ipyelk >=2.0.0a0,<3
- ipytree >=0.2.1,<1
- jupyterlab >=3.0,<4
- matplotlib
- networkx >=2.0,<3
- notebook
- numpy
- openmdao >=3.0,<4
- pyld
- rdflib
- rdflib-jsonld
- ruamel.yaml
- tabulate
- wxyz_html
- wxyz_lab
developer:
description: The environment for developing pymbe
inherit_from:
- user
packages:
- black
- coverage
- flake8
- git
- isort
- pip
- pylint
- pytest
- pytest-asyncio
- pytest-cov
- pytest-html
- pytest-xdist
- testbook
- twine >=3.0,<3.4
- wheel