-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (118 loc) · 4.08 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (118 loc) · 4.08 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[project]
name = "graphframes-py"
description = "GraphFrames: Graph Processing Framework for Apache Spark"
authors = [
{ name = "GraphFrames Contributors", email = "graphframes@googlegroups.com" },
]
maintainers = [
{ name = "Russell Jurney", email = "russell.jurney@gmail.com" },
{ name = "Sem", email = "ssinchenko@apache.org" },
{ name = "James Willis", email = "jimwillis95@gmail.com" },
]
license = "Apache 2.0"
readme = { file = "README.md", content-type = "text/markdown" }
keywords = [
"pyspark",
"network-analysis",
"pagerank",
"pregel",
"graph",
]
packages = [
{ include = "graphframes" },
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Database :: Front-Ends",
"Topic :: Scientific/Engineering",
]
dynamic = ["version"]
requires-python = ">=3.10"
[project.optional-dependencies]
# Dependencies of the `graphframes` CLI and the tutorial notebooks. These are
# declared as PEP 621 extras (not as a Poetry group) so that they are recorded
# in the published wheel metadata and can be installed with
# `pip install graphframes-py[tutorials]`.
tutorials = [
"click>=8.1.8,<9.0.0",
"py7zr>=1.1.3,<2.0",
"requests>=2.33.0,<3.0.0",
]
# `all` is spelled out rather than referencing `graphframes-py[tutorials]`
# because Poetry rejects self-referential extras when locking.
all = [
"click>=8.1.8,<9.0.0",
"py7zr>=1.1.3,<2.0",
"requests>=2.33.0,<3.0.0",
]
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
packages = [
{ include = "graphframes" },
]
version = "0.0.0"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
poetry-plugin-export = ">=1.8"
[tool.poetry-dynamic-versioning]
enable = true
[tool.poetry.urls]
"Project Homepage" = "https://graphframes.io"
"PyPi Homepage" = "https://pypi.org/project/graphframes-py"
"Code Repository" = "https://github.com/graphframes/graphframes"
"Bug Tracker" = "https://github.com/graphframes/graphframes/issues"
[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
flake8 = "^7.1.1"
isort = "^6.0.0"
pre-commit = "^4.6.1"
pyspark = { version = ">=3.5, <4.2", extras = ["connect"] }
pytest = "^9.0.3"
[tool.poetry.group.connect.dependencies]
pytest = "^9.0.3"
pyspark-client = ">=4.0,<4.2"
[tool.poetry.group.tutorials.dependencies]
py7zr = ">=1.1.3,<2.0"
requests = "^2.33.0"
click = "^8.1.8"
neo4j = "^6.2.0"
[tool.poetry.group.docs.dependencies]
sphinx = "^8.1"
setuptools = "*"
# Renders the tutorial Mermaid diagrams in graphframes/tutorials/generate_diagrams.py.
mermaidx = { version = "^0.9.4", python = ">=3.10,<4.0" }
[tool.poetry.scripts]
graphframes = "graphframes.console:main"
[tool.black]
line-length = 100
target-version = ["py39"]
# `include` must be a regex string, not a list. A list silently disables black's
# default `\.pyi?$` filter, making black try to parse non-Python files (Makefile,
# .rst, .css) when it is handed a directory.
include = "\\.pyi?$"
# The protobuf stubs are generated by `buf generate` (see buf.gen.yaml).
# Formatting them fights the generator: black's output is reverted the next time
# the stubs are regenerated, so the churn comes back on every regen.
# force-exclude (not exclude) is required, because exclude is ignored for paths
# passed explicitly on the command line.
force-exclude = "/graphframes/connect/proto/|/graphframes/tutorials/data/"
required-version = "23.12.1"
[tool.isort]
profile = "black"
src_paths = ["graphframes"]
# Generated protobuf stubs -- see the note under [tool.black].
extend_skip_glob = ["*/graphframes/connect/proto/*", "*/graphframes/tutorials/data/*"]
[tool.pytest]
testpaths = [
"tests"
]