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

Update dependencies #8

Merged
merged 10 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 3 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.10"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
Expand All @@ -37,14 +37,3 @@ jobs:
python -m pip install --upgrade virtualenv tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "python -m tox"

- name: "Report to coveralls"
# coverage is only created in the py39 environment
# --service=github is a workaround for bug
# https://github.com/coveralls-clients/coveralls-python/issues/251
if: "matrix.python-version == '3.9'"
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ __pycache__/

# Virtualenv
/env/
/venv/
/.venv/

# Unit test / coverage reports
.cache
Expand All @@ -19,3 +21,6 @@ htmlcov

# Sphinx documentation
/doc/build/

# Editors
.vscode
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 24.2.0
hooks:
- id: black
args: [--line-length=80]
- repo: https://github.com/PyCQA/flake8
rev: "3.8.4"
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py36-plus]
args: [--py38-plus]
20 changes: 17 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@ CHANGES
0.4 (unreleased)
----------------

- Fix Flake8.
- **Removed**: Drop support for Python 3.4, 3.5, 3.6 and 3.7.

- Drop support for Python 3.4 and 3.5.
- Add support for Python 3.9, 3.10 and 3.11.

- Add support for Python 3.9.
- Fix Flake8.

- Use GitHub Actions for CI.

- Make Python 3.11 the default testing environment.

- Upgrade PonyORM to 0.7.17.

- Show full diffs in the test output.

- Add Editors config and venv to .gitignore.

- Remove report to coveralls.

- Update pre-commit revs.


0.3 (2020-04-26)
----------------
Expand All @@ -29,6 +41,8 @@ CHANGES
- Add integration for the Black code formatter.




0.2 (2017-07-20)
----------------

Expand Down
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
:target: https://github.com/morepath/more.pony/actions?workflow=CI
:alt: CI Status

.. image:: https://coveralls.io/repos/github/morepath/more.pony/badge.svg?branch=master
:target: https://coveralls.io/github/morepath/more.pony?branch=master

.. image:: https://img.shields.io/pypi/v/more.pony.svg
:target: https://pypi.org/project/more.pony/

Expand Down
2 changes: 1 addition & 1 deletion develop_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# development
-e '.[test,coverage,pep8]'
-e '.[test,coverage,lint]'
pre-commit
tox >= 2.4.1

Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tool.black]
line-length = 80
target-version = ['py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
exclude = '''
(
/(
\.git
| \.vscode
| \.tox
| .venv
| env
| venv
| build
| dist
)/
)
'''
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ max-line-length = 88

[tool:pytest]
testpaths = more
addopts = -v
addopts = -vv
filterwarnings =
ignore:.*slated for removal in Python 3.13.*:DeprecationWarning

[coverage:run]
source = more.pony
Expand Down
15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
],
install_requires=["morepath >= 0.19", "pony >= 0.7.13"],
install_requires=["morepath >= 0.19", "pony >= 0.7.17"],
extras_require=dict(
test=["pytest >= 2.9.1", "pytest-remove-stale-bytecode", "webtest"],
test=[
"pytest >= 2.9.1",
"pytest-remove-stale-bytecode",
"webtest",
"pygments",
],
coverage=["pytest-cov"],
pep8=["flake8", "black"],
lint=["flake8", "black"],
),
)
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, py39, pypy3, pre-commit, coverage
envlist = py38, py39, py310, py311, pypy3, pre-commit, coverage
skip_missing_interpreters = True

[testenv]
Expand All @@ -13,18 +13,19 @@ deps = pre-commit
commands = pre-commit run --all-files

[testenv:coverage]
basepython = python3
basepython = python3.11
extras = test
coverage

commands = pytest --cov --cov-fail-under=100 {posargs}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, pre-commit, mypy, coverage
3.9: py39
3.10: py310
3.11: py311, pre-commit, coverage
pypy-3.10: pypy3

[flake8]
max-line-length = 88
Expand Down