Skip to content

Commit

Permalink
Update Python and Platform support (#30)
Browse files Browse the repository at this point in the history
* update support

* fix

* update

* fix

* update

* update
  • Loading branch information
goodwanghan authored May 7, 2022
1 parent 299115d commit b13c5f2
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 28 deletions.
17 changes: 5 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
"VARIANT": "3.7",
"INSTALL_NODE": "false",
"NODE_VERSION": "lts/*"
}
},
"name": "Fugue Development Environment",
"image": "fugueproject/devenv:0.4.4",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/local/bin/python",
Expand All @@ -30,7 +22,8 @@
"forwardPorts": [
8888
],
"postCreateCommand": [
"make devenv"
"postCreateCommand": "make devenv",
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
]
}
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test
name: Test Linux

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,9 +26,8 @@ jobs:
run: make devenv
- name: Test
run: make test
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveralls
coveralls
- name: "Upload coverage to Codecov"
if: matrix.python-version == 3.8
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
28 changes: 28 additions & 0 deletions .github/workflows/test_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test Windows

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make devenv
- name: Test
run: make test
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude: |
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.2.0
hooks:
- id: check-ast
- id: check-docstring-first
Expand All @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace
- id: check-vcs-permalinks
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.3'
rev: '3.9.2'
hooks:
- id: flake8
types: [python]
Expand All @@ -34,11 +34,11 @@ repos:
- flake8-tidy-imports
- pycodestyle
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
rev: v0.950
hooks:
- id: mypy
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
types: [python]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/adagio.svg)](https://pypi.python.org/pypi/adagio/)
[![PyPI license](https://img.shields.io/pypi/l/adagio.svg)](https://pypi.python.org/pypi/adagio/)
[![PyPI version](https://badge.fury.io/py/adagio.svg)](https://pypi.python.org/pypi/adagio/)
[![Coverage Status](https://coveralls.io/repos/github/fugue-project/adagio/badge.svg)](https://coveralls.io/github/fugue-project/adagio)
[![codecov](https://codecov.io/gh/fugue-project/adagio/branch/master/graph/badge.svg?token=P82AEINHFY)](https://codecov.io/gh/fugue-project/adagio)

[Join Fugue-Project on Slack](https://join.slack.com/t/fugue-project/shared_invite/zt-he6tcazr-OCkj2GEv~J9UYoZT3FPM4g)

A Dag IO framework for [Fugue projects](https://github.com/fugue-project)

## Installation

```
pip install adagio
```
2 changes: 1 addition & 1 deletion adagio/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from adagio.exceptions import AbortedError, SkippedError, WorkflowBug
from adagio.specs import ConfigSpec, InputSpec, OutputSpec, TaskSpec, WorkflowSpec
from six import reraise
from six import reraise # type: ignore
from triad.collections.dict import IndexedOrderedDict, ParamDict
from triad.exceptions import InvalidOperationError
from triad.utils.assertion import assert_or_throw as aot
Expand Down
2 changes: 1 addition & 1 deletion adagio_version/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.3"
__version__ = "0.2.4"
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
author_email="[email protected]",
keywords="adagio dag directed acyclic graph workflow",
url="http://github.com/fugue-project/adagio",
install_requires=["triad>=0.5.3"],
install_requires=["triad>=0.6.1"],
extras_require={},
classifiers=[
# "3 - Alpha", "4 - Beta" or "5 - Production/Stable"
Expand All @@ -28,6 +28,8 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
],
python_requires=">=3.6",
Expand Down

0 comments on commit b13c5f2

Please sign in to comment.