Skip to content

Commit

Permalink
feat: packaging wheel file
Browse files Browse the repository at this point in the history
  • Loading branch information
farbodahm committed Oct 18, 2024
1 parent 5dbff7e commit 50c9c77
Show file tree
Hide file tree
Showing 6 changed files with 1,244 additions and 310 deletions.
1 change: 1 addition & 0 deletions examples/sparkle/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def main() -> None:
name=app.config.app_name,
description=app.config.__doc__ or "",
script_location="__main__.py",
number_of_workers=2,
)
for app in applications
],
Expand Down
5 changes: 5 additions & 0 deletions examples/sparkle/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

pip install -r requirements.txt --target dependencies/
python setup.py bdist_wheel --dist-dir artifacts
aws s3 cp artifacts/damavand_packages-0.1-py3-none-any.whl s3://my-spark-code-bucket20241009085845037400000001
5 changes: 2 additions & 3 deletions examples/sparkle/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
-e ../../../damavand
pyspark==3.3.2
pulumi
damavand @ git+https://github.com/DataChefHQ/damavand.git@1cf335462c873b5d3f938e1c58c7b7bc648ade74
sparkle @ git+https://github.com/DataChefHQ/[email protected]
13 changes: 13 additions & 0 deletions examples/sparkle/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from setuptools import setup, find_packages

setup(
name="damavand-packages",
version="0.1",
packages=find_packages(where="dependencies"),
package_dir={"": "dependencies"},
package_data={
"": ["*"],
},
include_package_data=True,
zip_safe=False,
)
Loading

0 comments on commit 50c9c77

Please sign in to comment.