zulip/requirements
PIG208 df18bbbd48 requirements: Add django-stubs and configure plugin.
Note that django_stubs_ext is required to be placed within common.in
because we need the monkeypatched types in runtime; django-stubs
itself is for type checking only.

In the future, we would like to pin to a release instead of a git
revision, but several patches we've contributed upstream have not
appeared in a release yet.

We also remove the type annotation for RealmAuditLog.event_last_message_id
here instead of earlier because type checking fails otherwise.

Fixes #11560.
2022-10-05 16:15:56 -07:00
..
README.md requirements: Remove unused mypy.txt lock file. 2022-09-08 11:08:06 -07:00
common.in requirements: Add django-stubs and configure plugin. 2022-10-05 16:15:56 -07:00
dev.in requirements: Upgrade Python requirements. 2022-08-30 17:36:21 -07:00
dev.txt requirements: Add django-stubs and configure plugin. 2022-10-05 16:15:56 -07:00
docs.in requirements: Upgrade Python requirements. 2022-05-03 10:10:06 -07:00
docs.txt requirements: Upgrade Python requirements. 2022-08-30 17:36:21 -07:00
mypy.in requirements: Add django-stubs and configure plugin. 2022-10-05 16:15:56 -07:00
pip.in requirements: Upgrade Python requirements. 2021-05-07 22:42:39 -07:00
pip.txt requirements: Upgrade Python requirements. 2022-08-30 17:36:21 -07:00
prod.in requirements: Remove unnecessary version bounds from *.in. 2019-09-23 13:23:58 -07:00
prod.txt requirements: Add django-stubs and configure plugin. 2022-10-05 16:15:56 -07:00

README.md

The dependency graph of the requirements is as follows:

dev +-> prod +-> common
+
|
v
docs,pip

Of the files, only dev and prod have been used in the install scripts directly. The rest are implicit dependencies.

Steps to update a lock file, e.g. to update ipython from 5.3.0 to latest version:

  1. Remove entry for ipython==5.3.0 in dev.txt.
  2. Run ./tools/update-locked-requirements, which will generate new entries, pinned to the latest version.
  3. Increase PROVISION_VERSION in version.py.
  4. Run ./tools/provision to install the new deps and test them.
  5. Commit your changes.