Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: removed Python 3.7 support #903

Merged
merged 2 commits into from Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Expand Up @@ -18,10 +18,10 @@ jobs:
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"

- name: Check that the current version isn't already on PyPi
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fetch.yml
Expand Up @@ -18,10 +18,10 @@ jobs:
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
- name: Update pip
run: python -m pip install --upgrade pip
- name: Get pip cache dir
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Expand Up @@ -20,10 +20,10 @@ jobs:
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
- name: Run pre-commit action
uses: pre-commit/action@v3.0.0

Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, "3.11"]
python-version: [3.8, "3.11"]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout the repo
Expand Down Expand Up @@ -125,10 +125,10 @@ jobs:
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
- name: Update pip
run: python -m pip install --upgrade pip
- name: Get pip cache dir
Expand Down Expand Up @@ -164,10 +164,10 @@ jobs:
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
- name: Update pip
run: python -m pip install --upgrade pip
- name: Get pip cache dir
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Expand Up @@ -75,7 +75,7 @@ To run the entire tests (units, integration and end-to-end):
you, please `install <https://pandoc.org/installing.html>`_ pandoc and try
again.

* eodag is tested against python versions 3.7, 3.8, 3.9, 3.10 and 3.11. Ensure you have
* eodag is tested against python versions 3.8, 3.9, 3.10 and 3.11. Ensure you have
these versions installed before you run tox. You can use
`pyenv <https://github.com/pyenv/pyenv>`_ to manage many different versions
of python
Expand Down
4 changes: 1 addition & 3 deletions eodag/utils/__init__.py
Expand Up @@ -1300,9 +1300,7 @@ def flatten_top_directories(nested_dir_root, common_subdirs_path=None):
if nested_dir_root != common_subdirs_path:
logger.debug(f"Flatten {common_subdirs_path} to {nested_dir_root}")
tmp_path = mkdtemp()
# need to delete tmp_path to prevent FileExistsError with copytree. Use dirs_exist_ok with py > 3.7
shutil.rmtree(tmp_path)
shutil.copytree(common_subdirs_path, tmp_path)
shutil.copytree(common_subdirs_path, tmp_path, dirs_exist_ok=True)
shutil.rmtree(nested_dir_root)
shutil.move(tmp_path, nested_dir_root)

Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -22,7 +22,6 @@ classifiers =
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Expand Up @@ -16,13 +16,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
envlist = py37, py38, py39, py310, py311, docs, pypi, linters
envlist = py38, py39, py310, py311, docs, pypi, linters
skipdist = true

# Mapping required by tox-gh-actions, only used in CI
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down