Skip to content

Commit

Permalink
Merge branch 'master' into add-support-for-python-3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Dec 27, 2024
2 parents 7f08f12 + 91a977a commit 11283bd
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
release:
types:
- published

env:
DEFAULT_PYTHON: 3.12

jobs:
release-pypi:
name: Upload release to PyPI
runs-on: ubuntu-latest
steps:
- name: Check out code from Github
uses: actions/[email protected]
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install requirements
run: |
python -m pip install --disable-pip-version-check -U pip twine poetry "poetry-core<1.3.0"
- name: Build distributions
run: |
poetry build -f wheel
poetry build -f sdist
- name: Upload to PyPI
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
env:
TWINE_REPOSITORY: pypi
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --verbose dist/*
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
args: [--fix=lf]
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.9"
rev: "v0.8.4"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -20,7 +20,7 @@ repos:
exclude: ^pylint_django/tests/input.*$
args: [--line-length=120]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.4"
rev: "v2.5.0"
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Other

- CI now tests against python 3.13

Version 2.6.0

Version 2.6.1
-------------

NOTICE
Expand All @@ -30,6 +31,11 @@ Other

- CI now tests against Django 5.1

Version 2.6.0 (09 Oct. 2024)
----------------------------

Not released for lack of a release pipeline at the time the tag was created.

Version 2.5.5 (14 May 2023)
---------------------------

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ requires = [ "poetry-core>=1" ]
[tool.poetry]
name = "pylint-django"
version = "2.7.0"
readme = "README.rst"
description = "A Pylint plugin to help Pylint understand the Django web framework"
repository = "https://github.com/pylint-dev/pylint-django"
authors = [ "Carl Crowder <[email protected]>" ]
Expand Down

0 comments on commit 11283bd

Please sign in to comment.