Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12-alpine AS subsetter

RUN pip install -U pip tqdm
RUN pip install -U pip tqdm geoalchemy2

WORKDIR /subsetter

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ disable = [
"too-many-return-statements",
"too-many-instance-attributes",
"too-many-arguments",
"too-many-positional-arguments",
"consider-using-assignment-expr",
"use-dict-literal",
# handled by black
Expand Down
16 changes: 8 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
black~=24.3.0
isort~=5.13.2
mypy~=1.9.0
pylint~=3.1.0
black~=26.3.1
isort~=8.0.1
mypy~=1.20.2
pylint~=4.0.5

types-PyYAML
types-psycopg2
pylint_pydantic

pytest ~= 8.1
pytest-cov ~= 5.0
pytest-mysql ~= 2.5
pytest-postgresql ~= 6.0
pytest ~= 9.0
pytest-cov ~= 7.0
pytest-mysql ~= 4.0
pytest-postgresql ~= 8.0
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ url = http://github.com/msg555/subsetter/
classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14
License :: OSI Approved :: BSD License
Operating System :: OS Independent

Expand All @@ -27,7 +27,7 @@ install_requires =
sqlalchemy[mypy] ~= 2.0
pydantic ~= 2.6
pyyaml ~= 6.0
faker ~= 19.3
faker
typing-extensions

[options.extras_require]
Expand Down
2 changes: 1 addition & 1 deletion subsetter/plan_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def build(self, context: SQLBuildContext):
stmt = sa.select(table_obj)

if self.joins:
joined_cols: List[sa.ColumnExpression] = []
joined_cols: List[sa.ColumnElement] = []
joined: sa.FromClause = table_obj
exists_constraints: List[sa.ColumnExpressionArgument] = []
for join in self.joins: # pylint: disable=not-an-iterable
Expand Down
2 changes: 1 addition & 1 deletion subsetter/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def output_result_set(
multiplier: int = 1,
column_multipliers: Optional[Set[str]] = None,
) -> None:
(src_schema, src_table_name) = (schema, table_name)
src_schema, src_table_name = (schema, table_name)
schema, table_name = self._remap_table(src_schema, src_table_name)
table = self.meta.tables[(schema, table_name)]

Expand Down
3 changes: 0 additions & 3 deletions tests/test_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,20 @@ def db_config_sqlite(request):
pytest.param(
db_config_mysql,
marks=[
pytest.mark.usefixtures("mysql_proc"),
pytest.mark.mysql_live,
],
id="mysql",
),
pytest.param(
db_config_postgres,
marks=[
pytest.mark.usefixtures("postgresql_proc"),
pytest.mark.postgres_live,
],
id="postgres",
),
pytest.param(
db_config_sqlite,
marks=[
pytest.mark.usefixtures("sqlite_init_db"),
pytest.mark.sqlite_live,
],
id="sqlite",
Expand Down
Loading