From a177e13c426e40b56122b84428c4cab1c0544be3 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 14 Aug 2023 11:48:54 -0400 Subject: [PATCH] build: Update how we read requirements. See https://github.com/openedx/edx-cookiecutters/pull/377/files for more details but essentially, we weren't previously advertising our extra dependencies correctly, so start doing that here. --- setup.py | 2 +- xblockutils/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b46b04a..4f8a5fe 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def load_requirements(*requirements_paths): constraint_files = set() # groups "my-package-name<=x.y.z,..." into ("my-package-name", "<=x.y.z,...") - requirement_line_regex = re.compile(r"([a-zA-Z0-9-_.]+)([<>=][^#\s]+)?") + requirement_line_regex = re.compile(r"([a-zA-Z0-9-_.\[\]]+)([<>=][^#\s]+)?") def add_version_constraint_or_raise(current_line, current_requirements, add_if_not_present): regex_match = requirement_line_regex.match(current_line) diff --git a/xblockutils/__init__.py b/xblockutils/__init__.py index 41e1c9e..ac57d0f 100644 --- a/xblockutils/__init__.py +++ b/xblockutils/__init__.py @@ -2,4 +2,4 @@ Useful classes and functionality for building and testing XBlocks """ -__version__ = '3.4.0' +__version__ = '3.4.1'