Skip to content
Draft
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
8 changes: 0 additions & 8 deletions etc/config.ini

This file was deleted.

74 changes: 0 additions & 74 deletions etc/sdssdb.module

This file was deleted.

36 changes: 24 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ authors = [
description = "SDSS product for database management"
keywords = ["astronomy", "software", "database"]
license = {text = "BSD 3-Clause License", file = "LICENSE.md"}
requires-python = ">=3.9,<4.0"
requires-python = ">=3.10,<4.0"
dependencies = [
"pgpasslib>=1.1.0",
"psycopg[binary]>=3.2.13",
"peewee>=4.0.0",
"sqlalchemy>=2.0.0",
"psycopg2-binary>=2.9.11",
"sdsstools>=1.9.7",
"numpy>=1.18.2",
"numpy>=2.0.0",
"six>=1.12.0",
"psycopg2-binary>=2.9.11",
"typing-extensions>=4.16.0",
]

[project.urls]
Expand All @@ -30,6 +29,9 @@ file = "README.md"
content-type = "text/markdown"

[project.optional-dependencies]
sqlalchemy = ["sqlalchemy>=2.0.0"]
peewee = ["peewee>=4.0.0"]
sqlmodel = ["sqlmodel>=0.0.39"]
extras = [
"progressbar2>=3.46.1",
"pydot>=1.4.1",
Expand All @@ -50,18 +52,22 @@ extras = [
"psycopg[binary]>=3.2.13",
]
dev = [
"pytest>=5.2",
"pytest-cov>=2.4.0",
"pytest-sugar>=0.8.0",
"ipython>=8.0.0",
"ipdb>=0.13.2",
"pytest-postgresql>=2.2.1,<6",
"factory_boy>=2.12.0",
"pytest-factoryboy>=2.0.3",
"pyyaml>=5.1",
"ruff>=0.14.8",
"ty>=0.0.14",
]
test = [
"pytest>=5.2",
"pytest-cov>=2.4.0",
"pytest-sugar>=0.8.0",
"pytest-mock>=3.15.1",
"pytest-factoryboy>=2.0.3",
"pytest-postgresql>=2.2.1,<6",
"factory_boy>=2.12.0",
"testcontainers[postgres]>=4.15.0",
]
docs = [
"Sphinx>=7.0.0",
"furo>=2021.9.22",
Expand Down Expand Up @@ -117,7 +123,13 @@ asyncio_default_fixture_loop_scope = "function"
branch = true
include = ["python/sdssdb/*"]
omit = [
"*/__init__.py",
"python/sdssdb/peewee/sdss5db/**/*.py",
"python/sdssdb/peewee/lvmdb/*.py",
"python/sdssdb/peewee/operationsdb/**/*.py",
"python/sdssdb/sqlalchemy/sdss5db/*.py",
"python/sdssdb/sqlalchemy/operationsdb/**/*.py",
"python/sdssdb/sqlalchemy/mangadb/*.py",
"python/sdssdb/sqlalchemy/archive/*.py",
]

[tool.coverage.report]
Expand Down
11 changes: 1 addition & 10 deletions python/sdssdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
from sdsstools import get_config, get_logger, get_package_version


try:
from sqlalchemy.exc import MovedIn20Warning

warnings.filterwarnings("ignore", category=MovedIn20Warning)
except ModuleNotFoundError: # We are using SQLA > 2.0
pass


warnings.filterwarnings(
"ignore",
".*Skipped unsupported reflection of expression-based index .*q3c.*",
Expand All @@ -39,5 +31,4 @@
autoconnect = True


from .connection import PeeweeDatabaseConnection # noqa
from .connection import SQLADatabaseConnection # noqa
from .connection import *
Loading
Loading