File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,31 @@ help:
13
13
14
14
.PHONY : help Makefile
15
15
16
+ .install-deps :
17
+ @pip freeze | grep -q " sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi" && is_custom_sphinx_autoapi_installed=" yes" || is_custom_sphinx_autoapi_installed=" no"
18
+ @if [ " $$ is_custom_sphinx_autoapi_installed" != " yes" ]; then \
19
+ pip uninstall --yes sphinx-autoapi; \
20
+ pip install " sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi@feat/single-page-stable" ; \
21
+ fi
22
+
16
23
# Catch-all target: route all unknown targets to Sphinx using the new
17
24
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18
- % : Makefile
25
+ % : .install-deps Makefile
19
26
@$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
20
27
21
-
22
28
# Customized clean due to examples gallery
23
- clean :
29
+ clean : .install-deps
24
30
rm -rf $(BUILDDIR ) /*
25
31
find . -type d -name " api" -exec rm -rf {} +
26
32
27
33
# Create PDF
28
- pdf :
34
+ pdf : .install-deps
29
35
@$(SPHINXBUILD ) -M latex " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
30
36
cd $(BUILDDIR ) /latex && latexmk -r latexmkrc -pdf * .tex -interaction=nonstopmode || true
31
37
(test -f $( BUILDDIR) /latex/* .pdf && echo pdf exists) || exit 1
32
38
33
39
# Build HTML files and generate examples as .py files
34
- html :
40
+ html : .install-deps
35
41
@$(SPHINXBUILD ) -M linkcheck " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
36
42
@$(SPHINXBUILD ) -M html " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
37
43
cd $(BUILDDIR ) /html/examples
Original file line number Diff line number Diff line change @@ -25,25 +25,25 @@ classifiers = [
25
25
26
26
dependencies = [
27
27
" ansys-api-geometry==0.3.5" ,
28
- " ansys-tools-path>=0.3" ,
29
- " beartype>=0.11.0" ,
30
- " google-api-python-client>=1.7.11" ,
31
- " googleapis-common-protos>=1.52.0" ,
32
- " grpcio>=1.35.0" ,
33
- " grpcio-health-checking>=1.45.0" ,
34
- " numpy>=1.20.3" ,
35
- " Pint>=0.18" ,
36
- " protobuf>=3.20.2" ,
37
- " pyvista>=0.37.0" ,
38
- " scipy>=1.7.3" ,
39
- " six>=1.16.0" ,
40
- " vtk>=9" ,
28
+ " ansys-tools-path>=0.3,<1 " ,
29
+ " beartype>=0.11.0,<1 " ,
30
+ " google-api-python-client>=1.7.11,<3 " ,
31
+ " googleapis-common-protos>=1.52.0,<2 " ,
32
+ " grpcio>=1.35.0,<2 " ,
33
+ " grpcio-health-checking>=1.45.0,<2 " ,
34
+ " numpy>=1.20.3,<2 " ,
35
+ " Pint>=0.18,<1 " ,
36
+ " protobuf>=3.20.2,<5 " ,
37
+ " pyvista>=0.37.0,<1 " ,
38
+ " scipy>=1.7.3,<2 " ,
39
+ " six>=1.16.0,<2 " ,
40
+ " vtk>=9,<10 " ,
41
41
]
42
42
43
43
[project .optional-dependencies ]
44
44
all = [
45
- " ansys-platform-instancemanagement>=1.0.3" ,
46
- " docker>=6.0.1" ,
45
+ " ansys-platform-instancemanagement>=1.0.3,<2 " ,
46
+ " docker>=6.0.1,<8 " ,
47
47
" pyvista[trame]>=0.38.1,<0.42" ,
48
48
]
49
49
tests = [
You can’t perform that action at this time.
0 commit comments