Skip to content

Commit

Permalink
Bump dependencies (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans authored Sep 8, 2023
1 parent 17af60a commit 7ac6c11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
28 changes: 12 additions & 16 deletions metapkg/packages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,12 @@ def _get_build_requires(
def get_dist(
srcdir: pathlib.Path,
) -> distlib.database.InstalledDistribution:
builder = pypa_build.ProjectBuilder(
srcdir,
runner=pep517.default_subprocess_runner,
)

with pypa_build_env.IsolatedEnvBuilder() as env:
builder.python_executable = env.executable
builder.scripts_dir = env.scripts_dir
with pypa_build_env.DefaultIsolatedEnv() as env:
builder = pypa_build.ProjectBuilder.from_isolated_env(
env,
srcdir,
runner=pep517.default_subprocess_runner,
)
env.install(builder.build_system_requires)
env.install(builder.get_requires_for_build("wheel"))
with tempfile.TemporaryDirectory() as tmpdir:
Expand All @@ -267,14 +265,12 @@ def get_build_requires_from_srcdir(
package: mpkg.BasePackage,
path: pathlib.Path,
) -> list[poetry_dep.Dependency]:
builder = pypa_build.ProjectBuilder(
path,
runner=pep517.quiet_subprocess_runner,
)

with pypa_build_env.IsolatedEnvBuilder() as env:
builder.python_executable = env.executable
builder.scripts_dir = env.scripts_dir
with pypa_build_env.DefaultIsolatedEnv() as env:
builder = pypa_build.ProjectBuilder.from_isolated_env(
env,
path,
runner=pep517.default_subprocess_runner,
)
sys_reqs = builder.build_system_requires
env.install(sys_reqs)
pkg_reqs = builder.get_requires_for_build("wheel")
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
python_requires=">=3.9",
install_requires=[
"build~=0.8.0",
"distro~=1.7.0",
"requests~=2.27.0",
"build~=1.0.3",
"distro~=1.8.0",
"requests~=2.31.0",
"poetry~=1.2.0",
"distlib~=0.3.4",
"distlib~=0.3.7",
'python-magic~=0.4.26; platform_system=="Linux" or (platform_machine!="x86_64" and platform_machine!="AMD64")',
'python-magic-bin~=0.4.14; platform_system!="Linux" and platform_machine!="arm64"',
"wheel>=0.32.3",
Expand All @@ -30,7 +30,7 @@
],
extras_require={
"test": [
"types-requests~=2.25.9",
"types-requests~=2.31.0.2",
]
},
)

0 comments on commit 7ac6c11

Please sign in to comment.