Commit Graph

85 Commits

Author SHA1 Message Date
Diana Huang
0024f00195 Constrain django-countries and make upgrade. 2020-03-02 12:57:04 -05:00
Feanil Patel
5ec487452d Merge pull request #23188 from edx/robrap/BOM-1324-add-constraint
BOM-1324: remove oauth2.enforce_jwt_scopes toggle
2020-03-02 09:55:35 -05:00
Jeremy Bowman
45644a3511 Upgrade edx-lint BOM-1298 (#23227)
The last time we tried this upgrade we encountered timeouts on the quality job, which it now appears were due to the worker running pylint common running out of memory and killing the Jenkins process. Switching to a different worker type with double the RAM (8 GB vs. 4 GB) seems to have fixed this; about 5.5 GB was used. Upstream is aware of the high memory usage on large projects, it's apparently due primarily to a cache of parsed modules: https://github.com/PyCQA/pylint/issues/1495 .

Even after disabling some of the new checks that have been added, the new version of pylint found about twice as much to complain about. Just bumping the threshold for now to unblock the Django upgrade, we can try automated utilities like pyupgrade to fix some of these later.
2020-03-02 08:27:19 -05:00
Robert Raposa
c291e4a521 fix tests and requirements
try to fix github
2020-02-27 09:56:31 -05:00
Jeremy Bowman
230bee9a06 Remove duplicate dependency version constraints (#23198)
Remove duplicate constraints in requirements/constraints.txt uncovered by the recent change in pip-compile output format. I sorted the pinned dependencies by name to try and make it more obvious if this happens again. I also upgraded to pip-tools 4.5.1, which removes the line numbers from the enhanced pip-compile output added in 4.5.0, which should reduce future diff churn and merge conflicts but means that there's a large diff this one last time.

Also unpin edx-search again after the previous change to do that was apparently broken by a merge conflict.
2020-02-26 20:42:21 -05:00
Tim McCormack
95d4acad7c Minimize dependency on django-celery (#23193)
- Reimplement `djcelery.common.respect_language` utility function so we
  can drop the dependency.
- Loosen `celery` pinning to a range, which brings in a fix for a
  possible crash bug

Also, pin `path` to 13.1.0 for now in order to continue supporting py35.
2020-02-26 00:46:36 +00:00
Robert Raposa
ce0b424254 add constraint for edx-drf-extensions
There is a planned edx-drf-extension update to 3.0.0 to remove the
toggle used for ENFORCE_JWT_SCOPES. Currently, edx-platform is dependent
on the this toggle. This constraint will keep other `make upgrade` PRs
working in the short window before the edx-paltform PR to remove the
same toggle can land.

BOM-1324
2020-02-24 10:25:57 -05:00
Calen Pennington
98328ea426 On publish, add evenly spaced dates to self-paced courses 2020-02-21 10:50:22 -05:00
Awais Qureshi
16c7f0a6b4 BOM-1278
Upgrade django-toolbar.
2020-02-18 22:38:48 +05:00
Diana Huang
59bb5fddd1 Unpin edx-search and update to latest version.
https://openedx.atlassian.net/browse/BOM-1036
2020-02-14 13:43:50 -05:00
edX requirements bot
61154f5dbc Python Requirements Update (#23103)
* Updating Python Requirements

* Constrain edx-when version for now
2020-02-13 15:22:01 -05:00
Aarif
36d06e949e Merge pull request #22903 from edx/BOM-1068
Replaced jsonfield with jsonfield2 - BOM-1068
2020-02-11 17:15:19 +05:00
Aarif
c9309a4b41 replaced jsonfield with jsonfield2 2020-02-11 16:17:51 +05:00
Ayub-khan
d3a02bc3e5 BOM-1121
-Updated middleware setting to use use middleware insted of
middleware_classes
-github install of django-method-override fork to support
new style middleware in django1.11
2020-02-11 14:35:26 +05:00
Michael Terry
6813414a0c Update requirements
Fix constraints to not have a lingering pin on edx-when. And
add constraint on version of mock that supports python 3.5.

And then a general make upgrade.
2020-02-06 13:28:30 -05:00
Chris Pappas
247cffa846 Bumping edx-enterprise version (#23003)
* Bumping edx-enterprise version

* Running make upgrade to bump edx-enterprise

* contraining a package

* fix

* adding yet another constraint
2020-02-03 12:39:21 -05:00
Calen Pennington
b0f090476c Upgrade edx-when to 0.6.0 to support converting relative to absolute dates 2020-01-30 14:39:32 -05:00
Diana Huang
4c48e0e558 Unpin edx-rest-api-client and make upgrade. 2020-01-24 13:33:18 -05:00
Manjinder Singh
d9b8fb6eb6 Constraining edx-rest-api-client (#22924)
* Constraining edx-rest-api-client

* Decreased pin on edx-rest-api-client from <3.0.0 to <2.0.0
2020-01-23 11:13:37 -05:00
Jeremy Bowman
7bbd229526 Unpin more outdated dependencies (#22898)
Unpin several more outdated dependencies whose changelogs don't contain any significant backwards incompatible changes. Also add "moto" to the list of packages to uninstall from existing environments, since it requires a jsondiff version that clashes with the one we now use (triggering a harmless but distracting warning on dependency updates).

We can potentially stop using path.py/path altogether by switching to pathlib in the Python 3 standard library, but that merits a separate PR of its own.

Also, note that I'm not actually unpinning freezegun; different PRs restricted it in both constraints.txt and test.in, I'm just removing the latter redundant constraint.
2020-01-23 06:59:32 -05:00
Zulqarnain
c6e06b5327 Django 1.1 support of bridgekeeper 2020-01-22 14:25:43 +05:00
Awais Qureshi
269b34a198 BOM-1126
Removing the moto.
2020-01-16 15:04:24 +05:00
Diana Huang
6dbc0e77d2 Merge pull request #22843 from edx/jenkins/upgrade-python-requirements-533adf6
Python Requirements Update
2020-01-15 10:40:23 -05:00
Brittney Exline
1209dc35b1 pinning freezegun because of it breaking a test 2020-01-14 17:09:17 -05:00
Diana Huang
28743215bd Pin freezegun due to breaking shib in third_party_auth. 2020-01-14 16:56:26 -05:00
Jeremy Bowman
f10a7550d7 Unpin more dependencies (#22690) 2020-01-06 15:07:01 -05:00
Jeremy Bowman
a4b2db677a Downgrade pandas and python-dateutil (#22703) 2020-01-03 12:12:11 -05:00
Manjinder Singh
6c69b6d435 Adding code to output pytest warnings. (#22570)
* Added pytest-json-report plugin
	- modifying app-opts in setup.cfg
	- adding hook to all conftest.py files in repo
	- setting report to be saved to test_root/log/warnings.json
	- Writing custom logic to save json report to avoid overwrite if pytest called twice
This was created to allow us to easily parse through test warnings in jenkins
2020-01-02 10:01:52 -05:00
Jeremy Bowman
eace6e36a7 Unpin assorted dependencies (#22656) 2019-12-30 17:09:14 -05:00
Jeremy Bowman
63574e12b8 Remove pytest version constraint (#22626)
Fix the issue that was preventing us from upgrading pytest.  pytest does some manipulation of test packages that prevents `pkg_resources` from loading resources from them, but used to contain a workaround for the problem.  That workaround was [removed](https://github.com/pytest-dev/pytest/issues/5392) in 4.6.0 as a performance enhancement when pytest switched from `pkg_resources` to `importlib-metadata` for its own entrypoint handling.  This tripped up one of our test modules which defined classes that loaded templates from inside a test package.  Moving these resources to the parent package fixes the problem.

More and more, `pkg_resources` is being abandoned in favor of `importlib-metadata` and `importlib_resources` as they have a simpler design with much better performance.  However, `importlib_resources` doesn't support loading files from any directory which isn't itself a Python package (and doesn't allow direct use of paths including directories within the package).  Jinja2 chose a [different approach](https://github.com/pallets/jinja/pull/1082) that we may want to emulate in our resource handling.

Also fixed usage of a removed `pytest.raises()` parameter and a bug in our configuration of the `common/lib` tests that became a problem after the upgrade.
2019-12-30 09:10:57 -05:00
Jeremy Bowman
0cb7539999 Python dependencies cleanup (#22612) 2019-12-27 11:00:46 -05:00
Jeremy Bowman
b2046f6674 Switch make upgrade to Python 3.5 (#22609)
* Switch make upgrade to Python 3.5

* bok-choy fixes, constrain django-debug-toolbar

* Remove flaky bok-choy test
2019-12-26 15:13:02 -05:00
Ayub khan
5c4c9fd26e BOM-1085
-bumped django-model-utils version to support django 22
2019-12-16 14:03:57 +05:00
Awais Qureshi
222523ec24 BOM-1083
Upgrade django-debug-toolbar
2019-12-13 16:08:00 +05:00
Albert (AJ) St. Aubin
12a416486a Upgrade edx-enterprise 2019-12-06 13:20:14 -05:00
Robert Raposa
ddc34bd023 upgrade edx-drf-extensions to 2.4.5 (#22269)
- Upgrade edx-drf-extensions to 2.4.5
- Removed constraint to 2.4.0, because 2.4.2 introduces a workaround for
ARCH-1210 by putting the problematic code behind a django setting.
- Remove unused JWT_AUTH_REFRESH_COOKIE setting.

ARCH-418, ARCH-1269, ARCH-1044

fix broken toggle
2019-11-12 15:10:28 -05:00
Awais Qureshi
f8b1ff538e BOM-1027
guincorn just released its version on 9th-nov-2019 (20.0.0)
and it requires Python 3.x >= 3.4.
so adding constraint < 20.0.0

execute make upgrade
2019-11-12 11:09:25 +05:00
irfanuddinahmad
7bcb618163 Updated requirements for edx-enterprise 2019-10-28 18:02:30 +05:00
Feanil Patel
695ed0cb29 Pin just edx-drf-extensions.
We also pin back edx-lint to fix a regression we introduced when we
started having to roll back all the requirements changes.
2019-10-11 14:08:36 -04:00
Feanil Patel
b6638d21ca Update everything but the constrained packages. 2019-10-10 14:02:37 -04:00
Alex Dusenbery
a379dddc1e Remove faker==2.0.1 constraint; upgrade edx-bulk-grades to 0.6.2 2019-09-23 11:38:19 -04:00
Ned Batchelder
71ce73d98e Merge pull request #21207 from edx/nedbat/api-docs
REST API docs
2019-09-18 16:42:10 -04:00
Ned Batchelder
de0afbfe96 Pin faker to get a consistent version for text-unidecode 2019-09-17 17:37:12 -04:00
Feanil Patel
dc99d61b9c pip-tools 4.x seems to have made this less of a problem.
Issue 851 seems to have been resolved and issue 8.5.2 while still open is
not occuring with the latest version of pip-tools.
2019-09-17 10:27:16 -04:00
Jeremy Bowman
76035c37bc Downgrade transifex-client to upgrade other packages (#21403) 2019-08-21 16:16:15 -04:00
Chris Pappas
b22f08a414 Removing edx-enterprise from constraints and running make upgrade to bump version to 1.9.1 (#21377) 2019-08-19 17:32:46 -04:00
Waheed Ahmed
8dc9ccd2ec Newrelic released a patch, removing constraint.
PROD-533
2019-08-19 14:20:03 +05:00
Brittney Exline
c29b1dd92a Reverting to last stable version of edx-enterprise 2019-08-16 13:31:07 -04:00
Waheed Ahmed
e81500a25e Downgrade newrelice version from 5.0.0.124 to 4.20.1.121.
Getting 500 error on stage after upgrading to latest version
of newrelice.
2019-08-08 14:15:19 +05:00
Feanil Patel
74132f8ed9 Update moto to support python3.
We had to pin json diff because of how we pull prod requirements into
testing.txt
2019-08-02 13:41:55 -04:00