-
Notifications
You must be signed in to change notification settings - Fork 72
Publish nightly builds to dask conda channel
#263
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a980438
First pass at nightly builds recipe / workflow
charlesbluca 5f8e873
Add conda build test for PRs
charlesbluca 1c1d4c5
Use environ.get to grab GIT_DESCRIBE_NUMBER
charlesbluca 181e849
Fetch full branch/tag history for conda build
charlesbluca c7ce379
Use correct syntax for step kwargs
charlesbluca 41c99b8
Add nightly suffix to conda test build
charlesbluca 1c2cded
Change formatting of file string
charlesbluca dbb610e
Use run step for conda upload
charlesbluca 55fe7e7
Make sure secret token won't be printed in logs
charlesbluca 4b79747
Use ANACONDA_API_TOKEN env variable for authentication
charlesbluca a22b3d8
Upload package to conda channel on every commit
charlesbluca 69a7187
Only upload package when in upstream repo
charlesbluca c1d2b20
Update project home URL
charlesbluca d443e97
Only upload conda package for pushes to main branch
charlesbluca 14b8fbd
Add small SQL test for conda recipe
charlesbluca d298519
Install conda-verify when building
charlesbluca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| {% set name = "dask-sql" %} | ||
| {% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev') + environ.get('VERSION_SUFFIX', '') %} | ||
| {% set py_version=environ.get('CONDA_PY', 36) %} | ||
|
|
||
|
|
||
| package: | ||
| name: {{ name|lower }} | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| git_url: ../.. | ||
|
|
||
| build: | ||
| noarch: python | ||
| number: {{ GIT_DESCRIBE_NUMBER }} | ||
| string: py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
| script: {{ PYTHON }} -m pip install . --no-deps -vv | ||
|
|
||
| requirements: | ||
| build: | ||
| - maven >=3.6.0 | ||
| host: | ||
| - pip | ||
| - python >=3.6 | ||
| - setuptools_scm | ||
| run: | ||
| - python >=3.6 | ||
| - dask >=2.19.0,!=2021.3.0 | ||
| - pandas >=1.0.0 | ||
| - jpype1 >=1.0.2 | ||
| - openjdk >=8 | ||
| - fastapi >=0.61.1 | ||
| - uvicorn >=0.11.3 | ||
| - tzlocal >=2.1 | ||
| - prompt_toolkit >=3.0.8 | ||
| - pygments >=2.7.3 | ||
| - nest-asyncio >=1.0.0 | ||
|
|
||
| test: | ||
| commands: | ||
| - pip check | ||
| requires: | ||
| - pip | ||
charlesbluca marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| about: | ||
| home: https://github.com/dask-contrib/dask-sql | ||
| summary: SQL Query Layer for dask | ||
| license: MIT | ||
| license_file: LICENSE.txt | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import dask.dataframe as dd | ||
| import pandas as pd | ||
|
|
||
| from dask_sql import Context | ||
|
|
||
| c = Context() | ||
|
|
||
| data = """ | ||
| name,x | ||
| Alice,34 | ||
| Bob, | ||
| """ | ||
|
|
||
| df = pd.DataFrame({"name": ["Alice", "Bob", "Chris"] * 100, "x": list(range(300))}) | ||
| ddf = dd.from_pandas(df, npartitions=10) | ||
| c.create_table("my_data", ddf) | ||
|
|
||
| got = c.sql( | ||
| """ | ||
| SELECT | ||
| my_data.name, | ||
| SUM(my_data.x) AS "S" | ||
| FROM | ||
| my_data | ||
| GROUP BY | ||
| my_data.name | ||
| """ | ||
| ) | ||
| expect = pd.DataFrame({"name": ["Alice", "Bob", "Chris"], "S": [14850, 14950, 15050]}) | ||
|
|
||
| dd.assert_eq(got, expect) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.