GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Slycot/.github/scripts/set-conda-test-matrix.py at master · python-control/Slycot

Expand file tree

/

set-conda-test-matrix.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (29 loc) · 1021 Bytes
/

set-conda-test-matrix.py

Copy path

File metadata and controls

35 lines (29 loc) · 1021 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
""" set-conda-test-matrix.py
Create test matrix for conda packages
"""
import json, re
from pathlib import Path
osmap = {'linux': 'ubuntu',
'osx': 'macos',
'win': 'windows',
}
combinations = {'ubuntu': ['unset', 'Generic', 'OpenBLAS', 'Intel10_64lp'],
'macos': ['unset', 'Generic', 'OpenBLAS'],
'windows': ['unset', 'Intel10_64lp'],
}
conda_jobs = []
for conda_pkg_file in Path("slycot-conda-pkgs").glob("*/*.conda"):
cos = osmap[conda_pkg_file.parent.name.split("-")[0]]
m = re.search(r'py(\d)(\d+)_', conda_pkg_file.name)
pymajor, pyminor = int(m[1]), int(m[2])
cpy = f'{pymajor}.{pyminor}'
for cbl in combinations[cos]:
cjob = {'packagekey': f'{cos}-{cpy}',
'os': cos,
'python': cpy,
'blas_lib': cbl}
conda_jobs.append(cjob)
if not conda_jobs:
raise SystemExit("No conda packages found")
matrix = { 'include': conda_jobs }
print(json.dumps(matrix))
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.