diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-03-28 00:26:01 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-07-02 10:07:59 +0900 |
commit | 803fb336d62ea65990e263ce58d8552e04c9c038 (patch) | |
tree | 302306159a166490b7837135ba766960d5be5490 /bootstrap | |
parent | c4797121beea74ae93e3ce17677b9e72b8df920d (diff) | |
download | guix-803fb336d62ea65990e263ce58d8552e04c9c038.tar guix-803fb336d62ea65990e263ce58d8552e04c9c038.tar.gz |
import: pypi: Improve parsing of requirement specifications.
The previous solution was fragile and could leave unwanted characters in a
requirement name, such as '[' or ']'.
Partially fixes <https://bugs.gnu.org/33047>.
* guix/import/pypi.scm (use-modules): Export SPECIFICATION->REQUIREMENT-NAME
(%requirement-name-regexp): New variable.
(clean-requirement): Rename to...
(specification->requirement-name): this, which now uses
%requirement-name-regexp to select the requirement name from the requirement
specification.
(parse-requires.txt): Adapt.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions