Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Commit 5a013f3

Browse files
committed
bump dependencies
1 parent fb939ab commit 5a013f3

File tree

10 files changed

+826
-991
lines changed

10 files changed

+826
-991
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
env:
1414
PYTHON_ENV: ci
15-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1715
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
1816
strategy:
1917
matrix:
@@ -37,9 +35,12 @@ jobs:
3735
run: make test-docs
3836
- name: run tests
3937
run: make test
40-
- name: upload coverage
38+
- name: upload coverage reports to codecov
4139
if: matrix.python-version == '3.11'
42-
run: make upload-coverage
40+
uses: codecov/codecov-action@v3
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
files: ./build/coverage.xml
4344
- name: publish
4445
if: ${{ matrix.python-version == '3.11' && github.event.head_commit.message == 'release' }}
4546
run: make publish

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022 Quantmind
1+
Copyright (c) 2023 Quantmind
22

33
Redistribution and use in source and binary forms, with or without modification,
44
are permitted provided that the following conditions are met:

MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ lint: ## run linters
3535
poetry run ./dev/lint-code
3636

3737

38-
mypy: ## run mypy
39-
@poetry run mypy openapi
40-
41-
4238
outdated: ## Show outdated packages
4339
poetry show -o
4440

@@ -67,9 +63,5 @@ test-docs: ## run docs in CI
6763
make docs
6864

6965

70-
upload-coverage: ## upload coverage
71-
@poetry run coveralls
72-
73-
7466
publish: ## release to pypi and github tag
7567
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD)

dev/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

33
pip install -U pip poetry
4-
poetry install -E dev -E docs
4+
poetry install --with=docs --with=extras

dev/lint-code

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
isort openapi tests $1
5-
black openapi tests $1
6-
flake8 openapi tests
7-
# mypy openapi tests
4+
BLACK_ARG="--check"
5+
RUFF_ARG=""
6+
7+
if [ "$1" = "fix" ] ; then
8+
BLACK_ARG=""
9+
RUFF_ARG="--fix"
10+
fi
11+
12+
echo "run black"
13+
black openapi tests ${BLACK_ARG}
14+
echo "run ruff"
15+
ruff openapi tests ${RUFF_ARG}
16+
#echo "run mypy"
17+
#mypy openapi

openapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Minimal OpenAPI asynchronous server application"""
2-
__version__ = "3.2.0"
2+
__version__ = "3.2.1"

poetry.lock

Lines changed: 750 additions & 907 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aio-openapi"
3-
version = "3.2.0"
3+
version = "3.2.1"
44
description = "Minimal OpenAPI asynchronous server application"
55
documentation = "https://aio-openapi.readthedocs.io"
66
repository = "https://github.com/quantmind/aio-openapi"
@@ -44,37 +44,20 @@ aiohttp = "^3.8.0"
4444
httptools = "^0.5.0"
4545
simplejson = "^3.17.2"
4646
SQLAlchemy = { version="^2.0.8", extras=["asyncio"] }
47-
SQLAlchemy-Utils = "^0.40.0"
47+
SQLAlchemy-Utils = "^0.41.1"
4848
psycopg2-binary = "^2.9.2"
4949
click = "^8.0.3"
5050
python-dateutil = "^2.8.2"
5151
PyYAML = "^6.0"
5252
email-validator = "^1.2.1"
5353
alembic = "^1.8.1"
54-
aiodns = {version = "^3.0.0", optional = true}
55-
PyJWT = {version = "^2.3.0", optional = true}
56-
colorlog = {version = "^6.6.0", optional = true}
57-
phonenumbers = {version = "^8.12.37", optional = true}
58-
Sphinx = {version = "^6.1.3", optional = true}
59-
sphinx-copybutton = {version = "^0.5.0", optional = true}
60-
sphinx-autodoc-typehints = {version = "^1.12.0", optional = true}
61-
aiohttp-theme = {version = "^0.1.6", optional = true}
62-
recommonmark = {version = "^0.7.1", optional = true}
6354
"backports.zoneinfo" = { version = "^0.2.1", python="<3.9" }
64-
asyncpg = "^0.27.0"
55+
asyncpg = "^0.28.0"
6556

66-
[tool.poetry.dev-dependencies]
57+
[tool.poetry.group.dev.dependencies]
6758
black = "^23.3.0"
68-
flake8 = "^6.0.0"
6959
pytest = "^7.1.1"
70-
flake8-blind-except = "^0.2.0"
71-
flake8-builtins = "^2.0.0"
72-
flake8-commas = "^2.1.0"
73-
codecov = "^2.1.12"
74-
coverage = "^6.1.2"
75-
coveralls = "^3.3.1"
7660
mypy = "^1.1.1"
77-
sqlalchemy-stubs = "^0.4"
7861
sentry-sdk = "^1.4.3"
7962
python-dotenv = "^1.0.0"
8063
openapi-spec-validator = "^0.3.1"
@@ -85,6 +68,29 @@ types-simplejson = "^3.17.5"
8568
types-python-dateutil = "^2.8.11"
8669
factory-boy = "^3.2.1"
8770
pytest-asyncio = "^0.21.0"
71+
types-pyyaml = "^6.0.12"
72+
ruff = "^0.0.280"
73+
74+
[tool.poetry.group.extras]
75+
optional = true
76+
77+
[tool.poetry.group.extras.dependencies]
78+
aiodns = {version = "^3.0.0"}
79+
PyJWT = {version = "^2.3.0"}
80+
colorlog = {version = "^6.6.0"}
81+
phonenumbers = {version = "^8.12.37"}
82+
83+
84+
[tool.poetry.group.docs]
85+
optional = true
86+
87+
[tool.poetry.group.docs.dependencies]
88+
Sphinx = {version = "^6.1.3"}
89+
sphinx-copybutton = {version = "^0.5.0"}
90+
sphinx-autodoc-typehints = {version = "^1.12.0"}
91+
aiohttp-theme = {version = "^0.1.6"}
92+
recommonmark = {version = "^0.7.1"}
93+
8894

8995
[tool.poetry.extras]
9096
dev = ["aiodns", "PyJWT", "colorlog", "phonenumbers"]
@@ -96,9 +102,33 @@ docs = [
96102
"sphinx-autodoc-typehints",
97103
]
98104

99-
[tool.poetry.group.dev.dependencies]
100-
types-pyyaml = "^6.0.12"
101-
102105
[build-system]
103106
requires = ["poetry-core>=1.0.0"]
104107
build-backend = "poetry.core.masonry.api"
108+
109+
[tool.pytest.ini_options]
110+
asyncio_mode = "auto"
111+
testpaths = [
112+
"tests"
113+
]
114+
115+
[tool.isort]
116+
profile = "black"
117+
118+
[tool.ruff]
119+
select = ["E", "F"]
120+
line-length = 88
121+
122+
[tool.mypy]
123+
# strict = true
124+
disallow_untyped_calls = true
125+
disallow_untyped_defs = true
126+
warn_no_return = true
127+
128+
[[tool.mypy.overrides]]
129+
module = "tests.*"
130+
disallow_untyped_defs = false
131+
132+
[[tool.mypy.overrides]]
133+
module = "openapi.db.openapi.*"
134+
ignore_errors = true

setup.cfg

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)