From 7bca0cc802face5ba51f5ceb8d9a44c4a4bb4531 Mon Sep 17 00:00:00 2001 From: Esben Jannik Bjerrum Date: Sun, 13 Oct 2024 17:53:32 +0200 Subject: [PATCH] Deprecating Python 3.7 as scikit-learn supported is too old by now. Updating GitHub actions. --- .github/workflows/run_pytests.yaml | 16 +++++++--------- setup.cfg | 3 +-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run_pytests.yaml b/.github/workflows/run_pytests.yaml index af03347..ba645b1 100644 --- a/.github/workflows/run_pytests.yaml +++ b/.github/workflows/run_pytests.yaml @@ -25,38 +25,36 @@ jobs: python-version: 3.9 - os: ubuntu-latest python-version: 3.8 - - os: ubuntu-latest - python-version: 3.7 steps: - name: Checkout scikit_mol - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install scikit_mol run: python -m pip install -e .[dev] - name: Cache tests/data - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: tests/data key: ${{ runner.os }}-${{ hashFiles('tests/conftest.py') }} - name: Run Tests run: pytest --cov=./scikit_mol . - # deploy scikit_mol to pypi for tagged commits if tests pass + # deploy scikit_mol to pypi for tagged commits if tests pass deploy: - needs: [ tests ] + needs: [tests] name: deploy to pypi runs-on: ubuntu-latest # this checks that the commit is a tagged commit if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install dependencies diff --git a/setup.cfg b/setup.cfg index 846e928..a78631c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,7 +15,6 @@ classifiers = License :: OSI Approved :: Apache Software License Programming Language :: Python Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 @@ -28,7 +27,7 @@ classifiers = [options] packages = find: -python_requires = >=3.7 +python_requires = >=3.8 install_requires = rdkit numpy