forked from spark-jobserver/spark-jobserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc(Python): Replace python 2 with python 3
Python 2 has reached EOL last year and should not be used anymore. This commit replaces all references to the "python" binary with the more explicit "python3" binary. If desired, the build can still be performed for Python 2 by settings the "PYTHON_EXECUTABLE" environment variable to an appropriate version. Additionally, python wheels are the preferred way to distribute python code (see https://packaging.python.org/discussions/wheel-vs-egg/). This commit additionally builds the job-server-python wheel. Spark-2.4 does not support python >= 3.8 (see apache/spark#26194) leading to failed test cases (TypeError: an integer is required (got type bytes)). If you encounter these issues try to state a python executable < 3.8 explicitly.
- Loading branch information
Marc Zoeller
committed
Jan 20, 2021
1 parent
15f457d
commit 45fafe6
Showing
13 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
pip install --upgrade pip | ||
pip install --user pyhocon | ||
pip3 install --upgrade pip | ||
pip3 install --user pyhocon | ||
pip install --user pycodestyle | ||
pip3 install --user pycodestyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env bash | ||
export SJS_VERSION=$1 | ||
python $2 build --build-base ../../target/python \ | ||
$2 $3 build --build-base ../../target/python \ | ||
egg_info --egg-base ../../target/python \ | ||
bdist_egg --bdist-dir /tmp/bdist --dist-dir ../../target/python --skip-build | ||
|
||
$2 $3 build --build-base ../../target/python \ | ||
bdist_wheel --bdist-dir /tmp/bdist --dist-dir ../../target/python --skip-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#Scala #akka @ApacheSpark | ||
# Scala #akka @ApacheSpark | ||
|
||
## Breaking Changes: | ||
The authentication management has been refactored. As a consequence, existing `shiro` configuration sections have to be | ||
adapted. Previously, `shiro` configuration had to be provided at root level without a prefix. Now, `shiro` configuration | ||
has to be embedded in an additional `access-control` block. An example configuration is available in the | ||
[sources](../job-server/src/main/resources/application.conf#L322). | ||
|
||
- The authentication management has been refactored. As a consequence, existing `shiro` configuration sections have to | ||
be adapted. Previously, `shiro` configuration had to be provided at root level without a prefix. Now, `shiro` | ||
configuration has to be embedded in an additional `access-control` block. An example configuration is available in the | ||
[sources](../job-server/src/main/resources/application.conf#L322). | ||
- The default Python version is switched from Python 2 to Python 3 (namely, from `python` to `python3`). If you would | ||
still like to use Python 2, adapt the Python executable in | ||
the [application.conf](../job-server/src/main/resources/application.conf#L210). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters