Skip to content
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

Poetry #154

Merged
merged 45 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a8ce265
Add poetry
mosquito Nov 30, 2022
80996ab
WIP
mosquito Nov 30, 2022
c27a578
remove tox
mosquito Nov 30, 2022
0bb4c7a
fix rpx tests
mosquito Nov 30, 2022
c909f38
report coverage only from linux tests
mosquito Nov 30, 2022
b5d1991
fix pytest command
mosquito Nov 30, 2022
7bbf0db
fix macos without uvloop
mosquito Nov 30, 2022
fef9299
no test 3.11 on macos
mosquito Nov 30, 2022
656b3cd
ignore IO error when logging trying to flush at exit
mosquito Nov 30, 2022
27c1a55
unregister atexit on handler del
mosquito Nov 30, 2022
ad388a1
Fix aggregate tests (#155)
tzoiker Dec 2, 2022
e9da793
Fix aggregate tests more (#156)
tzoiker Dec 4, 2022
b00ee35
Pin logging-journald
mosquito Dec 19, 2022
3818a6e
mypy fixes in tests and refactor io
mosquito Dec 19, 2022
82f3cde
mypy fixes in tests
mosquito Dec 19, 2022
1013e22
fixes
mosquito Dec 19, 2022
0de5a27
test syncronization
mosquito Dec 19, 2022
654d967
upgrade packages
mosquito Dec 19, 2022
7f9e37e
pylama fixes
mosquito Dec 20, 2022
1835472
skip profiler tests on old python versions
mosquito Dec 20, 2022
858a9d1
add reason
mosquito Dec 20, 2022
4a19cc2
fix version
mosquito Dec 20, 2022
1113d7c
bump to 16.3.0
mosquito Dec 20, 2022
c6f274d
move pylyma config to pyproject.toml
mosquito Dec 20, 2022
811a221
add version
mosquito Dec 20, 2022
64c7756
remove warning for worker_pool
mosquito Dec 20, 2022
10cd927
fix setattr and getattr
mosquito Dec 20, 2022
49c508e
linter fixes
mosquito Dec 20, 2022
41ec878
add __all__ for version
mosquito Dec 20, 2022
7cf070b
Improve documentation
mosquito Dec 29, 2022
2c605e2
rework publish action
mosquito Dec 29, 2022
192cf29
improve docs
mosquito Dec 29, 2022
f4c0173
fixes
mosquito Dec 29, 2022
0c3d020
add semver summary
mosquito Dec 29, 2022
75aa742
rework how to develop article
mosquito Dec 29, 2022
1201c99
improve docs
mosquito Dec 29, 2022
950bf27
Add compression for io
mosquito Jan 20, 2023
0e0ac62
Add translations
mosquito Jan 20, 2023
2fa1426
Use AnyStr
mosquito Jan 20, 2023
cf5e114
Fix tests
mosquito Jan 20, 2023
9a8f759
revert pylama.ini
mosquito Jan 20, 2023
2d2b563
Update copyright
mosquito Jan 20, 2023
a4f7071
fix precommit hook
mosquito Jan 20, 2023
b652335
add typevar for io wrap_to_thread
mosquito Jan 20, 2023
70d2ef1
Add precommit and poem-plugins info to the README.rst
mosquito Jan 23, 2023
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
149 changes: 0 additions & 149 deletions .drone.yml

This file was deleted.

20 changes: 8 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: publish

on:
Expand All @@ -27,17 +24,16 @@ jobs:
- name: Resetting git to master
run: git fetch --unshallow --tags || true

- name: Bump package version
run: python3 bump.py aiomisc/version.py
- name: Install poetry
run: python3 -m pip install poetry

- name: Install requires
run: python3 -m pip install twine wheel
- name: Install poem-plugins
run: poetry self add poem-plugins

- name: Build source package
run: python3 setup.py sdist bdist_wheel
- name: Install package
run: poetry install

- name: Publishing to pypi
run: twine upload --skip-existing --disable-progress-bar dist/*.tar.gz dist/*.whl
run: poetry publish --build
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
172 changes: 172 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
name: tests

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

jobs:
pylama:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: python -m pip install poetry
- run: poetry install
- run: poetry run pylama
env:
FORCE_COLOR: 1
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: python -m pip install poetry
- run: poetry install
- run: poetry run mypy
env:
FORCE_COLOR: 1
docs-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: python -m pip install poetry
- run: poetry install
- run: poetry run pytest -svv docs/source
env:
FORCE_COLOR: 1

tests-on-linux:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v2
- name: Setup python${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- run: python -m pip install poetry
- run: poetry install --with=uvloop
- run: >-
poetry run pytest \
-vv \
--cov=aiomisc \
--cov=aiomisc_log \
--cov=aiomisc_pytest \
--cov=aiomisc_worker \
--cov-report=term-missing \
--doctest-modules \
--aiomisc-test-timeout=120 \
tests
env:
FORCE_COLOR: 1
- run: poetry run coveralls
env:
COVERALLS_PARALLEL: 'true'
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tests-on-macos:
runs-on: macos-latest

strategy:
fail-fast: false

matrix:
python:
- '3.9'
- '3.10'
steps:
- uses: actions/checkout@v2
- name: Setup python${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- run: python -m pip install poetry
- run: poetry install --without=uvloop
- run: poetry run pytest -vv --aiomisc-test-timeout=120 tests
env:
FORCE_COLOR: 1

tests-on-windows:
runs-on: windows-latest

strategy:
fail-fast: false

matrix:
python:
- '3.9'
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v2
- name: Setup python${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- run: python -m pip install poetry
- run: poetry install --without=uvloop
- run: poetry run pytest -vv --aiomisc-test-timeout=120 tests
env:
FORCE_COLOR: 1

tests-rpc-example:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
example:
- 'rpc'
- 'rpc_udp'
steps:
- uses: actions/checkout@v2
- name: Setup python3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: python -m pip install poetry
- run: poetry install --with=uvloop
- run: poetry run python -m pip install msgspec~=0.9.1
- run: >-
cd examples/${{ matrix.example }} &&
poetry run pytest -v --doctest-modules tests.py
env:
FORCE_COLOR: 1

finish:
needs:
- tests-on-linux
- tests-on-macos
- tests-on-windows
- tests-rpc-example
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
Loading