Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f99047c
Test quickstart using local compile.py
chewy-zlai Dec 19, 2024
10f3c71
comment out chronon-ai requirement
chewy-zlai Dec 23, 2024
f390818
Rename repo to zipline-ai, and rename commands to 'compile', 'explore…
chewy-zlai Dec 23, 2024
ce2f019
unstage changes to docker files
chewy-zlai Dec 23, 2024
a913efd
Revert docker changes, and revert version override
chewy-zlai Dec 23, 2024
bd4ee10
Revert version override
chewy-zlai Dec 23, 2024
93322e2
revert change to quickstart/requirements
chewy-zlai Dec 23, 2024
0741118
Add blank spaces
chewy-zlai Dec 23, 2024
f1ca3d1
Refactor run.py to use click and setup zipline command
chewy-zlai Jan 3, 2025
01ac2aa
format files
chewy-zlai Jan 3, 2025
f35985d
fix multi-line comment
chewy-zlai Jan 3, 2025
fef3186
intellij format code
chewy-zlai Jan 3, 2025
ba5bcc9
fix formatting
chewy-zlai Jan 3, 2025
80384d9
Merge branch 'main' of https://github.com/zipline-ai/chronon into che…
chewy-zlai Jan 3, 2025
7679303
Update test_run to use click instead of argparse and get the tests pa…
chewy-zlai Jan 5, 2025
1d52e11
fix lint
chewy-zlai Jan 5, 2025
294a6e9
revert changes to explore.py, leaving it out for now
chewy-zlai Jan 5, 2025
b51f94a
Merge branch 'main' of https://github.com/zipline-ai/chronon into che…
chewy-zlai Jan 6, 2025
190cc52
Remove defaults before processing, and add support for spark 3.5.1
chewy-zlai Jan 6, 2025
d539acf
Merge branch 'main' into chewys/setup_python_build
tchow-zlai Jan 7, 2025
83d6bf9
Merge branch 'main' into chewys/setup_python_build
chewy-zlai Jan 9, 2025
9e015ee
Move google-cloud-storage to base requirements from dev for building …
chewy-zlai Jan 10, 2025
a2cb521
Include dataproc flag
chewy-zlai Jan 10, 2025
cc331be
Set default for dataproc flag
chewy-zlai Jan 10, 2025
96a2154
Add dataproc flag to main
chewy-zlai Jan 10, 2025
8e23f46
lint
chewy-zlai Jan 10, 2025
8c47670
Don't import certifi as it causes snyk to complain
chewy-zlai Jan 10, 2025
20bbf1e
update scala_version_for_spark
chewy-zlai Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/py/ai/chronon/repo/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_folder_name_from_class_name(class_name):
return {v.__name__: k for k, v in FOLDER_NAME_TO_CLASS.items()}[class_name]


@click.command()
@click.command(name='compile')
@click.option(
"--chronon_root",
envvar="CHRONON_ROOT",
Expand Down
274 changes: 117 additions & 157 deletions api/py/ai/chronon/repo/run.py

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions api/py/ai/chronon/repo/zipline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import click

from ai.chronon.repo.compile import extract_and_convert
from ai.chronon.repo.run import main as run_main


@click.group()
def zipline():
pass


zipline.add_command(extract_and_convert)
zipline.add_command(run_main)
1 change: 1 addition & 0 deletions api/py/requirements/base.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
click
thrift==0.21.0
google-cloud-storage==2.19.0
52 changes: 51 additions & 1 deletion api/py/requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,63 @@
# SHA1:e6acf05ccde0547fea15f1185172abe12ea24af2
# SHA1:fe8b0a1dc101ff0b0ffa9a959160d459b7f7d0e3
#
# This file is autogenerated by pip-compile-multi
# To update, run:
#
# pip-compile-multi
#
cachetools==5.5.0
# via google-auth
certifi==2024.12.14
# via requests
charset-normalizer==3.4.1
# via requests
click==8.1.8
# via -r requirements/base.in
google-api-core==2.24.0
# via
# google-cloud-core
# google-cloud-storage
google-auth==2.37.0
# via
# google-api-core
# google-cloud-core
# google-cloud-storage
google-cloud-core==2.4.1
# via google-cloud-storage
google-cloud-storage==2.19.0
# via -r requirements/base.in
google-crc32c==1.6.0
# via
# google-cloud-storage
# google-resumable-media
google-resumable-media==2.7.2
# via google-cloud-storage
googleapis-common-protos==1.66.0
# via google-api-core
idna==3.10
# via requests
proto-plus==1.25.0
# via google-api-core
protobuf==5.29.3
# via
# google-api-core
# googleapis-common-protos
# proto-plus
pyasn1==0.6.1
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.4.1
# via google-auth
requests==2.32.3
# via
# google-api-core
# google-cloud-storage
rsa==4.9
# via google-auth
six==1.17.0
# via thrift
thrift==0.21.0
# via -r requirements/base.in
urllib3==2.3.0
# via requests
4 changes: 1 addition & 3 deletions api/py/requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ pre-commit
isort
autoflake
zipp==3.19.1
importlib-metadata==8.4.0
google-cloud-storage==2.19.0

importlib-metadata==8.4.0
52 changes: 1 addition & 51 deletions api/py/requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SHA1:06b28bca353cb7f65a2a3712ef7c6deaeb35f0bb
# SHA1:fb02b7333620d08e6d72ffb575b99015aee7c274
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand All @@ -10,16 +10,10 @@ autoflake==2.3.1
# via -r requirements/dev.in
black==24.10.0
# via -r requirements/dev.in
cachetools==5.5.0
# via
# google-auth
# tox
cfgv==3.4.0
# via pre-commit
chardet==5.2.0
# via tox
charset-normalizer==3.4.1
# via requests
colorama==0.4.6
# via tox
coverage[toml]==7.6.10
Expand All @@ -30,31 +24,8 @@ filelock==3.16.1
# via
# tox
# virtualenv
google-api-core==2.24.0
# via
# google-cloud-core
# google-cloud-storage
google-auth==2.37.0
# via
# google-api-core
# google-cloud-core
# google-cloud-storage
google-cloud-core==2.4.1
# via google-cloud-storage
google-cloud-storage==2.19.0
# via -r requirements/dev.in
google-crc32c==1.6.0
# via
# google-cloud-storage
# google-resumable-media
google-resumable-media==2.7.2
# via google-cloud-storage
googleapis-common-protos==1.66.0
# via google-api-core
identify==2.6.5
# via pre-commit
idna==3.10
# via requests
importlib-metadata==8.4.0
# via -r requirements/dev.in
iniconfig==2.0.0
Expand Down Expand Up @@ -84,19 +55,6 @@ pluggy==1.5.0
# tox
pre-commit==4.0.1
# via -r requirements/dev.in
proto-plus==1.25.0
# via google-api-core
protobuf==5.29.3
# via
# google-api-core
# googleapis-common-protos
# proto-plus
pyasn1==0.6.1
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.4.1
# via google-auth
pyflakes==3.2.0
# via autoflake
pyproject-api==1.8.0
Expand All @@ -107,16 +65,8 @@ pytest-cov==6.0.0
# via -r requirements/dev.in
pyyaml==6.0.2
# via pre-commit
requests==2.32.3
# via
# google-api-core
# google-cloud-storage
rsa==4.9
# via google-auth
tox==4.23.2
# via -r requirements/dev.in
urllib3==2.3.0
# via requests
virtualenv==20.28.1
# via
# pre-commit
Expand Down
10 changes: 7 additions & 3 deletions api/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ def get_version():
],
long_description=long_description,
long_description_content_type="text/markdown",
scripts=['ai/chronon/repo/explore.py', 'ai/chronon/repo/compile.py', 'ai/chronon/repo/run.py'],
description="Chronon python API library",
entry_points={
"console_scripts": [
"zipline=ai.chronon.repo.zipline:zipline",
]
},
description="Zipline python API library",
include_package_data=True,
install_requires=basic_requirements,
name="chronon-ai",
name="zipline-ai",
packages=find_packages(),
extras_require={
# Extra requirement to have access to cli commands in python2 environments.
Expand Down
Loading
Loading