-
Notifications
You must be signed in to change notification settings - Fork 45
/
pyproject.toml
107 lines (93 loc) · 2.82 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[project]
authors = [
{ name = "Josh Dimarsky", email = "[email protected]" }
]
classifiers = [
"Topic :: Database",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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 :: SQL",
]
description = "High-level wrapper around BCP for high performance data transfers between pandas and SQL Server. No knowledge of BCP required!!"
keywords = ["bcp", "mssql", "pandas"]
license = {text = "MIT License"}
maintainers = [
{ name = "Oliver Borchert", email = "[email protected]"}
]
name = "bcpandas"
readme = "README.md"
urls = { repository = "https://github.com/yehoshuadimarsky/bcpandas" }
dynamic = ["version"]
dependencies = [
# per https://github.com/apache/airflow/pull/40272 and https://github.com/numpy/numpy/issues/26710
"pandas[sql-other] >=2.2; python_version >='3.12'",
"pandas[sql-other] >=2.1.2, <2.2; python_version >='3.9' and python_version <='3.11'",
"pyodbc >=5.2; python_version >='3.13'",
"pyodbc >=5; python_version <='3.12'",
"sqlalchemy >=1.4; python_version <='3.12'",
"sqlalchemy >=2.0.31; python_version >='3.13'",
]
requires-python = ">=3.9,<=3.13"
[tool.setuptools.dynamic]
version = {attr = "bcpandas.__version__"}
[tool.setuptools]
# https://github.com/astral-sh/uv/issues/9513#issuecomment-2519527822
license-files = []
[dependency-groups]
dev = [
"pre-commit >=3",
"mypy >=1",
"ruff >=0.6",
"types-setuptools",
]
test = [
"codetiming >=1",
"docker >=6",
"hypothesis >=6.110",
"ipython >=8.10.0",
"matplotlib >=3.9.2",
"pytest >=7; python_version >='3.9' and python_version <='3.12'",
"pytest >=8; python_version >='3.13'",
"pytest-cov >=4",
"requests >=2",
]
[tool.uv]
default-groups = ["dev", "test"]
[project.entry-points."pandas.sql.engine"]
bcpandas = "bcpandas.main:to_sql"
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.ruff]
exclude = ["build"]
line-length = 99
target-version = "py39"
[tool.ruff.lint]
ignore = ["E501"]
select = [
"E",
"F",
"W",
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
force-wrap-aliases = true
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.mypy]
ignore_missing_imports = true
pretty = true
python_version = "3.9"
show_error_codes = true
[tool.pytest.ini_options]
addopts = "--showlocals --tb=short --strict-markers -v --cov=bcpandas --cov-report html --hypothesis-show-statistics"
[tool.coverage.run]
omit = ["bcpandas/tests/*", "benchmarks/**"]