Commit Graph

176 Commits (d705f6c0bde0a10f95e1439d81ff3d1bc07cafb1)

Author SHA1 Message Date
Safwan Rahman 8fde7af144 First phase of test for search 2018-05-20 03:06:01 +06:00
Santos Gallegos ae488385c9 Remove haystack from requirements 2018-04-30 18:19:10 -05:00
Manuel Kaufmann 43e82b0374
Merge pull request #4035 from rtfd/humitos/sphinx/bump
Bump sphinx default version to 1.7.4
2018-04-30 16:46:44 -05:00
Eric Holscher 124f73a14e
Merge branch 'master' into move-testing-requirement 2018-04-27 14:37:10 -07:00
Manuel Kaufmann 364e709c69 Use Sphinx 1.7.4 to build our docs 2018-04-27 11:53:04 -05:00
Manuel Kaufmann a1ef0bbc19 Downgrade docker to 3.1.3 (#4003) 2018-04-23 15:00:11 -06:00
Manuel Kaufmann 3c02f8feb0 Use pur to upgrade python packages (#3953)
* Use pur to upgrade python packages

* Pin sphinx-rtd-theme to 0.2.5b1
2018-04-19 10:32:08 -06:00
Manuel Kaufmann 907bad3a5e Remove django-celery-beat and use the default scheduler (#3959)
There are some issues with timezone for the `DatabaseScheduler`, so we
fallback to the default one (celery.beat.PersistentScheduler) which is
simpler --doesn't allow us to change the scheduled task from the
admin, but we don't need that.

In case we need this again, we can come back when those issues are
already fixed and revert this commit.
2018-04-17 17:08:30 -06:00
Santos Gallegos 701ac8cfbd Move dynamic-fixture to testing requirements 2018-04-17 03:59:08 -05:00
Manuel Kaufmann 77b7c280fa Use new django celery beat scheduler (#3908) 2018-04-05 15:07:14 -06:00
Anthony 776ddfa879
Drop pdbpp from testing requirements (#3904)
This was causing errors running tests with py36 and pdb set_trace
2018-04-04 18:13:08 -06:00
Anthony 7aa6f4d41a
Use gitpython to find a commit reference (#3843)
* Use gitpython to find a commit reference

Fixes #3842

* Add more exception handling

* Fix issue with a merge
2018-03-29 17:51:48 -06:00
David Fischer 4b3fd71370
Merge branch 'master' into remove-pinned-cssselect 2018-03-26 10:11:16 -07:00
Manuel Kaufmann d6a51a487b
Check submodule URLs integrity using gitpython
Use the same RepositoryURLValidator class for all the submodule URLs
before performing the sync/update/checkout of them.
2018-03-24 00:16:19 -06:00
Anthony 5edf99f605
Bump docker -> 3.1.3 (#3828)
Refs https://github.com/docker/docker-py/issues/1968
2018-03-20 17:44:33 -06:00
Santos Gallegos 673bfc7938 Pin astroid to fix linter issue on travis (#3816)
* Pin astroid to fix linter issues

* Add comment
2018-03-19 19:56:55 -06:00
David Fischer 689f6a21fd
Remove pinned CSS Select version 2018-03-16 11:10:12 -07:00
Manuel Kaufmann d30cc12d71 Upgrade docker-py to its latest version (docker==3.1.1) (#3243)
* Upgrade docker-py to its latest version (1.10.6)

* Hardcode 1.19 as Docker version

* Upgrade to latest possible docker/requests version

* Lint

* Fix import mistake from previous merge

* Fix merge conflict on creating container host config

* Remove unused import

* create_host_config fixed by calling it from the Docker client

* Upgrade docker and requests to their latest versions
2018-03-14 23:53:27 -06:00
Manuel Kaufmann 50e7d4be3b Upgrade all packages using `pur` tool (#2916)
* Upgrade all packages using `pur` tool

These ones were not upgraded since they are incompatible:

* docker-py
* celery
* elasticsearch
* pyelasticsearch

* Upgrade all packages with `pur`

    pur --skip django,docker-py,elasticsearch,pyelasticsearch

and some packages pinned manually to avoid conflicts with our tests.

* Downgrade commonmark to 0.5.5

In 6.x changelog

> DocParser has been renamed to Parser.

https://github.com/rtfd/CommonMark-py/releases/tag/0.6.0

and that it's not compatible with the latest version of
recommonmark (0.4.0)

* `assert_not_called` replaced by `call_count`

It doesn't receive arguments and can't be used at that point because
it was called previously by the other POST on the API:

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_not_called

* Upgrade packages with `pur`

$ pur --skip django-tastypie,django,docker-py,elasticsearch,pyelasticsearch,commonmark,stripe,djangorestframework

* Upgrade more packages

* Pin django-allauth to 0.32.0

django-allauth 0.33.0 doesn't support Django 1.9.x which is the
version we are using at the moment.

* Pin mkdocs to 0.15.0 for compatibility reasons

This version is the one installed by default on the venv to build the
user's documentation.

* Fix typo in method name

* Proper call to the superproject symlink on Project.save

`Project.superprojects.all()` returns `ProjectRelationship` instances
where we need to use the `parent` or `child` attribute to access to
the project itself.

(we were sending the `ProjectRelationship.pk`)
2018-03-14 22:16:35 -06:00
Manuel Kaufmann 3306d3aa44
Merge pull request #3666 from rtfd/humitos/django-pagination/upgrade
Upgrade django-pagination to a "maintained" fork
2018-03-13 16:41:42 -05:00
Manuel Kaufmann cc18a75de8 Project updated when subproject modified (#3649)
* Test for changing subproject privacy level

* Proper test for privacy level on subprojects

* Trigger re-symlink for superproject when project changes

Re-symlink when:

* a subproject is deleted
* a subproject privacy level is changed
* a subproject version privacy level is changed

* Update test case for current implementation

* Revert "Trigger re-symlink for superproject when project changes"

This reverts commit 3fe6cb3f3dfddc87d8c1e658cb7f3ebad4f6f476.

* Move logic from Form to Model

Instead of trigger the re-symlink task on each of the Form actions, we
trigger it once on ``Project.save()`` or ``Project.delete()`` method.

* Test for calls to broadcast utility on Project.save()
2018-03-09 12:42:58 -07:00
Manuel Kaufmann 4e3f9bdfe8 Merge branch 'master' of github.com:rtfd/readthedocs.org into humitos/django-pagination/upgrade 2018-03-05 20:29:32 -05:00
Manuel Kaufmann 09f8282be3 Upgrade django-taggit to 0.22.2 (#3667)
Upgrade this package to be more prepared for Python3 and Django 2.0
2018-02-27 00:37:35 -07:00
Manuel Kaufmann a9239fd5dc Upgrade django-pagination to a "maintained" fork
Closes #3664

The package `django-pagination` got unmaintained, so a fork by Linaro
was created at https://github.com/zyga/django-pagination and got
unmaintained again (https://github.com/zyga/django-pagination/issues/42).

Now, there is another fork at https://github.com/pydanny/dj-pagination)
that contains more compatibility releases. So, I'm upgrading to this one.
2018-02-23 12:36:11 -05:00
David Fischer 31043bd348 Upgrade requests version (#3557) 2018-02-07 04:23:02 +07:00
Manuel Kaufmann 872f87af9c Update packages for testing 2018-01-25 19:14:06 -05:00
Manuel Kaufmann 149aa4c61e Fix Travis linting issue 2018-01-25 19:13:55 -05:00
Eric Holscher b0591bce9b Use semvar for readthedocs-build 2018-01-04 12:58:05 -08:00
Eric Holscher 3e3f68d388 Merge branch 'add-docker-image-option' 2017-12-28 13:31:06 -08:00
Eric Holscher b36cc991fa Update reqs 2017-12-28 13:30:31 -08:00
Eric Holscher a8ded1c5ef Upgrade psycopg2 2017-12-20 15:21:16 -08:00
Manuel Kaufmann 8edf582b0d Fix pytlint to 1.7.5 since 1.8.0 has problems with pylint-django 2017-12-15 18:52:14 -05:00
Santos Gallegos 4373cba73c Remove copyright application (#3400) 2017-12-14 12:11:48 -07:00
Eric Holscher d0ee0f77b9 Merge remote-tracking branch 'origin/master' into add-docker-image-option 2017-12-08 14:29:32 -08:00
Santos Gallegos eca1c5a2e0 Set Mercurial version to the latest 2017-12-07 22:27:52 -05:00
Santos Gallegos 449ccfc68b Add Mercurial to tests requirements 2017-12-07 22:27:52 -05:00
Eric Holscher 5708f100ce Bump test commit 2017-12-05 11:50:54 -08:00
Eric Holscher 8d1a58db3b Clean up setting names 2017-12-05 11:22:25 -08:00
Eric Holscher aa15e78321 Bump build dep for tests 2017-11-30 14:34:26 -08:00
Manuel Kaufmann 682a7fa708 Add pdbpp for local debugging 2017-11-29 10:30:18 -05:00
Manuel Kaufmann cd9802ef2a Update CI requeriments (#3330) 2017-11-28 11:46:58 -07:00
Aaron Carlisle c0de92d173 Upgrade RTD Theme to 0.2.5b1 (#3313)
* Upgrade RTD Theme to 0.2.5b1

* Update dev RTD Theme version to 0.2.5b1
2017-11-27 09:38:32 -07:00
Eric Holscher 6038d84d8d Upgrade build dependency (#3274) 2017-11-15 19:31:51 -07:00
Anthony Johnson 1e55dfffc8
Fix tests 2017-11-15 12:00:36 -07:00
Anthony 96b23c8915
Use new Celery, use new application pattern (#3237)
* Use new Celery, use new application pattern

* Use modern celery
* Drop djcelery
* New pattern for starting celery
* Bump redis to 2.10.6 to avoid startup bug, change autodiscover call

* Update docs mentioning Celery

* Goof on package name

* Missed djcelery import

* Fix rebased task that was missed

* Handle change to Celery group calls in 4.x

* Fix tests

* Fix up some linting issues and problems starting the application

* Fix celery task registration

* We don't need shared_task anymore, swap for readthedocs.worker.app.task

* Fix call to chord
2017-11-10 17:17:36 -07:00
Eric Holscher 32a8f9e598 Add django_countries to proper dep 2017-10-24 15:04:39 -07:00
David Fischer 46fa1e0698
Add a tastypie XML requirement 2017-09-05 21:38:24 -07:00
Eric Holscher 1cde2bba72 Deploy hotfixes (#2972)
* Don't explode on makedirs

* Fix ad lookup

* Fix task designation

* Handle version handling.

This should be a decorator

* Upgrade slumber
2017-06-28 15:27:34 -07:00
Anthony accc01535c Finish linting on py3ish code (#2949)
* Resolve first round of linting errors in restapi.

This is a first step and only adds docstrings, etc. It doesn't refactor any
code.

Conflicts:
	prospector-more.yml
	readthedocs/restapi/views/model_views.py

* Reduce unused params.

In several cases, we can use the provided `request` rather than access `self`
(which could make these functions easier to test in isolation). In others, the
unused args could be folded into an unnamed kwarg param.

* Don't replace section variable.

This worked as intended, but only because the overridden section variable
would later evaluate to True. Using a different variable name makes this a bit
less error-prone.

* Minor docstring update

* Fix indent on docstring

* Punt on refactoring

* Fix call args

* Try unpinning testing reqs

* Bump up prospector higher level strictness

* Linting issues: arguments-differ, len-as-condition, redefined variables

* Remove unnecessary elses

This addresses no-else-return, which removes a `return` in an `else` after an
`if` that already has a `return`. This makes the default return more obvious in
most cases.

* Fix new linting issues with import order

Also, update travis and tox config for multiple versions of python

* Another fix on travis envs
2017-06-14 09:38:03 -07:00
Anthony Johnson 717da9ae8c Pin prospector to previous minor release 2017-06-09 10:52:31 -04:00