File: pyproject.toml

package info (click to toggle)
pymssql 2.3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: python: 3,818; sh: 153; makefile: 151; ansic: 1
file content (105 lines) | stat: -rw-r--r-- 3,507 bytes parent folder | download
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
[build-system]
requires = [
    "packaging>=24.2",
    "setuptools>80.0",
    "setuptools_scm[toml]>=8.0",
    "wheel>=0.36.2",
    "Cython>=3.1.0",
    "tomli",
    "standard-distutils ; python_version>='3.12'"
    ]

[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.27"

[project]
name =  "pymssql"
dynamic =  ["version", "readme"]
description = 'DB-API interface to Microsoft SQL Server for Python. (new Cython-based version)'
license = "LGPL-2.1-or-later"
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.9"
classifiers=[
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "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 :: 3.14",
    "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-verbosity = 1
before-test = "pip install -r dev/requirements-test.txt"
test-requires = "pytest"
test-command = "pytest {project}/tests"
container-engine = { name = "docker", create-args = ["--network", "host"] }
skip = "cp31?t-*"

[tool.cibuildwheel.linux]
environment = { PYMSSQL_FREETDS = "./deps", LD_LIBRARY_PATH = "./deps/lib", CFLAGS = "-Wno-incompatible-pointer-types" }
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 = [
            "python3 ./dev/build.py --prefix=./deps",
            ]