Commit Graph

68 Commits

Author SHA1 Message Date
Usama Sadiq
2d7a3d3fbd fix: remove pylint constraint (#36169) 2025-01-27 21:25:42 +05:00
Kyle D. McCormick
75e3107863 fix: Move implicit dependencies from paver.in to kernel.in
There are three packages which edx-platform needs in order to run which
were being installed transitively via paver.in. Since we are removing
paver.in, these dependencies need to be transferred into kernel.in:

* psutil
* pymemcache
* wrapt

Part of: https://github.com/openedx/edx-platform/issues/34467
2025-01-02 14:05:15 -05:00
Tim McCormack
45116b02b0 fix: Support running pull_translations with base dependencies (#34285)
Since `make pull_translations` is now performed at build time (in the new
Atlas workflow), it will generally only have access to base dependencies.
However, it depends on the `i18n_tools` command that was only installed at
the testing layer. This moves the dependency from testing to base.

(There is no increase in artifact size, as ora2 already depends on it and
is installed at the base later.)

This also adds `API_ACCESS_MANAGER_EMAIL` to the minimal settings
so that `make pull_translations` can be run using production envs in a
local environment (to test the lack of dependency on developer-level deps.)

This supports OEP-58.
2024-02-22 19:43:30 +00:00
github-actions[bot]
f87006f778 feat: Upgrade Python dependency tox (#33736)
* feat: Upgrade Python dependency tox

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

* fix: add back py in requirements

* chore: upgrade py package in requirements

---------

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
Co-authored-by: UsamaSadiq <usama7274@gmail.com>
2023-11-17 17:57:15 +05:00
edX requirements bot
7050eca5a6 fix: Replaced whitelist_externals with allowlist_externals in tox and removed tox-battery (#33558)
* fix: update tox config
* feat: Upgrade Python dependency tox-battery (#33702)
---------
Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2023-11-13 15:24:08 +05:00
Feanil Patel
66e987997c Revert "Revert "chore: remove bok-choy settings"" 2023-11-01 13:41:37 -04:00
Robert Raposa
083ccbf09b Revert "chore: remove bok-choy settings" 2023-10-31 15:27:44 -04:00
salman2013
42ca0ddec4 chore: remove bok choy settings 2023-09-27 10:58:37 +05:00
Muhammad Umar Khan
9c279444df build: add import linter check (#31062)
* build: add import linter check
2022-12-07 12:07:09 +05:00
Usama Sadiq
9211f3a67a BOM-3365: Remove python-slugify constraint & python transifex client (#30312)
* fix: remove python slugify constraint
* fix: remove python transifex-client package
2022-04-27 12:58:15 +05:00
Azan Bin Zahid
1cce2e952d feat: add pact verification method 2021-08-24 14:59:46 +05:00
Ned Batchelder
443730509c build: no need for this hackathon testing plugin
This was to support an experiment in using coverage test contexts to
record what tests ran each line of code (informally known as
who-tests-what, or wtw).   It never became operational.
2021-04-23 18:12:05 -04:00
Usama Sadiq
e769573bb6 use pylint-pytest 0.3.0 version 2021-04-14 17:40:41 +05:00
Awais Qureshi
2be5184e38 BOM-2340
Testing pylint-pytest package
2021-04-14 17:40:18 +05:00
M. Zulqarnain
a184c219fd Use pytest-xdist[psutil] (#24845) 2020-08-26 18:29:05 +05:00
Aarif
09ac7f9372 remove cyclomatic complexity calculation for python code 2020-08-04 22:10:05 +05:00
ericfab179
c8abbd2c0f Update transifex client to use PyPi release. (#24217)
Use transifex client from PyPi since required change was merged recently.
2020-06-16 13:56:31 -04:00
morenol
cfb53bb9bb Upgrade transifex-client (#24183)
Upgrade transifex-client version.

This is only made in order to run the tests with a transifex-client version compatible with python3.8

The actual problem that we have in edx-platform is that the last version of transifex-client has as constraint python-slugify<2.0.0 which is not compatible with the current requierements of edx-platform on the other hand, the current version used in edx-platform is not compatible with python3.8
2020-06-11 16:06:03 -04:00
Jeff Chaves
56fb62cad0 ran make upgrade to bump edx-enterprise version (#23925) 2020-05-06 16:09:50 -04: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
Aarif
8cc86d3aab BOM-1141
Updating the django-rate-limit requirement.
updated the django-ratelimit to use unreleased version that supports Django 2.2
2020-01-26 12:45: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
Awais Qureshi
269b34a198 BOM-1126
Removing the moto.
2020-01-16 15:04:24 +05:00
usamasadiq
aee3318cbd BOM 1087 django-mysql version bump
Removed the version constraint for django-mysql
Also pinned the freezegun version to 0.3.12 as the latest version is causing failures.
2020-01-15 17:54:42 +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
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
5d7bdf91b1 Revert requirements changes due to memory issues.
Some change in the requirements here may be responsible for increased
CPU and memory usage.  This is causing production LMS for edx.org to run
into lots of performance issues.  Reverting for now until we can narrow
it down to which change caused the issue.
2019-10-09 16:47:26 -04:00
Stu Young
7de7bcb398 Revert "Upgrade edx-lint" (#21930) 2019-10-03 16:23:44 -04:00
Calen Pennington
86be8d124a Upgrade edx-lint 2019-10-01 14:00:54 -04:00
Jeremy Bowman
553d35e53e Upgrade mock BOM-596 (#21717) 2019-09-24 10:14:17 -04: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
Ned Batchelder
2234aeb1ab Coverage et al that support who-tests-what 2019-07-22 16:24:55 -04:00
Michael Youngstrom
c5f04c60b4 Update edx-lint to 1.3.0 (#20750) 2019-06-05 14:17:59 -04:00
Jeremy Bowman
a9cd9de89f TE-2647 Stop running pa11ycrawler (#20682) 2019-05-24 11:02:49 -04:00
Robert Raposa
e3322da058 fix disable of pylint ungrouped-imports
See https://github.com/edx/edx-platform/pull/20644 for original
attempt at disabling, and more info about why.
2019-05-23 13:44:14 -04:00
Robert Raposa
52266726b3 remove ungrouped-imports rule from pylint 2019-05-18 22:02:09 -04:00
Michael Youngstrom
bfe10720c6 Remove lettuce infrastructure 2019-04-18 09:58:21 -04:00
Ned Batchelder
b666e54196 edx-lint --> 1.1.2 2019-04-10 13:56:40 -04:00
Troy Sankey
35f6822f92 PII annotations can be longer than 120 characters now
PLAT-2424
2019-02-21 15:39:12 -05:00
Julia Eskew
e5621c91fc Add code-annotations. Un-pin stevedore. Upgrade deps. 2019-02-19 11:23:07 -05:00
Matthew Piatetsky
883d250bde update to newer version of edx-lint that includes updated unicode-format-string rule 2019-02-01 12:39:36 -05:00
Calen Pennington
95252f1a81 Run caniusepython3.pylint_checker 2019-02-01 10:03:42 -05:00
Jeremy Bowman
d0d6d57343 TE-2731 Upgrade to pytest-cov 2.6.1 2019-01-08 11:05:45 -05:00
Ned Batchelder
0a0219d9dc New edx-lint has unicode-format-string, disable it for now. 2018-12-17 15:09:46 -05:00
Ned Batchelder
66c0f40e89 Move defensive pins to constraints.txt 2018-12-14 11:58:02 -05:00
Ned Batchelder
e4adce6869 Pin edx-lint to keep the version stable 2018-12-11 17:13:41 -05:00