Skip to content

Commit a7b8581

Browse files
committed
Merge branch 'master' into trigger-build-default-branch
2 parents 41c5d30 + bdb4aa5 commit a7b8581

File tree

6 files changed

+33
-20
lines changed

6 files changed

+33
-20
lines changed

conftest.py

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ def pytest_configure(config):
4747
def settings_modification(settings):
4848
settings.CELERY_ALWAYS_EAGER = True
4949

50+
5051
@pytest.fixture
5152
def api_client():
5253
return APIClient()
54+
55+
56+
@pytest.fixture(scope="class")
57+
def url_scheme(request):
58+
request.cls.url_scheme = request.config.option.url_scheme

docs/builds.rst

+14-8
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Files: `tasks.py`_ - `doc_builder/`_
99
Every documentation build has limited resources.
1010
Our current build limits are:
1111

12-
* 15 minutes
13-
* 1GB of memory
12+
* 15 minutes of CPU
13+
* 1GB of RAM memory
1414

1515
We can increase build limits on a per-project basis,
1616
if you provide a good reason your documentation needs more resources.
@@ -73,8 +73,9 @@ If the code is already checked out, we update the copy to the branch that you ha
7373

7474
Then we build the proper backend code for the type of documentation you've selected.
7575

76-
If you have the *Install Project* option enabled, we will run ``setup.py install`` on your package, installing it into a virtual environment.
77-
You can also define additional packages to install with the *Requirements File* option.
76+
At this point, if you need extra requirements,
77+
or even install your own package in the virtual environment to build your documentation,
78+
you can use a :doc:`config-file/index`.
7879

7980
When we build your Sphinx documentation, we run ``sphinx-build -b html . _build/html``,
8081
where ``html`` would be replaced with the correct backend.
@@ -89,13 +90,17 @@ An example in code:
8990
.. code-block:: python
9091
9192
update_docs_from_vcs(version)
92-
if exists('setup.py'):
93+
config = get_config(project)
94+
if config.python.install.method.setuptools:
9395
run('python setup.py install')
94-
if project.requirements_file:
95-
run('pip install -r %s' % project.requirements_file)
96+
if config.python.install.method.pip:
97+
run('pip install .')
98+
if config.python.install.requirement:
99+
run('pip install -r %s' % config.python.install.requirement)
96100
build_docs(version=version)
97101
copy_files(artifact_dir)
98102
103+
99104
.. note::
100105

101106
Regardless of whether you build your docs with Sphinx or MkDocs,
@@ -179,4 +184,5 @@ The *Sphinx* and *Mkdocs* builders set the following RTD-specific environment va
179184
.. tip::
180185

181186
In case extra environment variables are needed to the build process (like secrets, tokens, etc),
182-
you can add them going to **Admin > Environment Variables** in your project. See :doc:`guides/environment-variables`.
187+
you can add them going to :guilabel:`Admin` > :guilabel:`Environment Variables` in your project.
188+
See :doc:`guides/environment-variables`.

docs/custom_domains.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ FAQ <https://support.cloudflare.com/hc/en-us/articles/115000310832-Certification
6060
Some older setups configured a CNAME record pointing to ``readthedocs.org``
6161
or another variation. While these continue to resolve,
6262
they do not yet allow us to acquire SSL certificates for those domains.
63-
Point the CNAME to ``readthedocs.io`` and re-request a certificate
63+
Point the CNAME to ``readthedocs.io``, with no subdomain, and re-request a certificate
6464
by saving the domain in the project admin (:guilabel:`Domains` >
6565
:guilabel:`Edit Domain`).
6666

readthedocs/doc_builder/python_environments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def install_core_requirements(self):
303303
self.project.get_feature_value(
304304
Feature.USE_SPHINX_LATEST,
305305
positive='sphinx<2',
306-
negative='sphinx<1.8',
306+
negative='sphinx<2',
307307
),
308308
'sphinx-rtd-theme<0.5',
309309
'readthedocs-sphinx-ext<0.6',

readthedocs/rtd_tests/tests/test_core_tags.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
from readthedocs.projects.models import Project
1010

1111

12+
@pytest.mark.usefixtures("url_scheme")
1213
@override_settings(USE_SUBDOMAIN=False, PRODUCTION_DOMAIN='readthedocs.org')
1314
class CoreTagsTests(TestCase):
1415
fixtures = ['eric', 'test_data']
1516

1617
def setUp(self):
1718
url_base = '{scheme}://{domain}/docs/pip{{version}}'.format(
18-
scheme=pytest.config.option.url_scheme,
19+
scheme=self.url_scheme,
1920
domain=settings.PRODUCTION_DOMAIN,
2021
)
2122

requirements/pip.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Base packages
22
pip==19.0.3
33
appdirs==1.4.3
4-
virtualenv==16.4.1
4+
virtualenv==16.4.3
55

66
django==1.11.20 # pyup: <1.12
77
django-tastypie==0.14.2
88
django-guardian==1.5.0
99
django-extensions==2.1.6
1010

11-
djangorestframework==3.9.1
11+
djangorestframework==3.9.2
1212

1313
# For intersphinx during builds
1414
Sphinx==1.8.4
@@ -22,11 +22,15 @@ jsonfield==2.0.2
2222
requests==2.21.0
2323
requests-toolbelt==0.9.1
2424
slumber==0.7.1
25-
lxml==4.3.1
26-
defusedxml==0.5.0
2725
pyyaml==3.13
2826
Pygments==2.3.1
2927

28+
# These has to be removed once APIv1 is removed
29+
# https://github.com/rtfd/readthedocs.org/pull/5293
30+
# https://github.com/rtfd/readthedocs.org/pull/3082
31+
lxml==4.3.1
32+
defusedxml==0.5.0
33+
3034
# Basic tools
3135
# Redis 3.x has an incompatible change and fails
3236
# https://stackoverflow.com/questions/53331405/django-compress-error-invalid-input-of-type-cachekey
@@ -36,10 +40,7 @@ redis==2.10.6 # pyup: ignore
3640
# when ALWAYS_EAGER = True
3741
celery==4.1.1 # pyup: ignore
3842

39-
django-allauth==0.38.0
40-
41-
# VCS
42-
httplib2==0.12.1
43+
django-allauth==0.39.1
4344

4445
# GitPython 2.1.11 makes TestGitBackend.test_git_tags to fail because
4546
# of an UnicodeError
@@ -65,7 +66,6 @@ pyquery==1.4.0
6566
# Utils
6667
django-gravatar2==1.4.2
6768
pytz==2018.9
68-
beautifulsoup4==4.7.1
6969
Unipath==1.1
7070
django-kombu==0.9.4
7171
mock==2.0.0

0 commit comments

Comments
 (0)