Skip to content
Snippets Groups Projects
Commit 4c82a5ff authored by florian's avatar florian
Browse files

TST: Add Python 3.7 to tests

parent 0e751e81
Branches
Tags
2 merge requests!91Release 0.3,!83Re-introduce Python 3.7
...@@ -17,7 +17,7 @@ classifiers = ...@@ -17,7 +17,7 @@ classifiers =
package_dir = package_dir =
= src = src
packages = find: packages = find:
python_requires = >=3.8 python_requires = >=3.7
install_requires = install_requires =
importlib-resources importlib-resources
caosdb > 0.10.0 caosdb > 0.10.0
...@@ -26,6 +26,7 @@ install_requires = ...@@ -26,6 +26,7 @@ install_requires =
pyyaml pyyaml
odfpy #make optional odfpy #make optional
pandas pandas
importlib_metadata;python_version<'3.8'
[options.packages.find] [options.packages.find]
where = src where = src
......
...@@ -17,13 +17,16 @@ ...@@ -17,13 +17,16 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
import importlib.metadata try:
from importlib import metadata as importlib_metadata
except ImportError: # Python<3.8 dowesn"t support this so use
import importlib_metadata
from packaging.version import parse as parse_version from packaging.version import parse as parse_version
from warnings import warn from warnings import warn
# Read in version of locally installed caoscrawler package # Read in version of locally installed caoscrawler package
version = importlib.metadata.version("caoscrawler") version = importlib_metadata.version("caoscrawler")
class CfoodRequiredVersionError(RuntimeError): class CfoodRequiredVersionError(RuntimeError):
......
[tox] [tox]
envlist = py38, py39, py310, py311 envlist = py37, py38, py39, py310, py311
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment