File tree 6 files changed +11
-10
lines changed
6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@master
15
15
- uses : actions/setup-python@v2
16
16
with :
17
- python-version : 3.8
17
+ python-version : 3.9
18
18
19
19
# Note: This uses an internal pip API and may not always work
20
20
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
29
29
- name : Install dependencies
30
30
run : |
31
31
# python -m pip install --upgrade --user pip
32
- pip install --requirement requirements/devel.txt --upgrade --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --quiet # --upgrade-strategy only-if-needed
32
+ pip install --requirement requirements/devel.txt --upgrade --quiet -- find-links https://download.pytorch.org/whl/cpu/torch_stable.html
33
33
pip install --requirement docs/requirements.txt --upgrade-strategy only-if-needed
34
34
python --version
35
35
pip --version
52
52
- uses : actions/checkout@master
53
53
- uses : actions/setup-python@v2
54
54
with :
55
- python-version : 3.8
55
+ python-version : 3.9
56
56
57
57
# Note: This uses an internal pip API and may not always work
58
58
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
66
66
67
67
- name : Install dependencies
68
68
run : |
69
- pip install --requirement requirements.txt --upgrade-strategy only-if-needed --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --quiet
70
69
pip install --requirement docs/requirements.txt
71
70
# install Texlive, see https://linuxconfig.org/how-to-install-latex-on-ubuntu-20-04-focal-fossa-linux
72
71
sudo apt-get update && sudo apt-get install -y texlive-latex-extra dvipng texlive-pictures
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ ______________________________________________________________________
19
19
20
20
[ ![ PyPI Status] ( https://badge.fury.io/py/lightning-bolts.svg )] ( https://badge.fury.io/py/lightning-bolts )
21
21
[ ![ PyPI Status] ( https://pepy.tech/badge/lightning-bolts )] ( https://pepy.tech/project/lightning-bolts )
22
- [ ![ Build Status] ( https://dev.azure.com/PytorchLightning /lightning%20Bolts/_apis/build/status/PyTorchLightning .lightning-bolts?branchName=master )] ( https://dev.azure.com/PytorchLightning /lightning%20Bolts/_build/latest ?definitionId=5&branchName=master )
22
+ [ ![ Build Status] ( https://dev.azure.com/Lightning-AI /lightning%20Bolts/_apis/build/status/Lightning-AI .lightning-bolts?branchName=master )] ( https://dev.azure.com/Lightning-AI /lightning%20Bolts/_build?definitionId=31&_a=summary&repositoryFilter=13&branchFilter=4923%2C4923 )
23
23
[ ![ codecov] ( https://codecov.io/gh/PyTorchLightning/lightning-bolts/branch/master/graph/badge.svg )] ( https://codecov.io/gh/PyTorchLightning/lightning-bolts )
24
- [ ![ CodeFactor] ( https://www.codefactor.io/repository/github/pytorchlightning/lightning-bolts/badge )] ( https://www.codefactor.io/repository/github/pytorchlightning/lightning-bolts )
25
24
26
25
[ ![ Documentation Status] ( https://readthedocs.org/projects/lightning-bolts/badge/?version=latest )] ( https://lightning-bolts.readthedocs.io/en/latest/ )
27
26
[ ![ Slack] ( https://img.shields.io/badge/slack-chat-green.svg?logo=slack )] ( https://www.pytorchlightning.ai/community )
Original file line number Diff line number Diff line change 3
3
4
4
# You can set these variables from the command line.
5
5
SPHINXOPTS = -W
6
- SPHINXBUILD = python $(shell which sphinx-build)
6
+ SPHINXBUILD = $(shell which sphinx-build)
7
7
SOURCEDIR = source
8
8
BUILDDIR = build
9
9
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ def package_list_from_file(file):
302
302
mocked_packages = []
303
303
with open (file ) as fp :
304
304
for ln in fp .readlines ():
305
- found = [ln .index (ch ) for ch in list (",=<>#" ) if ch in ln ]
305
+ found = [ln .index (ch ) for ch in list (",=<>#[] " ) if ch in ln ]
306
306
pkg = ln [: min (found )] if found else ln
307
307
if pkg .strip ():
308
308
mocked_packages .append (pkg .strip ())
@@ -319,12 +319,15 @@ def package_list_from_file(file):
319
319
MOCK_PACKAGES = []
320
320
if SPHINX_MOCK_REQUIREMENTS :
321
321
# mock also base packages when we are on RTD since we don't install them there
322
+ MOCK_PACKAGES += ["numpy" ]
322
323
MOCK_PACKAGES += package_list_from_file (os .path .join (_PATH_ROOT , "requirements.txt" ))
323
324
MOCK_PACKAGES += package_list_from_file (os .path .join (_PATH_ROOT , "requirements" , "models.txt" ))
324
325
MOCK_PACKAGES += package_list_from_file (os .path .join (_PATH_ROOT , "requirements" , "loggers.txt" ))
325
326
# replace PyPI packages by importing ones
326
327
MOCK_PACKAGES = [PACKAGE_MAPPING .get (pkg , pkg ) for pkg in MOCK_PACKAGES ]
327
328
329
+ print (f"{ MOCK_PACKAGES = } " )
330
+
328
331
autodoc_mock_imports = MOCK_PACKAGES
329
332
330
333
Original file line number Diff line number Diff line change 1
1
torchvision>=0.10.*
2
- scikit-learn>=0.23
2
+ scikit-learn>=1.0.2
3
3
Pillow
4
4
opencv-python-headless
5
5
gym[atari]>=0.17.2, <0.20.0 # needed for RL
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pre-commit>=1.0
11
11
mypy>=0.790
12
12
black
13
13
atari-py==0.2.6 # needed for RL
14
- scikit-learn>=0.23
14
+ scikit-learn>=1.0.2
15
15
sparseml
16
16
ale-py>=0.7
17
17
jsonargparse[signatures] # for LightningCLI
You can’t perform that action at this time.
0 commit comments