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

Chore(deps-dev): Update pandas requirement from <2.2 to <2.3 #69

Merged
merged 3 commits into from
Jan 30, 2024
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
3 changes: 2 additions & 1 deletion influxio/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from yarl import URL

from influxio.model import InfluxDbAdapter, SqlAlchemyAdapter
from influxio.testdata import DataFrameFactory
from influxio.util.db import get_sqlalchemy_dialects

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -51,6 +50,8 @@ def copy(source: str, target: str, progress: bool = False):
raise NotImplementedError(f"Data sink not implemented: {target_url}")

if source_url.scheme == "testdata":
from influxio.testdata import DataFrameFactory

dff = DataFrameFactory(**source_url.query)
df = dff.make(source_url.host)
sink.write_df(df)
Expand Down
2 changes: 1 addition & 1 deletion influxio/testdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import numpy as np
import pandas as pd
from pandas._testing import makeMixedDataFrame, makeTimeDataFrame
from pandas.io.formats.info import DataFrameInfo
from pueblo.testing.pandas import makeMixedDataFrame, makeTimeDataFrame

logger = logging.getLogger(__name__)

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ dependencies = [
'importlib-metadata; python_version <= "3.9"',
"influxdb-client[ciso]<2",
"line-protocol-parser<2",
"pandas<2.2",
"pandas<2.3",
"psycopg2-binary<3",
"pueblo>=0.0.7",
"SQLAlchemy-Utils<0.42",
"yarl<2",
]
Expand Down Expand Up @@ -216,7 +217,7 @@ format = [
{ cmd = "black ." },
# Configure Ruff not to auto-fix (remove!) unused variables (F841) and `print` statements (T201).
{ cmd = "ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 ." },
{ cmd = "pyproject-fmt pyproject.toml" },
{ cmd = "pyproject-fmt --keep-full-version pyproject.toml" },
]

lint = [
Expand Down
Loading