Skip to content

Commit

Permalink
Added Python 3.12 to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshYuJump committed Dec 4, 2023
1 parent 7e0e0cb commit 2d849d3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ indent_style = space
tab_width = 2

[*.py]
max_line_length = 79
max_line_length = 88
11 changes: 3 additions & 8 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
redis-version: [4]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
redis-version: [4, 5, 6]

steps:
- uses: actions/checkout@v3
Expand All @@ -44,12 +44,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
2 changes: 1 addition & 1 deletion .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: '3.10'
- name: Install dependencies
run: |
pip install -r requirements.txt
Expand Down
4 changes: 0 additions & 4 deletions .style.yapf

This file was deleted.

4 changes: 0 additions & 4 deletions poetry.toml

This file was deleted.

25 changes: 18 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tool.poetry]
name = "bali-core"
version = "3.5.0"
version = "3.5.1"
description = ""
authors = ["Your Name <you@example.com>"]
authors = ["Josh Yu <josh.yu_8@live.com>"]
license = "MIT"
readme = "README.md"

# fix package dir
packages = [{include = "bali", from = "."}]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

greenlet = ">1.0,<=2.0.1"
aiomysql = "^0.1.1"
Expand Down Expand Up @@ -50,10 +50,21 @@ pytest-mock = "^3.10.0"
twine = "^4.0.2"
wheel = "^0.38.4"

[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| dist
)/
| setup.py # also separately exclude a file in
# the root of the project
)
'''

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

#[build-system]
#requires = ["setuptools", "setuptools-scm"]
#build-backend = "setuptools.build_meta"

0 comments on commit 2d849d3

Please sign in to comment.