diff --git a/packages/biobb-analysis/package.py b/packages/biobb-analysis/package.py index a392c635b79a77e7e9ce87ab17b2cbc100b1239a..bc47a809d5f135e96c286018061403feb846daa4 100644 --- a/packages/biobb-analysis/package.py +++ b/packages/biobb-analysis/package.py @@ -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) diff --git a/packages/biobb-chemistry/package.py b/packages/biobb-chemistry/package.py index 6b5f23e9e735e97941c6b381bb981145ad7dd559..47286633d74b9cf036141a1963d49b2e346215d7 100644 --- a/packages/biobb-chemistry/package.py +++ b/packages/biobb-chemistry/package.py @@ -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) diff --git a/packages/biobb-common/package.py b/packages/biobb-common/package.py index e093b9dbfbf6f2eba816501baaae3f4525f620f9..10e8cc1965177b637c38fa11ca325d6bed38ee13 100644 --- a/packages/biobb-common/package.py +++ b/packages/biobb-common/package.py @@ -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) diff --git a/packages/biobb-gromacs/package.py b/packages/biobb-gromacs/package.py index a9eb6c8edddc10e084dfd68aab61b37c494edee1..a682254412421657c5fe39adebd7412cdadf7245 100644 --- a/packages/biobb-gromacs/package.py +++ b/packages/biobb-gromacs/package.py @@ -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) diff --git a/packages/biobb-io/package.py b/packages/biobb-io/package.py index 698f2544ff1988fd905cea680a7245393df36d35..6d8e4b07d0f236bfdc74e5b0d331edf2994bd219 100644 --- a/packages/biobb-io/package.py +++ b/packages/biobb-io/package.py @@ -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) diff --git a/packages/biobb-model/package.py b/packages/biobb-model/package.py index 0dcf14b10c956cb9758add56b2ca6d01724b9192..012732d6ec89cd4c598f774852d6746054854be3 100644 --- a/packages/biobb-model/package.py +++ b/packages/biobb-model/package.py @@ -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) diff --git a/packages/biobb-structure-utils/package.py b/packages/biobb-structure-utils/package.py index 1d150a35e9f1e7c0de80c680dcacd3b94533b126..9987467d22d8ce62e65d183a09e36827e85b0c5a 100644 --- a/packages/biobb-structure-utils/package.py +++ b/packages/biobb-structure-utils/package.py @@ -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)