-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
113 lines (99 loc) · 3.19 KB
/
setup.py
File metadata and controls
113 lines (99 loc) · 3.19 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
########################################################################
# File based on https://github.com/Blosc/bcolz
########################################################################
#
# License: BSD
# Created: October 5, 2015
# Author: Carst Vaartjes - cvaartjes@visualfabriq.com
#
########################################################################
from __future__ import absolute_import
import codecs
import os
from sys import version_info as v
from setuptools import find_packages, setup
# Check this Python version is supported
if v < (3, 7):
raise Exception("Unsupported Python version %d.%d. Requires Python >= 3.7" % v[:2])
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
# Sources & libraries
sources = []
optional_libs = []
install_requires = [
"pyarrow>=22.0.0",
]
setup_requires = []
tests_requires = [
"pytest",
"coverage",
"duckdb>=1.0.0", # Test both PyArrow and DuckDB engines
"mypy", # Type checking
]
# Optional dependencies for DataFrame support
dataframe_requires = [
"numpy",
"pandas>=1.5.3",
"polars>=0.19.0",
]
# Performance optimization with DuckDB
performance_requires = [
"duckdb>=1.0.0",
]
# All optional dependencies
all_requires = dataframe_requires + performance_requires
extensions = []
package_data = {"parquery": ["py.typed"]}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
setup(
name="parquery",
description="A query and aggregation framework for Parquet",
long_description=read("README.md"),
long_description_content_type="text/markdown",
classifiers=classifiers,
author="Carst Vaartjes",
author_email="cvaartjes@visualfabriq.com",
maintainer="Jelle Verstraaten",
maintainer_email="jverstraaten@visualfabriq.com",
url="https://github.com/visualfabriq/parquery",
license="MIT",
platforms=["any"],
ext_modules=extensions,
cmdclass={},
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_requires,
extras_require={
"performance": performance_requires,
"dataframes": dataframe_requires,
"optional": all_requires, # backwards compatibility
"all": all_requires,
"test": tests_requires,
},
packages=find_packages(),
package_data=package_data,
include_package_data=True,
zip_safe=True,
)