Skip to content

Commit

Permalink
[packaging] update setup to be GH action compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
valayDave committed Sep 30, 2024
1 parent 9c90676 commit dfc19fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def start(self):
self.next(self.train, num_parallel=NUM_NODES)

@metaflow_ray
@batch(**RESOURCES)
@batch(**RESOURCES) # You can even set @kubernetes
@step
def train(self):
# Your step's training code here
Expand All @@ -44,7 +44,7 @@ def train(self):
3. Initialize Ray within Your Step
```python
@metaflow_ray
@batch(**RESOURCES)
@batch(**RESOURCES) # You can even set @kubernetes
@step
def train(self):
import ray
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

version = "0.1.0"

def get_long_description() -> str:
with open("README.md") as fh:
return fh.read()

setup(
name="metaflow-ray",
version=version,
description="An EXPERIMENTAL Ray decorator for Metaflow",
author="Riley Hun",
long_description=get_long_description(),
author_email="[email protected]",
packages=find_namespace_packages(include=["metaflow_extensions.*"]),
py_modules=[
Expand Down

0 comments on commit dfc19fc

Please sign in to comment.