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

[AP-1873] bump to Python 3.10 #1185

Merged
merged 15 commits into from
Oct 14, 2024
4 changes: 2 additions & 2 deletions .github/workflows/connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
continue-on-error: true
run: ./scripts/ci_check_no_file_changes.sh python

- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/[email protected]
with:
python-version: '3.8'
python-version: '3.10'

- name: Check PipelineWise and all connectors are installable
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
continue-on-error: true
run: ./scripts/ci_check_no_file_changes.sh python

- name: Set up Python 3.8
- name: Set up Python 3.10
if: steps.check.outcome == 'failure'
uses: actions/[email protected]
with:
python-version: '3.8'
python-version: '3.10'

- name: Install dependencies
if: steps.check.outcome == 'failure'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/[email protected]
with:
python-version: '3.8'
python-version: '3.10'

- name: check structure
run: ls -l gh_doc_automation
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
0.66.0 (2024-10-11)
-------------------
- Bump programming language to Python 3.10
- Bump `ansible-core` from `2.11.8` to `2.17.5`
- Bump `tzlocal` from `2.1.*` to `4.0.2` in `tap-mongodb`
- Bump `tzlocal` from `2.1` to `4.0.2` in `tap-mysql`
- Bump `pipelinewise-singer-python` from `1.*` to `2.*` in `target-postgres`
- Bump `pipelinewise-singer-python` from `1.*` to `2.*` in `target-snowflake`


0.65.3 (2024-09-13)
-------------------
- Bump `zenpy` in `tap-zendesk` from `2.0.0` to `2.0.52`
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim-buster
FROM python:3.10-slim-buster

ARG connectors=all

Expand All @@ -10,6 +10,7 @@ RUN apt-get -qq update \
libaio1 \
mbuffer \
wget \
tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& pip install -U --no-cache-dir pip

Expand Down
13 changes: 12 additions & 1 deletion dev-project/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -e

apt update

rm -f /usr/bin/python3
ln -s /usr/bin/python3.8 /usr/bin/python3

apt install -y software-properties-common python3-apt
add-apt-repository ppa:deadsnakes/ppa
apt update


DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata

apt install -y --no-install-recommends \
Expand All @@ -16,7 +24,10 @@ apt install -y --no-install-recommends \
mariadb-client \
mbuffer \
postgresql-client \
python3.8 python3-pip python3-venv python3-dev
python3.10 python3-pip python3.10-venv python3.10-dev

rm /usr/bin/python3
ln -s /usr/bin/python3.10 /usr/bin/python3

apt upgrade -y
# rm -rf /var/lib/apt/lists/* \
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
LONG_DESCRIPTION = f.read()

setup(name='pipelinewise',
python_requires='==3.8.*',
version='0.65.3',
python_requires='==3.10.*',
version='0.66.0',
description='PipelineWise',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
Expand All @@ -16,17 +16,18 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.10',
],
install_requires=[
'argparse==1.4.0',
'tabulate==0.8.9',
'PyYAML==6.0',
'ansible-core==2.11.8',
'ansible-core==2.17.5',
'Jinja2==3.1.2',
'joblib==1.3.2',
'PyMySQL==0.7.11',
'psycopg2-binary==2.9.5',
'numpy==1.26.4', # numpy 2.X is not compatible with our used pandas
'snowflake-connector-python[pandas]==3.0.4',
'pipelinewise-singer-python==1.*',
'python-pidfile==3.0.0',
Expand Down
3 changes: 2 additions & 1 deletion singer-connectors/tap-mongodb/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.10'
],
py_modules=['tap_mongodb'],
install_requires=[
'pipelinewise-singer-python==1.*',
'pymongo==4.7.*',
'tzlocal==2.1.*',
'tzlocal==4.0.2',
'terminaltables==3.1.*',
'dnspython==2.1.*',
],
Expand Down
2 changes: 1 addition & 1 deletion singer-connectors/tap-mysql/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'mysql-replication==0.43',
'PyMySQL==1.1.*',
'plpygis==0.2.1',
'tzlocal==2.1',
'tzlocal==4.0.2',
],
extras_require={
'test': [
Expand Down
2 changes: 1 addition & 1 deletion singer-connectors/tap-postgres/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python :: 3 :: Only'
],
python_requires=">=3.7,<3.10",
python_requires=">=3.10",
install_requires=[
'pipelinewise-singer-python==1.*',
'psycopg2-binary==2.9.5',
Expand Down
4 changes: 2 additions & 2 deletions singer-connectors/target-postgres/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
],
py_modules=["target_postgres"],
install_requires=[
'pipelinewise-singer-python==1.*',
'pipelinewise-singer-python==2.*',
'psycopg2-binary==2.9.5',
'inflection==0.3.1',
'joblib==1.2.0'
'joblib==1.2.0',
],
extras_require={
"test": [
Expand Down
4 changes: 3 additions & 1 deletion singer-connectors/target-snowflake/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
py_modules=["target_snowflake"],
python_requires='>=3.7',
install_requires=[
'pipelinewise-singer-python==1.*',
'pipelinewise-singer-python==2.*',
'numpy==1.26.4', # numpy 2.X is not compatible with our used pandas
'snowflake-connector-python[pandas]==3.0.4',
'inflection==0.5.1',
'joblib==1.2.0',
Expand Down
Loading