-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathanaconda-project.yml
149 lines (121 loc) · 4.09 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
137
138
139
140
141
142
143
144
145
146
147
148
149
###############################################################################
# AE5 Tools
###############################################################################
name: ae5-tools
description: Command-line manipulation of Anaconda Enterprise 5.
###############################################################################
## Variables
###############################################################################
variables: {}
###############################################################################
# Commands
###############################################################################
commands:
# Run Time Commands #########################################################
default:
env_spec: k8s_server
unix: python -m ae5_tools.k8s.server
# Development Time Commands #################################################
bash:
env_spec: default
unix: |
bash
clean:
env_spec: default
unix: |
rm -rf .coverage htmlcov coverage.xml build docs/build .pytest_cache tests/system/.pytest_cache test_upload1-1.2.3.tar.gz test_upload2-1.3.4.tar.gz testproj3.tar.gz system-test-state.json
lint:
env_spec: default
unix: |
pylint ae5_tools
isort --check --diff .
black --check --diff .
lint:fix:
env_spec: default
unix: |
isort .
black .
# Test Commands #############################################################
test:
env_spec: default
unix: |
anaconda-project run clean
anaconda-project run test:unit
anaconda-project run test:integration
test:unit:
env_spec: default
unix: py.test --cov=ae5_tools -v tests/unit --cov-append --cov-report=xml -vv
test:integration:
env_spec: default
unix: py.test --cov=ae5_tools -v tests/integration --cov-append --cov-report=xml -vv
test:integration:slipstream:
env_spec: default
unix: |
conda install build/noarch/ae5-tools-*.tar.bz2
py.test --cov=ae5_tools -v tests/integration --cov-append --cov-report=xml -vv
# Documentation Commands ####################################################
build:apidocs:
env_spec: documentation
unix: |
sphinx-apidoc -f -o docs/source/ae5_tools ae5_tools
build:docs:
env_spec: documentation
unix: |
rm -rf docs/build
cd docs && make clean && make html
###############################################################################
# Channels
###############################################################################
channels:
- defaults
- conda-forge
###############################################################################
# Platforms
###############################################################################
platforms:
- linux-64
- osx-64
- osx-arm64
- win-64
###############################################################################
# Environment Definitions
###############################################################################
env_specs:
default:
description: Default environment spec for running commands
packages:
# Python Version Selection
- defaults:python>=3.11.0,<3.12.0
# Project Dependencies
- defaults:python-dateutil>=2.7
- defaults:click>7
- defaults:click-repl
- defaults:requests
- defaults:aiohttp # (k8s server code base)
- defaults:pandas
# Project Maintenance, Development, and Testing
- defaults:anaconda-project
- defaults:isort
- defaults:pylint
- defaults:black
- defaults:pytest
- defaults:pytest-cov
- defaults:python-dotenv
documentation:
description: Environment for building documentation
packages:
# Python Version Selection
- defaults:python>=3.11.0,<3.12.0
# Documentation
- conda-forge:sphinx
- conda-forge:sphinx-rtd-theme
- conda-forge:myst-parser
k8s_server:
description: Default environment spec for k8s server
packages:
# Python Version Selection
- defaults:python>=3.11.0,<3.12.0
# Project Dependencies
- defaults:python-dateutil
- defaults:requests
- defaults:aiohttp