diff options
| author | Paul Ganssle <paul@ganssle.io> | 2018-12-28 09:37:55 -0500 |
|---|---|---|
| committer | Paul Ganssle <paul@ganssle.io> | 2018-12-28 09:37:55 -0500 |
| commit | b78994aa19ae0705f60e3b4b1e4087ecbe4ff0f5 (patch) | |
| tree | 0877e4cacf1dd7db3b7391c5d9aef8f4d6b69fb8 /setuptools/command | |
| parent | 0902f02d9d68f18e906e727cbafa4a05fe5c9c91 (diff) | |
| download | python-setuptools-git-b78994aa19ae0705f60e3b4b1e4087ecbe4ff0f5.tar.gz | |
Import distribution in doctest
Fixes GH issue #1612, bug introduced in commit 0902f02d9d68f18
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/develop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py index 707494eb..009e4f93 100644 --- a/setuptools/command/develop.py +++ b/setuptools/command/develop.py @@ -202,6 +202,7 @@ class VersionlessRequirement: name as the 'requirement' so that scripts will work across multiple versions. + >>> from pkg_resources import Distribution >>> dist = Distribution(project_name='foo', version='1.0') >>> str(dist.as_requirement()) 'foo==1.0' |
