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 — pymor/Makefile at main · pymor/pymor

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
208 lines (162 loc) · 8.05 KB
/

Makefile

Copy path

File metadata and controls

208 lines (162 loc) · 8.05 KB
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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
DOCKER ?= docker
THIS_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
CI_CURRENT_IMAGE_TAG := $(shell cat $(THIS_DIR)/docker/Dockerfile.ci-current $(THIS_DIR)/requirements-ci-current.txt | sha256sum | cut -d " " -f 1)
CI_OLDEST_IMAGE_TAG := $(shell cat $(THIS_DIR)/docker/Dockerfile.ci-oldest $(THIS_DIR)/requirements-ci-oldest.txt | sha256sum | cut -d " " -f 1)
CI_FENICS_IMAGE_TAG := $(shell cat $(THIS_DIR)/docker/Dockerfile.ci-fenics $(THIS_DIR)/requirements-ci-fenics.txt | sha256sum | cut -d " " -f 1)
CI_FENICSX_IMAGE_TAG := $(shell cat $(THIS_DIR)/docker/Dockerfile.ci-fenicsx $(THIS_DIR)/requirements-ci-fenicsx.txt | sha256sum | cut -d " " -f 1)
CI_CURRENT_IMAGE_TARGET_TAG := $(or $(TARGET_TAG),$(CI_CURRENT_IMAGE_TAG))
CI_OLDEST_IMAGE_TARGET_TAG := $(or $(TARGET_TAG),$(CI_OLDEST_IMAGE_TAG))
CI_FENICS_IMAGE_TARGET_TAG := $(or $(TARGET_TAG),$(CI_FENICS_IMAGE_TAG))
CI_FENICSX_IMAGE_TARGET_TAG := $(or $(TARGET_TAG),$(CI_FENICSX_IMAGE_TAG))
CI_PREFLIGHT_IMAGE_TARGET_TAG := $(or $(TARGET_TAG),latest)
PANDOC_MAJOR=$(shell ( which pandoc && pandoc --version | head -n1 | cut -d ' ' -f 2 | cut -d '.' -f 1)) || echo "pandoc missing")
ifeq ($(PANDOC_MAJOR),1)
PANDOC_FORMAT=-f markdown_github
endif
.PHONY: README test docs help
# The following self-documenting help target is inspired by https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html.
help: ## print this help prompt
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-30s %s\n", $$1, $$2}'
README.html: README.md
pandoc $(PANDOC_FORMAT) -t html $< > $@
README: README.html ## convert README.md to other formats
test: ## run tests
xvfb-run pytest
docs: ## build the docs
PYTHONPATH=${PWD}/src/:${PYTHONPATH} python ./docs/generate_demo_docs.py
PYTHONPATH=${PWD}/src/:${PYTHONPATH} make -C docs html
./docs/fix_myst_in_notebooks.sh
ci_preflight_image: ## build CI image used in preflight stage
$(DOCKER) build -t pymor/ci-preflight -f $(THIS_DIR)/docker/Dockerfile.ci-preflight $(THIS_DIR)
CI_EXTRAS= \
--extra dev \
--extra ann \
--extra slycot \
--extra ipyparallel \
--extra mpi \
--extra gui \
--extra jupyter \
--extra vtk \
--extra gmsh \
--extra ngsolve \
--extra scikit-fem \
--extra scikit-learn
ci_current_requirements:
uv pip compile \
$(CI_EXTRAS) \
--extra docs-additional \
--python-version 3.14 \
--python-platform x86_64-manylinux_2_31 \
--extra-index-url https://download.pytorch.org/whl/cpu \
--index-strategy unsafe-best-match \
--emit-index-url \
-o requirements-ci-current.txt \
./pyproject.toml
ci_oldest_requirements:
uv pip compile \
$(CI_EXTRAS) \
--python-version 3.12 \
--python-platform x86_64-manylinux_2_31 \
--extra-index-url https://download.pytorch.org/whl/cpu \
--index-strategy unsafe-best-match \
--emit-index-url \
-o requirements-ci-oldest.txt \
./pyproject.toml ./requirements-ci-oldest-pins.in
ci_fenics_requirements:
uv pip compile \
--extra docs_additional \
--extra dev \
--extra ann \
--extra ipyparallel \
--extra scikit-learn \
--python-version 3.12 \
--python-platform x86_64-manylinux_2_31 \
--extra-index-url https://download.pytorch.org/whl/cpu \
--index-strategy unsafe-best-match \
--emit-index-url \
-o requirements-ci-fenics.txt \
./pyproject.toml ./requirements-ci-fenics-pins.in
ci_fenicsx_requirements:
uv pip compile \
--extra docs_additional \
--extra dev \
--extra ann \
--extra ipyparallel \
--extra mpi \
--python-version 3.12 \
--python-platform x86_64-manylinux_2_31 \
--extra-index-url https://download.pytorch.org/whl/cpu \
--index-strategy unsafe-best-match \
--emit-index-url \
-o requirements-ci-fenicsx.txt \
./pyproject.toml
CONDA_EXTRAS = \
--extras dev \
--extras ci-conda \
--extras slycot \
--extras ipyparallel \
--extras gui \
--extras jupyter \
--extras vtk
# ngsolve, scikit-fem (no recent version) not available as conda-forge packages
# pytorch not available for win64
# docs-additional not needed
# gmsh is incompatible with pyside6>=6.4.3 needed for windows ci not to hang
# mpi segfaults on windows
ci_conda_requirements:
conda-lock --micromamba -c conda-forge --filter-extras $(CONDA_EXTRAS) -f conda-base.yml -f pyproject.toml
conda-lock render $(CONDA_EXTRAS)
ci_requirements: ci_current_requirements ci_oldest_requirements ci_fenics_requirements ci_fenicsx_requirements ci_conda_requirements ## build the CI requirement files
ci_current_image:
$(DOCKER) build -t pymor/ci-current:$(CI_CURRENT_IMAGE_TAG) -f $(THIS_DIR)/docker/Dockerfile.ci-current $(THIS_DIR)
ci_oldest_image:
$(DOCKER) build -t pymor/ci-oldest:$(CI_OLDEST_IMAGE_TAG) -f $(THIS_DIR)/docker/Dockerfile.ci-oldest $(THIS_DIR)
ci_fenics_image:
$(DOCKER) build -t pymor/ci-fenics:$(CI_FENICS_IMAGE_TAG) -f $(THIS_DIR)/docker/Dockerfile.ci-fenics $(THIS_DIR)
ci_fenicsx_image:
$(DOCKER) build -t pymor/ci-fenicsx:$(CI_FENICSX_IMAGE_TAG) -f $(THIS_DIR)/docker/Dockerfile.ci-fenicsx $(THIS_DIR)
ci_images: ci_current_image ci_oldest_image ci_fenics_image ci_fenicsx_image ## build the Docker CI images
ci_current_image_pull: ## pull 'current' CI image from zivgitlab.wwu.io
$(DOCKER) pull zivgitlab.wwu.io/pymor/pymor/ci-current:$(CI_CURRENT_IMAGE_TAG)
ci_oldest_image_pull: ## pull 'oldest' CI image from zivgitlab.wwu.io
$(DOCKER) pull zivgitlab.wwu.io/pymor/pymor/ci-oldest:$(CI_OLDEST_IMAGE_TAG)
ci_fenics_image_pull: ## pull 'fenics' CI image from zivgitlab.wwu.io
$(DOCKER) pull zivgitlab.wwu.io/pymor/pymor/ci-fenics:$(CI_FENICS_IMAGE_TAG)
ci_fenicsx_image_pull: ## pull 'fenicsx' CI image from zivgitlab.wwu.io
$(DOCKER) pull zivgitlab.wwu.io/pymor/pymor/ci-fenicsx:$(CI_FENICSX_IMAGE_TAG)
ci_images_pull: ci_current_image_pull ci_oldest_image_pull ci_fenics_image_pull ci_fenicsx_image_pull ## pull all CI images from zivgitlab.wwu.io
ci_current_image_push:
$(DOCKER) login $(DOCKER_LOGIN_ARGS) zivgitlab.wwu.io
$(DOCKER) push pymor/ci-current:$(CI_CURRENT_IMAGE_TAG) \
zivgitlab.wwu.io/pymor/pymor/ci-current:$(CI_CURRENT_IMAGE_TARGET_TAG)
ci_oldest_image_push:
$(DOCKER) login $(DOCKER_LOGIN_ARGS) zivgitlab.wwu.io
$(DOCKER) push pymor/ci-oldest:$(CI_OLDEST_IMAGE_TAG) \
zivgitlab.wwu.io/pymor/pymor/ci-oldest:$(CI_OLDEST_IMAGE_TARGET_TAG)
ci_fenics_image_push:
$(DOCKER) login $(DOCKER_LOGIN_ARGS) zivgitlab.wwu.io
$(DOCKER) push pymor/ci-fenics:$(CI_FENICS_IMAGE_TAG) \
zivgitlab.wwu.io/pymor/pymor/ci-fenics:$(CI_FENICS_IMAGE_TARGET_TAG)
ci_fenicsx_image_push:
$(DOCKER) login $(DOCKER_LOGIN_ARGS) zivgitlab.wwu.io
$(DOCKER) push pymor/ci-fenicsx:$(CI_FENICSX_IMAGE_TAG) \
zivgitlab.wwu.io/pymor/pymor/ci-fenicsx:$(CI_FENICSX_IMAGE_TARGET_TAG)
ci_preflight_image_push:
$(DOCKER) login $(DOCKER_LOGIN_ARGS) zivgitlab.wwu.io
$(DOCKER) push pymor/ci-preflight \
zivgitlab.wwu.io/pymor/pymor/ci-preflight
ci_images_push: ci_current_image_push ci_oldest_image_push ci_fenics_image_push ci_fenicsx_image_push ## push the CI images to zivgitlab.wwu.io
ci_current_image_run: ## run the 'current' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -v=$(THIS_DIR):/src pymor/ci-current:$(CI_CURRENT_IMAGE_TAG)
ci_oldest_image_run: ## run the 'oldest' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -v=$(THIS_DIR):/src pymor/ci-oldest:$(CI_OLDEST_IMAGE_TAG)
ci_fenics_image_run: ## run the 'fenics' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -v=$(THIS_DIR):/src pymor/ci-fenics:$(CI_FENICS_IMAGE_TAG)
ci_fenicsx_image_run: ## run the 'fenicsx' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -v=$(THIS_DIR):/src pymor/ci-fenicsx:$(CI_FENICSX_IMAGE_TAG)
ci_current_image_run_notebook: ## run jupyter in 'current' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -p 8888:8888 -v=$(THIS_DIR):/src pymor/ci-current:$(CI_CURRENT_IMAGE_TAG) \
bash -c "pip install -e . && jupyter notebook --allow-root --ip=0.0.0.0"
ci_oldest_image_run_notebook: ## run jupyter in 'oldest' CI image (needs to be pulled first)
$(DOCKER) run --rm -it -p 8888:8888 -v=$(THIS_DIR):/src pymor/ci-oldest:$(CI_OLDEST_IMAGE_TAG) \
bash -c "pip install -e . && jupyter notebook --allow-root --ip=0.0.0.0"
You are visitor 01402792 — 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.