Commit e6fa017e authored by Jason R. Coombs's avatar Jason R. Coombs

Make _local a private method, available provisionally.

parent 4d2f2c2a
Pipeline #153405232 passed with stages
in 5 minutes and 58 seconds
......@@ -243,7 +243,7 @@ class Distribution:
return filter(None, declared)
def find_local(cls, root='.'):
def _local(cls, root='.'):
from pep517 import build, meta
system = build.compat_system(root)
builder = functools.partial(
......@@ -5,6 +5,11 @@
* Added ``Distribution._local()`` as a provisional
demonstration of how to load metadata for a local
package. Implicitly requires that
`pep517 <>`_ is
installed. Ref #42.
* Ensure inputs to FastPath are Unicode. Closes #121.
* Tests now rely on ``importlib.resources.files`` (and
backport) instead of the older ``path`` function.
......@@ -178,6 +178,6 @@ class OffSysPathTests(fixtures.DistInfoPkgOffPath, unittest.TestCase):
class LocalProjectTests(fixtures.LocalPackage, unittest.TestCase):
def test_find_local(self):
dist = Distribution.find_local()
dist = Distribution._local()
assert dist.metadata['Name'] == 'local-pkg'
assert dist.version == '2.0.1'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment