Skip to content
Snippets Groups Projects
Commit 341de59f authored by Ricard Zarco Badia's avatar Ricard Zarco Badia
Browse files

Added unofficial support for python < 3.11 to biobb packages. Stability not...

Added unofficial support for python < 3.11 to biobb packages. Stability not tested, but enables installation using python 3.10.8.
parent cf2dd094
No related branches found
No related tags found
3 merge requests!386update v0.20.0 branch,!379create new experimental release,!375Added unofficial support for python < 3.11 to biobb packages. Stability not...
......@@ -20,6 +20,16 @@ class BiobbAnalysis(PythonPackage):
depends_on('gromacs')
depends_on('ambertools')
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
filter_file(
"'Programming Language :: Python :: 3.9'",
"'Programming Language :: Python :: 3.9',\r\n "
"'Programming Language :: Python :: 3.10'",
"setup.py",
)
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -21,6 +21,16 @@ class BiobbChemistry(PythonPackage):
depends_on('ambertools')
depends_on('acpype')
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
filter_file(
"'Programming Language :: Python :: 3.9'",
"'Programming Language :: Python :: 3.9',\r\n "
"'Programming Language :: Python :: 3.10'",
"setup.py",
)
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -20,6 +20,10 @@ class BiobbCommon(PythonPackage):
depends_on('py-requests', type=('build', 'run'))
depends_on('py-biopython@1.78:1.80', type=('build', 'run'))
# Custom patch to enable python 3.10.8 for this package
def patch(self):
filter_file(" python_requires='>=3.7,<=3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -16,6 +16,10 @@ class BiobbGromacs(PythonPackage):
depends_on('biobb-common')
depends_on('gromacs')
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -15,6 +15,16 @@ class BiobbIo(PythonPackage):
depends_on('biobb-common')
depends_on('python@3.8:', type=('build', 'run'))
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
filter_file(
"'Programming Language :: Python :: 3.9'",
"'Programming Language :: Python :: 3.9',\r\n "
"'Programming Language :: Python :: 3.10'",
"setup.py",
)
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -16,6 +16,16 @@ class BiobbModel(PythonPackage):
depends_on('biobb-common')
depends_on('biobb-structure-checking')
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
filter_file(
"'Programming Language :: Python :: 3.9'",
"'Programming Language :: Python :: 3.9',\r\n "
"'Programming Language :: Python :: 3.10'",
"setup.py",
)
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
......@@ -16,6 +16,16 @@ class BiobbStructureUtils(PythonPackage):
depends_on('biobb-common')
depends_on('biobb-structure-checking')
# Patching to enable python 3.10 (not official, might not be stable)
def patch(self):
filter_file(" python_requires='>=3.7,<3.10',", " python_requires='>=3.7,<3.11',", "setup.py")
filter_file(
"'Programming Language :: Python :: 3.9'",
"'Programming Language :: Python :: 3.9',\r\n "
"'Programming Language :: Python :: 3.10'",
"setup.py",
)
# Test
@run_after('install')
@on_package_attributes(run_tests=True)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment