Skip to content

Commit dfdbbcb

Browse files
committed
🐛 remove requirements.in
Signed-off-by: rjdbcm <rjdbcm@outlook.com>
1 parent 7c60f1f commit dfdbbcb

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

meson.build

-33
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,11 @@ root_files = [
2828
'README.rst',
2929
'CHANGELOG.md',
3030
'LICENSE.txt',
31-
'requirements.in',
3231
'pyproject.toml',
3332
'.gitignore',
3433
'.pre-commit-config.yaml',
3534
'NOTICE.md',
3635
]
37-
custom_target(
38-
'requirements-blastpipe',
39-
input: root_files[3],
40-
output: 'requirements.txt',
41-
build_always_stale: true,
42-
build_by_default: true,
43-
command: [
44-
get_option('compile-requirements-command'),
45-
'--allow-unsafe',
46-
'--strip-extras',
47-
'-q',
48-
'--generate-hashes',
49-
'-o',
50-
'@OUTPUT@',
51-
'@INPUT@'
52-
]
53-
)
5436
python = pymod.find_installation()
5537
pyproject_config = configuration_data()
5638
pyproject_config.set(
@@ -61,21 +43,6 @@ pyproject_config.set('SCM_VERSION', meson.project_version())
6143
pyproject_config.set('VCS_TAG', '@VCS_TAG@')
6244
pyproject_config.set('PROJECT_NAME', project_name)
6345
pyproject_config.set('README_TEXT', fs.read('README.rst'))
64-
pyproject_config.set('REQUIREMENTS_IN',
65-
run_command(
66-
python, ['-c', '''import os;import pathlib
67-
requirements = (
68-
r.partition('\u0023')[0]
69-
for r in filter(
70-
lambda r: not (r.startswith('\u0023') or r == '\n'),
71-
pathlib.Path('./requirements.in').read_text('utf-8').splitlines(),
72-
)
73-
)
74-
for req in requirements:
75-
print(f'Requires-Dist: {req}')
76-
'''], check: true
77-
).stdout().strip()
78-
)
7946
pyproject_config.set('LICENSE', meson.project_license()[0])
8047
configure_file(
8148
input: 'pyproject.toml',

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ package = wheel
339339
deps =
340340
uv
341341
commands_pre =
342-
python -m uv pip install -r requirements.in OZI.build[uv,core]~=1.10.1
342+
python -m uv pip install -r OZI.build[uv,core]~=1.10.1
343343
commands =
344344
meson setup {env_tmp_dir} -Dozi:dist=disabled -Dozi:tox-env-dir={env_dir}
345345
meson compile -C {env_tmp_dir}

0 commit comments

Comments
 (0)