This repository was archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathsetup.py
46 lines (36 loc) · 1.41 KB
/
setup.py
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
"""
Setup for PySpark type annotations.
Notes:
- To avoid manual PYTHONPATH modification the package installation will overlay PySpark installation. If this is not acceptable please download source and add it to PYTHONPATH manually.
"""
from setuptools import setup
import os
import sys
# find_packages doesn't seem to handle stub files
# so we'll enumarate manually
src_path = os.path.join("third_party", "3")
def list_packages(src_path=src_path):
for root, _, _ in os.walk(os.path.join(src_path, "pyspark")):
yield ".".join(os.path.relpath(root, src_path).split(os.path.sep))
setup(
name="pyspark-stubs",
package_dir={"": src_path},
version="3.0.0.post4",
description="A collection of the Apache Spark stub files",
long_description=(
open("README.rst").read() if os.path.exists("README.rst") else ""
),
url="https://github.com/zero323/pyspark-stubs",
packages=list(list_packages()),
package_data={"": ["*.pyi", "py.typed"]},
install_requires=["pyspark>=3.0.0.dev0,<3.1.0"],
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Typing :: Typed",
],
)