@@ -28,29 +28,11 @@ root_files = [
28
28
' README.rst' ,
29
29
' CHANGELOG.md' ,
30
30
' LICENSE.txt' ,
31
- ' requirements.in' ,
32
31
' pyproject.toml' ,
33
32
' .gitignore' ,
34
33
' .pre-commit-config.yaml' ,
35
34
' NOTICE.md' ,
36
35
]
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
- )
54
36
python = pymod.find_installation()
55
37
pyproject_config = configuration_data ()
56
38
pyproject_config.set(
@@ -61,21 +43,6 @@ pyproject_config.set('SCM_VERSION', meson.project_version())
61
43
pyproject_config.set(' VCS_TAG' , ' @VCS_TAG@' )
62
44
pyproject_config.set(' PROJECT_NAME' , project_name)
63
45
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
- )
79
46
pyproject_config.set(' LICENSE' , meson .project_license()[0 ])
80
47
configure_file (
81
48
input : ' pyproject.toml' ,
0 commit comments