Commit 2c6a4cd6 authored by Duncan Macleod's avatar Duncan Macleod

docs: use tabulate instead of astropy

its much smaller and doesn't require a compiler, which is nice
parent 56cb57aa
Pipeline #47552 failed with stages
in 27 minutes and 2 seconds
......@@ -56,7 +56,7 @@ docs:
- mkdir -pv ${CONDA_BASE}
- docker save ${TAG} | tar -x -C ${CONDA_BASE}
script:
- python3 -m pip install -r docs/requirements.txt --user
- python3 -m pip install -r docs/requirements.txt
- cd docs
- source ${CONDA_BASE}/etc/profile.d/conda.sh
- python3 -m sphinx -M html . ../build/sphinx
......
pyyaml
sphinx
sphinx_rtd_theme
astropy
pyyaml
sphinxcontrib-programoutput
tabulate
......@@ -11,7 +11,7 @@ from subprocess import check_output
import yaml
from astropy.table import Table
from tabulate import tabulate
ANACONDA_CHANNELS = {
"pkgs/free",
......@@ -99,5 +99,11 @@ def write_environment(env, file=None):
pkg['build_string'],
pkg['channel'],
))
tab = Table(rows=rows, names=('Name', 'Version', 'Build', 'Channel'))
tab.write(file, format='ascii.rst')
print(
tabulate(
rows,
headers=('Name', 'Version', 'Build', 'Channel'),
tablefmt="rst",
),
file=file,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment