| 1 |
# Copyright 2015-2024 Facundo Batista, Nicolás Demarchi |
| 2 |
# |
| 3 |
# This program is free software: you can redistribute it and/or modify it |
| 4 |
# under the terms of the GNU General Public License version 3, as published |
| 5 |
# by the Free Software Foundation. |
| 6 |
# |
| 7 |
# This program is distributed in the hope that it will be useful, but |
| 8 |
# WITHOUT ANY WARRANTY; without even the implied warranties of |
| 9 |
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 10 |
# PURPOSE. See the GNU General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU General Public License along |
| 13 |
# with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14 |
# |
| 15 |
# For further info, check https://github.com/PyAr/fades |
| 16 |
|
| 17 |
"""Helpers for the Cache tests collection.""" |
| 18 |
|
| 19 |
from fades.parsing import NameVerDependency |
| 20 |
|
| 21 |
|
| 22 |
def get_distrib(*dep_ver_pairs): |
| 23 |
"""Build some Distributions with indicated info.""" |
| 24 |
return [NameVerDependency(dep, ver) for dep, ver in dep_ver_pairs] |