generated from pdm-project/pdm
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Can't include nested data files in built wheel
* fix: Can't include nested data files in built wheel Fixes #205 Signed-off-by: Frost Ming <[email protected]> * add python 3.12 Signed-off-by: Frost Ming <[email protected]>
- Loading branch information
Showing
8 changed files
with
379 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
import shutil | ||
import subprocess | ||
from pathlib import Path | ||
from typing import Generator | ||
|
||
import pytest | ||
|
||
from pdm.backend import utils | ||
from tests import FIXTURES | ||
|
||
|
||
@pytest.fixture() | ||
def project_with_scm(tmp_path): | ||
project = FIXTURES / "projects/demo-using-scm" | ||
shutil.copytree(project, tmp_path / project.name) | ||
with utils.cd(tmp_path / project.name): | ||
subprocess.check_call(["git", "init"]) | ||
subprocess.check_call(["git", "config", "user.email", "[email protected]"]) | ||
subprocess.check_call(["git", "config", "user.name", "Name"]) | ||
subprocess.check_call(["git", "add", "."]) | ||
subprocess.check_call(["git", "commit", "-m", "initial commit"]) | ||
subprocess.check_call(["git", "tag", "-a", "0.1.0", "-m", "version 0.1.0"]) | ||
yield tmp_path / project.name | ||
@pytest.fixture | ||
def fixture_project(tmp_path: Path, name: str) -> Generator[Path, None, None]: | ||
project = FIXTURES / "projects" / name | ||
shutil.copytree(project, tmp_path / name) | ||
with utils.cd(tmp_path / name): | ||
yield tmp_path / name | ||
|
||
|
||
@pytest.fixture | ||
def dist(tmp_path: Path) -> Path: | ||
return tmp_path / "dist" | ||
|
||
|
||
@pytest.fixture | ||
def scm(fixture_project: Path) -> None: | ||
subprocess.check_call(["git", "init"]) | ||
subprocess.check_call(["git", "config", "user.email", "[email protected]"]) | ||
subprocess.check_call(["git", "config", "user.name", "Name"]) | ||
subprocess.check_call(["git", "add", "."]) | ||
subprocess.check_call(["git", "commit", "-m", "initial commit"]) | ||
subprocess.check_call(["git", "tag", "-a", "0.1.0", "-m", "version 0.1.0"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.