Skip to content

Commit 35189f5

Browse files
committed
Load pep517 from devpi. Update to newer API.
1 parent c7b3660 commit 35189f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

importlib_metadata/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ def _discover_resolvers():
199199

200200
@classmethod
201201
def find_local(cls, root='.'):
202+
import pep517.build as build
202203
import pep517.build_meta as bm
203-
system = bm.compat_build_system(root)
204-
builder = functools.partial(bm.build_meta, build_system=system)
204+
system = build.compat_system(root)
205+
builder = functools.partial(bm.build_meta, system=system)
205206
return PathDistribution(zipp.Path(bm.build_meta_as_zip(builder)))
206207

207208
@property

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ deps =
3232
py27: contextlib2
3333
pip >= 18
3434
packaging
35-
git+https://github.com/pypa/pep517@feature/build-meta-command
35+
pep517
3636
setenv =
37+
PIP_INDEX_URL=https://m.devpi.net/jaraco/pep517-meta
3738
cov: COVERAGE_PROCESS_START={[coverage]rcfile}
3839
cov: COVERAGE_OPTIONS="-p"
3940
cov: COVERAGE_FILE={toxinidir}/.coverage

0 commit comments

Comments
 (0)