Skip to content

Drop support for EOL software components #424

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

Merged
merged 9 commits into from
May 25, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

steps:
- name: Acquire sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: '3.9'

- name: Build docs
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version: ['3.7', '3.8', '3.9', '3.10']
cratedb-version: ['nightly']
sqla-version: ['1.1.18', '1.2.19', '1.3.23']
sqla-version: ['1.3.24']
fail-fast: false

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

- name: Set up python 3.8
uses: actions/setup-python@v1
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: '3.9'

- name: Build package
run: |
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']
cratedb-version: ['4.8.0']
sqla-version: ['1.1.18', '1.2.19', '1.3.24']
sqla-version: ['1.3.24']
fail-fast: true

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,23 +36,17 @@ jobs:
echo "/usr/local/opt/gnu-getopt/bin" >> $GITHUB_PATH

- name: Install dependencies
if: |
!(matrix.sqla-version == '1.1.18' && matrix.python-version == '3.10')
run: |
./devtools/setup_ci.sh --cratedb-version=${{ matrix.cratedb-version }} --sqlalchemy-version=${{ matrix.sqla-version }}

- name: Invoke tests
if: |
!(matrix.sqla-version == '1.1.18' && matrix.python-version == '3.10')
run: |
bin/flake8
bin/coverage run bin/test -vv1
bin/coverage xml

# https://github.com/codecov/codecov-action
- name: Upload coverage results to Codecov
if: |
!(matrix.sqla-version == '1.1.18' && matrix.python-version == '3.10')
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
8 changes: 7 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ Changes for crate
Unreleased
==========

- Added official support for Python 3.9 and 3.10.
- Added support for Python 3.9 and 3.10.

- Dropped support for Python 3.4, 3.5 and 3.6.

- Dropped support for SQLAlchemy 1.1 and 1.2.

- Dropped support for CrateDB < 2.0.0.

- BREAKING CHANGE: The driver now verifies SSL certificates when connecting via
HTTP by default. Previously, this setting defaulted to false. This setting
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CrateDB Python Adapter
Copyright 2013-2018 Crate.IO GmbH ("Crate")
Copyright 2013-2022 Crate.IO GmbH ("Crate")


Licensed to Crate.IO GmbH (referred to in this notice as "Crate") under one or
Expand Down
20 changes: 8 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ A Python client library for CrateDB_.
This library:

- Implements the Python `DB API 2.0`_ specification
- Includes support for SQLAlchemy_ (>= 1.0.0)
- Includes support for SQLAlchemy_ (>= 1.3.0)

Prerequisites
=============

Recent versions of this library require **Python 3** (>= 3.4) to run.
Recent versions of this library are validated on Python 3 (>= 3.7).
It might also work on earlier versions of Python.

Use version ``0.21.x`` if you are running Python 2.7/3.3 or version ``0.14.x``
if you are running Python 2.6.

Installation
============
Expand All @@ -67,11 +66,8 @@ To install, run::

To update, run::

$ pip install -U crate
$ pip install --upgrade crate

If you use Python 2.7 or 3.3 with a recent version of pip_, it will install
only version ``0.21.x`` by default, because newer versions of this package are
not compatible with Python 2.7/3.3 any more.

Contributing
============
Expand All @@ -90,12 +86,12 @@ Looking for more help?
- Check out our `support channels`_

.. _contribution docs: CONTRIBUTING.rst
.. _Crate.io: http://crate.io/
.. _Crate.io: https://crate.io/
.. _CrateDB: https://github.com/crate/crate
.. _DB API 2.0: http://www.python.org/dev/peps/pep-0249/
.. _developer docs: DEVELOP.rst
.. _pip: https://pypi.python.org/pypi/pip
.. _SQLAlchemy: http://www.sqlalchemy.org
.. _StackOverflow: https://stackoverflow.com/tags/crate
.. _SQLAlchemy: https://www.sqlalchemy.org
.. _StackOverflow: https://stackoverflow.com/tags/cratedb
.. _support channels: https://crate.io/support/
.. _project docs: https://crate.io/docs/reference/python/
.. _project docs: https://crate.io/docs/python/
3 changes: 0 additions & 3 deletions devtools/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ function main() {

python -m pip install --upgrade pip

# Workaround needed for Python 3.5
python -m pip install --upgrade "setuptools>=31,<51"

pip install zc.buildout==2.13.4

# Replace SQLAlchemy version.
Expand Down
204 changes: 0 additions & 204 deletions docs/appendices/compatibility.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/appendices/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ Supplementary information for the CrateDB Python client library.
:maxdepth: 2

data-types
compatibility
Loading