-
Notifications
You must be signed in to change notification settings - Fork 263
1 of 3: Build a graphframes Python package during the build process
#512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f4e9cdb
c256244
6c3df0b
b2838d2
caf5091
7cfa2d1
2ca9a15
a8bf0be
54a942d
8b0e346
46c2b93
18b5da0
8eca097
277c06f
b55ee48
f8a8fd9
bc2cb36
728be33
3cea1a8
87cc975
6f84a5a
9a8eef0
75ecd99
80231d0
2a9170b
3de2263
4662717
1b7b9f8
58da493
9f4aa24
11b2782
9772344
d55dbfe
2fc4d08
8297a13
2035d98
f9f4bd7
9ddd6b2
7065647
a6c7e91
51e3e6d
272be06
4587999
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # GraphFrames `graphframes-py` Python Package | ||
|
|
||
| The is the officila [graphframes-py PyPI package](https://pypi.org/project/graphframes-py/), which is a Python wrapper for the Scala GraphFrames library. This package is maintained by the GraphFrames project and is available on PyPI. | ||
|
|
||
| For instructions on GraphFrames, check the project [../README.md](../README.md). See [Installation and Quick-Start](#installation-and-quick-start) for the best way to install and use GraphFrames. | ||
|
|
||
| ## Running `graphframes-py` | ||
|
|
||
| You should use GraphFrames via the `--packages` argument to `pyspark` or `spark-submit`, but this package is helpful in development environments. | ||
|
|
||
| ```bash | ||
| # Interactive Python | ||
| $ pyspark --packages graphframes:graphframes:0.8.4-spark3.5-s_2.12 | ||
|
|
||
| # Submit a script in Scala/Java/Python | ||
| $ spark-submit --packages graphframes:graphframes:0.8.4-spark3.5-s_2.12 script.py | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 0.8.4 |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| [tool.poetry] | ||
| name = "graphframes-py" | ||
| version = "0.8.4" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use something like this: https://pypi.org/project/poetry-dynamic-versioning/? |
||
| description = "GraphFrames: Graph Processing Framework for Apache Spark" | ||
| authors = ["GraphFrames Contributors <[email protected]>"] | ||
| license = "Apache 2.0" | ||
| readme = "README.md" | ||
| 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.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12" | ||
| ] | ||
|
|
||
| [tool.poetry.urls] | ||
| "Project Homepage" = "https://graphframes.github.io/graphframes" | ||
| "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.dependencies] | ||
| python = ">=3.9 <3.13" | ||
| nose = "1.3.7" | ||
| pyspark = "^3.4" | ||
| numpy = ">= 1.7" | ||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
| black = "^25.1.0" | ||
| flake8 = "^7.1.1" | ||
| isort = "^6.0.0" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like |
||
|
|
||
| [build-system] | ||
| requires = ["poetry-core"] | ||
| build-backend = "poetry.core.masonry.api" | ||
|
|
||
| [tool.black] | ||
| line-length = 100 | ||
| target-version = ["py39"] | ||
| include = ["graphframes"] | ||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
| src_paths = ["graphframes"] | ||
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it? Tests will work even without SPARK_HOME