Unverified Commit 778b5ad8 authored by Sébastien Eustace's avatar Sébastien Eustace
Browse files

Fix missing files in built wheels with extensions

parent 6d0aef0c
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@

- Fixed built wheels not getting information from the virtualenv.
- Fixed building wheel with conditional extensions.
- Fixed missing files in built wheel with extensions.


[0.6.2] - 2018-03-19
+0 −16
Changes for poetry/masonry/builders/wheel.py: 0 added lines, 16 removed lines.
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ from types import SimpleNamespace
from poetry.__version__ import __version__
from poetry.semver.constraints import Constraint
from poetry.semver.constraints import MultiConstraint
from poetry.vcs import get_vcs

from ..utils.helpers import normalize_file_permissions
from ..utils.tags import get_abbr_impl
@@ -163,23 +162,8 @@ class WheelBuilder(Builder):

    def find_excluded_files(self) -> list:
        # Checking VCS
        vcs = get_vcs(self._original_path)
        if not vcs:
        return []

        ignored = vcs.get_ignored_files()
        result = []
        for file in ignored:
            try:
                file = Path(file).absolute().relative_to(self._original_path)
            except ValueError:
                # Should only happen in tests
                continue

            result.append(file)

        return result

    @property
    def dist_info(self) -> str:
        return self.dist_info_name(self._package.name, self._package.version)