Skip to content

Commit f988189

Browse files
authored
Merge pull request #2730 from keflavich/rtdpy3bump
bump RTD to py39
2 parents 011c3dc + 62d66eb commit f988189

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

.readthedocs.yaml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
version: 2
22

3-
python:
4-
# Revise build version once more dependencies support python 3.9+
5-
version: 3.8
6-
system_packages: false
7-
install:
8-
- method: pip
9-
path: .
10-
extra_requirements:
11-
- docs
3+
build:
4+
os: "ubuntu-20.04"
5+
tools:
6+
python: "mambaforge-4.10"
7+
8+
conda:
9+
environment: docs/rtd_environment.yaml
1210

1311
sphinx:
14-
fail_on_warning: true
15-
configuration: docs/conf.py
12+
builder: html
13+
configuration: docs/conf.py
14+
fail_on_warning: true
15+
16+
# Install regular dependencies.
17+
# Then, install special pinning for RTD.
18+
python:
19+
system_packages: false
20+
install:
21+
- method: pip
22+
path: .
23+
extra_requirements:
24+
- docs
25+
- all
26+
27+
# Don't build any extra formats
28+
formats: []

astroquery/mast/tests/test_mast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def test_mast_service_request(patch_post):
302302
def test_resolve_object(patch_post):
303303
m103_loc = mast.Mast.resolve_object("M103")
304304
print(m103_loc)
305-
assert m103_loc.separation(SkyCoord("23.34086 60.658", unit='deg')).value == 0
305+
assert round(m103_loc.separation(SkyCoord("23.34086 60.658", unit='deg')).value, 10) == 0
306306

307307

308308
def test_login_logout(patch_post):

docs/rtd_environment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: rtd311
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.11
7+
- pip
8+
- graphviz

0 commit comments

Comments
 (0)