-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (83 loc) · 2.37 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (83 loc) · 2.37 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "airflow-postgres-csv"
version = "0.4.0"
description = "Airflow operators for PostgreSQL <-> CSV file transfers using COPY"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [{ name = "Qing Wan", email = "juveseason@gmail.com" }]
classifiers = [
"Framework :: Apache Airflow",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"apache-airflow>=2.9",
"apache-airflow-providers-postgres>=5.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov",
"ruff",
"prek",
"tox>=4.0",
]
[project.urls]
Repository = "https://github.com/Redevil10/airflow-postgres-csv"
[tool.hatch.build.targets.wheel]
packages = ["src/airflow_postgres_csv"]
[tool.ruff]
target-version = "py310"
line-length = 99
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.tox]
env_list = ["airflow2", "airflow3"]
[tool.tox.env.airflow2]
description = "Test against Apache Airflow 2.x (requires Python 3.10–3.13)"
skip_install = true
set_env = "PYTHONPATH = {toxinidir}/src"
deps = [
"apache-airflow>=2.9,<3.0",
"apache-airflow-providers-postgres>=5.0,<6.0",
"pytest>=8.0",
"pytest-cov",
]
commands = [["pytest", "--cov=airflow_postgres_csv", "--cov-report=xml", "{posargs:tests/}"]]
[tool.tox.env.airflow3]
description = "Test against Apache Airflow 3.x"
skip_install = true
set_env = "PYTHONPATH = {toxinidir}/src"
deps = [
"apache-airflow>=3.0",
"apache-airflow-providers-postgres>=6.0",
"pytest>=8.0",
"pytest-cov",
]
commands = [["pytest", "--cov=airflow_postgres_csv", "--cov-report=xml", "{posargs:tests/}"]]
[tool.tox.env.verify-airflow2]
description = "Verify the published PyPI package works with Airflow 2.x"
skip_install = true
deps = [
"airflow-postgres-csv",
"apache-airflow>=2.9,<3.0",
"apache-airflow-providers-postgres>=5.0,<6.0",
"pytest>=8.0",
]
commands = [["pytest", "{posargs:tests/}"]]
[tool.tox.env.verify-airflow3]
description = "Verify the published PyPI package works with Airflow 3.x"
skip_install = true
deps = [
"airflow-postgres-csv",
"apache-airflow>=3.0",
"apache-airflow-providers-postgres>=6.0",
"pytest>=8.0",
]
commands = [["pytest", "{posargs:tests/}"]]