forked from pymssql/pymssql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (99 loc) · 3.65 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (99 loc) · 3.65 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = [
"packaging>=24",
"setuptools>=54.0",
"setuptools_scm[toml]>=8.0",
"wheel>=0.36.2",
"Cython>=3.0.10",
"tomli",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"pymssql" = ["py.typed"]
[tool.setuptools_scm]
write_to = "src/pymssql/version.h"
write_to_template = 'const char* PYMSSQL_VERSION = "{version}";'
local_scheme = "no-local-version"
[tool.freetds]
version_for_pypi_wheels = "1.4.26"
[project]
name = "pymssql"
dynamic = ["version", "readme"]
description = 'DB-API interface to Microsoft SQL Server for Python. (new Cython-based version)'
license = { text = "LGPL" }
authors = [{name = "Damien Churchill", email = "damoxc@gmail.com"}]
maintainers = [{name = "Mikhail Terekhov", email = "termim@gmail.com"}]
keywords = ['mssql', 'SQL Server', 'database', 'DB-API']
requires-python = ">=3.8"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2.1 only",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
]
[project.urls]
homepage = "https://github.com/pymssql/pymssql"
repository = "https://github.com/pymssql/pymssql"
documentation = "http://pymssql.readthedocs.io"
"Bug Tracker" = "https://github.com/pymssql/pymssql/issues"
"Changelog" = "https://github.com/pymssql/pymssql/blob/master/ChangeLog.rst"
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
build-verbosity = 1
before-test = "pip install -r dev/requirements-dev.txt"
test-requires = "pytest"
test-command = "pytest {project}/tests"
[tool.cibuildwheel.linux]
environment = { PYMSSQL_FREETDS = "./deps", LD_LIBRARY_PATH = "./deps/lib" }
before-all = [
"yum install -y openssl-devel krb5-devel",
"python3 ./dev/build.py --prefix=./deps --enable-krb5 --static-freetds"
]
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = [
"apk add openssl-dev krb5-dev",
"python3 ./dev/build.py --prefix=./deps --enable-krb5 --static-freetds"
]
[tool.cibuildwheel.macos]
environment = { PYMSSQL_FREETDS = "./deps", LD_LIBRARY_PATH = "./deps/lib" }
before-all = [
"brew install openssl",
"brew install libiconv",
"python3 ./dev/build.py --prefix=./deps --static-freetds"
]
[[tool.cibuildwheel.overrides]]
select = "*macosx_x86_64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET="13.0"
[[tool.cibuildwheel.overrides]]
select = "*macosx_arm64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET="14.0"
[tool.cibuildwheel.windows]
environment = { PYMSSQL_FREETDS = "./deps", LD_LIBRARY_PATH = "./deps/lib" }
before-all = [
"choco install gperf",
"choco install openssl --version=3.1.1",
"python3 ./dev/build.py --prefix=./deps",
]
[[tool.cibuildwheel.overrides]]
select = "*-win_x86"
before-all = [
"choco install gperf",
"choco install openssl --forcex86 --version=1.1.1.2100",
"python3 ./dev/build.py --prefix=./deps --wheel"
]