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

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Jul 24, 2023
1 parent fb939ab commit 5a013f3
Show file tree
Hide file tree
Showing 10 changed files with 826 additions and 991 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_ENV: ci
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
strategy:
matrix:
Expand All @@ -37,9 +35,12 @@ jobs:
run: make test-docs
- name: run tests
run: make test
- name: upload coverage
- name: upload coverage reports to codecov
if: matrix.python-version == '3.11'
run: make upload-coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.xml
- name: publish
if: ${{ matrix.python-version == '3.11' && github.event.head_commit.message == 'release' }}
run: make publish
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Quantmind
Copyright (c) 2023 Quantmind

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ lint: ## run linters
poetry run ./dev/lint-code


mypy: ## run mypy
@poetry run mypy openapi


outdated: ## Show outdated packages
poetry show -o

Expand Down Expand Up @@ -67,9 +63,5 @@ test-docs: ## run docs in CI
make docs


upload-coverage: ## upload coverage
@poetry run coveralls


publish: ## release to pypi and github tag
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD)
2 changes: 1 addition & 1 deletion dev/install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

pip install -U pip poetry
poetry install -E dev -E docs
poetry install --with=docs --with=extras
18 changes: 14 additions & 4 deletions dev/lint-code
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/usr/bin/env bash
set -e

isort openapi tests $1
black openapi tests $1
flake8 openapi tests
# mypy openapi tests
BLACK_ARG="--check"
RUFF_ARG=""

if [ "$1" = "fix" ] ; then
BLACK_ARG=""
RUFF_ARG="--fix"
fi

echo "run black"
black openapi tests ${BLACK_ARG}
echo "run ruff"
ruff openapi tests ${RUFF_ARG}
#echo "run mypy"
#mypy openapi
2 changes: 1 addition & 1 deletion openapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Minimal OpenAPI asynchronous server application"""
__version__ = "3.2.0"
__version__ = "3.2.1"
1,657 changes: 750 additions & 907 deletions poetry.lock

Large diffs are not rendered by default.

78 changes: 54 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aio-openapi"
version = "3.2.0"
version = "3.2.1"
description = "Minimal OpenAPI asynchronous server application"
documentation = "https://aio-openapi.readthedocs.io"
repository = "https://github.com/quantmind/aio-openapi"
Expand Down Expand Up @@ -44,37 +44,20 @@ aiohttp = "^3.8.0"
httptools = "^0.5.0"
simplejson = "^3.17.2"
SQLAlchemy = { version="^2.0.8", extras=["asyncio"] }
SQLAlchemy-Utils = "^0.40.0"
SQLAlchemy-Utils = "^0.41.1"
psycopg2-binary = "^2.9.2"
click = "^8.0.3"
python-dateutil = "^2.8.2"
PyYAML = "^6.0"
email-validator = "^1.2.1"
alembic = "^1.8.1"
aiodns = {version = "^3.0.0", optional = true}
PyJWT = {version = "^2.3.0", optional = true}
colorlog = {version = "^6.6.0", optional = true}
phonenumbers = {version = "^8.12.37", optional = true}
Sphinx = {version = "^6.1.3", optional = true}
sphinx-copybutton = {version = "^0.5.0", optional = true}
sphinx-autodoc-typehints = {version = "^1.12.0", optional = true}
aiohttp-theme = {version = "^0.1.6", optional = true}
recommonmark = {version = "^0.7.1", optional = true}
"backports.zoneinfo" = { version = "^0.2.1", python="<3.9" }
asyncpg = "^0.27.0"
asyncpg = "^0.28.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
flake8 = "^6.0.0"
pytest = "^7.1.1"
flake8-blind-except = "^0.2.0"
flake8-builtins = "^2.0.0"
flake8-commas = "^2.1.0"
codecov = "^2.1.12"
coverage = "^6.1.2"
coveralls = "^3.3.1"
mypy = "^1.1.1"
sqlalchemy-stubs = "^0.4"
sentry-sdk = "^1.4.3"
python-dotenv = "^1.0.0"
openapi-spec-validator = "^0.3.1"
Expand All @@ -85,6 +68,29 @@ types-simplejson = "^3.17.5"
types-python-dateutil = "^2.8.11"
factory-boy = "^3.2.1"
pytest-asyncio = "^0.21.0"
types-pyyaml = "^6.0.12"
ruff = "^0.0.280"

[tool.poetry.group.extras]
optional = true

[tool.poetry.group.extras.dependencies]
aiodns = {version = "^3.0.0"}
PyJWT = {version = "^2.3.0"}
colorlog = {version = "^6.6.0"}
phonenumbers = {version = "^8.12.37"}


[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
Sphinx = {version = "^6.1.3"}
sphinx-copybutton = {version = "^0.5.0"}
sphinx-autodoc-typehints = {version = "^1.12.0"}
aiohttp-theme = {version = "^0.1.6"}
recommonmark = {version = "^0.7.1"}


[tool.poetry.extras]
dev = ["aiodns", "PyJWT", "colorlog", "phonenumbers"]
Expand All @@ -96,9 +102,33 @@ docs = [
"sphinx-autodoc-typehints",
]

[tool.poetry.group.dev.dependencies]
types-pyyaml = "^6.0.12"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests"
]

[tool.isort]
profile = "black"

[tool.ruff]
select = ["E", "F"]
line-length = 88

[tool.mypy]
# strict = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_no_return = true

[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false

[[tool.mypy.overrides]]
module = "openapi.db.openapi.*"
ignore_errors = true
35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

0 comments on commit 5a013f3

Please sign in to comment.