Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
*~
*.bak
output-is-fine

# pixi environments
.pixi
*.egg-info
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dist: html
rm build/dist/search.html
rm build/dist/searchindex.js
cd build/dist && tar czf ../dist.tar.gz *
chmod ug=rwX,o=rX -R build/dist
chmod -R ug=rwX,o=rX build/dist
find build/dist -type d -print0 | xargs -0r chmod g+s

upload:
Expand Down Expand Up @@ -90,3 +90,6 @@ linkcheck:
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in build/linkcheck/output.txt."

show:
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/html/index.html')"
7 changes: 4 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

import os
import re
import pkg_resources
from datetime import date

import packaging

# -- General configuration -----------------------------------------------------

extensions = []

templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = ['scipy-sphinx-theme', 'README.rst']
exclude_patterns = ['scipy-sphinx-theme', 'README.rst', '.pixi/*']

# General information about the project.
project = u'Numpy and Scipy documentation'
Expand All @@ -27,7 +28,7 @@
index_text = f.read()

scipy_versions = set(re.findall('scipy-([0-9.]{3,})', index_text))
scipy_latest_version = str(max(pkg_resources.parse_version(x) for x in scipy_versions if not x.startswith('0.')))
scipy_latest_version = str(max(packaging.version.parse(x) for x in scipy_versions if not x.startswith('0.')))
numpy_latest_version = '> 1.17'

# -- Options for HTML output ---------------------------------------------------
Expand Down
Loading