Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f898a05
Pass loop attribute to asyncio.ensure_future
max-k Nov 3, 2020
ff236d1
Merge pull request #1 from max-k/fix_loop_management
patkivikram Dec 7, 2020
74fcda9
Rename package and fix configuration files
max-k Dec 7, 2020
aa22dde
Fix typechecks
max-k Dec 15, 2020
148ed74
Fix apicheck
max-k Dec 15, 2020
f6a73fc
Fix unit tests
max-k Dec 16, 2020
ff67f5e
Merge pull request #2 from max-k/fix-project-name
max-k Dec 16, 2020
9e57359
Prepare first release
max-k Dec 16, 2020
b025ba0
Fix build status png url
max-k Dec 16, 2020
20b2dbf
Bump static analysis python version to 3.8.6
max-k Dec 16, 2020
e56c7f6
Disable Python 3.9 due to failing unit tests
max-k Dec 16, 2020
e6e0941
Upgrade OS used for Python 3.8 tests to latest LTS
max-k Dec 16, 2020
15ffd50
Update missed files related to bumpversion and documentation
max-k Dec 16, 2020
427379b
Update changelog
max-k Dec 16, 2020
cd0695e
Fix Python 3.9 support
max-k Dec 17, 2020
c462276
Add Python 3.9 support to Changelog
max-k Dec 17, 2020
32871a9
Add informations about fork in README
max-k Dec 17, 2020
1f652a7
Fix flake8
max-k Dec 17, 2020
20fa4d3
One more fix in unit tests related to 3.9 support
max-k Dec 17, 2020
32b2bfc
Merge pull request #5 from max-k/master
patkivikram Dec 17, 2020
f0fd4a1
Update README.rst
max-k Dec 21, 2020
fa96121
Print more infos about coverage
max-k Dec 21, 2020
9c7c56b
Port crontab timer from faust
lqhuang Oct 23, 2020
e411333
Add unit test cases for crontab timer
lqhuang Oct 23, 2020
30518b6
Add `mode.utils.cron` doc module
lqhuang Oct 23, 2020
9dad5b4
Fix missing type hints
lqhuang Nov 2, 2020
ce20621
Merge pull request #6 from lqhuang/crontab-timer-streaming
max-k Feb 9, 2021
14e5aef
run black and isort on all python files
Aug 5, 2021
8fc4770
set black for isort profile
Aug 5, 2021
717de4a
fix flake8 plugins to be compatible with black and isort
Aug 7, 2021
c47b609
stub _eval_type and _type_check if not available
Aug 7, 2021
71ab36e
add flake8-bandit
Aug 7, 2021
9325f9f
surpress a couple of bandit warnings
Aug 7, 2021
5994429
Merge pull request #10 from taybin/reformat_with_black
taybin Aug 9, 2021
1c79904
test on python 3.10
Oct 13, 2021
3be51ef
Removes use of deprecated and removed loop arguments
Oct 13, 2021
8524be6
use bionic for testing python 3.10 with travis
Oct 13, 2021
eb5aad0
just run linters on python 3.8 (for now)
Oct 13, 2021
cbe20e2
run linters on bionic VM
Oct 13, 2021
b404eca
some workarounds for flake8-isort
Oct 13, 2021
d70ec60
use pre-commit to enforce formatting
Oct 13, 2021
5b98293
fix typecheck linter
Oct 13, 2021
79dd630
test 3.9.6 on focal and ignore 3.9.1
Oct 13, 2021
4aee4cd
Merge pull request #11 from taybin/python3.10_support
taybin Oct 14, 2021
06a50a8
set version 0.2.0
Oct 14, 2021
1bb7a52
set long_description_content_type
Oct 14, 2021
f9f39d0
let pypi know mode supports 3.10
Jan 10, 2022
2030e71
Merge pull request #14 from taybin/master
patkivikram Jan 10, 2022
80f759a
added workflows dir without codeql
elioskmil Sep 26, 2022
e9bd9f2
added scripts dir
elioskmil Sep 26, 2022
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
5 changes: 2 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[bumpversion]
current_version = 4.3.2
current_version = 0.2.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<releaselevel>[a-z]+)?
serialize =
serialize =
{major}.{minor}.{patch}{releaselevel}
{major}.{minor}.{patch}

Expand All @@ -12,4 +12,3 @@ serialize =
[bumpversion:file:docs/includes/introduction.txt]

[bumpversion:file:README.rst]

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ Paste the full traceback (if there is any)
* Python version
* Mode version
* Operating system

70 changes: 70 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# vim:ts=2:sw=2:et:ai:sts=2
name: 'Build distribution'

on:
# Only run when release is created in the master branch
release:
types: [created]
branches:
- 'master'

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
env:
CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux2014'
CIBW_ARCHS: auto64
CIBW_BUILD: 'cp3*'
CIBW_SKIP: '*p36*'
CIBW_BEFORE_BUILD: pip3 install Cython

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build_sdist:
name: 'Build source distribution'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
name: 'Checkout source repository'

- uses: actions/setup-python@v4

- name: 'Build sdist'
run: >
pip3 install pkgconfig cython --upgrade &&
python3 setup.py sdist

- uses: actions/upload-artifact@v2
name: 'Upload build artifacts'
with:
path: 'dist/*.tar.gz'

upload_pypi:
name: 'Upload packages'
needs: ['build_wheels', 'build_sdist']
runs-on: 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/download-artifact@v3
name: 'Download artifacts'
with:
name: 'artifact'
path: 'dist'

- uses: pypa/gh-action-pypi-publish@release/v1
name: "Publish package to PyPI"
with:
user: '__token__'
password: '${{ secrets.PYPI_API_TOKEN }}'
39 changes: 39 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Pages

on:
push:
branches:
- master

jobs:
build:
name: "Build docs"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: "Install deps and build with Sphinx"
run: make docs
- name: "Upload artifacts"
uses: actions/upload-pages-artifact@v1
with:
# Upload built docs
path: "./Documentation"
deploy:
name: "Deploy docs"
needs: build
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v1
id: deployment
name: "Deploy to GitHub Pages"
39 changes: 39 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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: Python package

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

jobs:
tests:
name: "Python ${{ matrix.python-version }}/Cython: ${{ matrix.use-cython }}"
runs-on: "ubuntu-latest"

strategy:
# Complete all jobs even if one fails, allows us to see
# for example if a test fails only when Cython is enabled
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
use-cython: ["true", "false"]
env:
USE_CYTHON: ${{ matrix.use-cython }}

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: "scripts/install"
- name: "Run linting checks"
run: "scripts/check"
- name: "Run tests"
run: "scripts/tests"
- name: "Enforce coverage"
run: "scripts/coverage"
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/ambv/black
rev: 21.9b0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
name: isort (python)

- repo: local
hooks:
- id: flake8
name: flake8
stages: [commit]
language: python
entry: flake8
types: [python]
69 changes: 58 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@ stages:

matrix:
include:
- python: 3.8.0
- python: 3.8.6
env: TOXENV=flake8
os: linux
dist: xenial
dist: bionic
stage: lint
- python: 3.8.0
- python: 3.8.6
env: TOXENV=typecheck
os: linux
dist: xenial
dist: bionic
stage: lint
- python: 3.8.0
- python: 3.8.6
env: TOXENV=apicheck
os: linux
dist: xenial
dist: bionic
stage: lint
- python: 3.8.0
- python: 3.8.6
env: TOXENV=docstyle
os: linux
dist: xenial
dist: bionic
stage: lint
- python: 3.8.0
- python: 3.8.6
env: TOXENV=bandit
os: linux
dist: xenial
dist: bionic
stage: lint
- python: 3.6.3
env: TOXENV=3.6 RUN_SUITE=y
Expand Down Expand Up @@ -105,7 +105,54 @@ matrix:
- python: 3.8.0
env: TOXENV=3.8 IDENT="3.8.0" RUN_SUITE=y
os: linux
dist: xenial
dist: focal
stage: test
- python: 3.8.1
env: TOXENV=3.8 IDENT="3.8.1" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.8.2
env: TOXENV=3.8 IDENT="3.8.2" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.8.3
env: TOXENV=3.8 IDENT="3.8.3" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.8.4
env: TOXENV=3.8 IDENT="3.8.4" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.8.5
env: TOXENV=3.8 IDENT="3.8.5" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.8.6
env: TOXENV=3.8 IDENT="3.8.6" RUN_SUITE=y
os: linux
dist: focal
stage: test
- python: 3.9.0
env: TOXENV=3.9 IDENT="3.9.0" RUN_SUITE=y
os: linux
dist: focal
stage: test
- name: Latest python-3.9
python: 3.9
env: TOXENV=3.9 IDENT="3.9" RUN_SUITE=y
os: linux
dist: bionic
stage: test
- name: Latest python-3.10
python: 3.10.0
env: TOXENV=3.10 IDENT="3.10" RUN_SUITE=y
os: linux
dist: bionic
stage: test

before_install:
Expand Down
1 change: 0 additions & 1 deletion CODE_OF_CONDUCT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ reported by opening an issue or contacting one or more of the project maintainer

This Code of Conduct is adapted from the Contributor Covenant,
version 1.2.0 available at http://contributor-covenant.org/version/1/2/0/.

Loading