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

Modern maintenance tooling #521

Merged
merged 4 commits into from
Oct 13, 2023
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
8 changes: 4 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install ruff
- name: Install pre-commit
shell: bash
run: |
python -V
python -m pip install ruff
- name: Run ruff
python -m pip install pre-commit
- name: Run pre-commit linters
shell: bash
run: |
ruff .
pre-commit run --files *

build:
strategy:
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
args: ["--fix", "--show-source"]
12 changes: 9 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
3.0.0 (development)
===================
3.0.0
=====

- Officially support Python 3.12 and drop support for Python 3.6 and 3.7.
Dropping support for older Python versions made it possible to simplify the
Expand All @@ -11,6 +11,12 @@
([issue #386](https://github.com/cloudpipe/cloudpickle/issues/386),
[PR #513](https://github.com/cloudpipe/cloudpickle/pull/513))

- Any color you like as long as it's black.
([PR #521](https://github.com/cloudpipe/cloudpickle/pull/521))

- Drop `setup.py` and `setuptools` in favor of `pyproject.toml` and `flit`.
([PR #521](https://github.com/cloudpipe/cloudpickle/pull/521))

2.2.1
=====

Expand Down Expand Up @@ -140,7 +146,7 @@
- Fix a bug affecting cloudpickle when non-modules objects are added into
sys.modules
([PR #326](https://github.com/cloudpipe/cloudpickle/pull/326)).

- Fix a regression in cloudpickle and python3.8 causing an error when trying to
pickle property objects.
([PR #329](https://github.com/cloudpipe/cloudpickle/pull/329)).
Expand Down
7 changes: 5 additions & 2 deletions cloudpickle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from cloudpickle.cloudpickle import * # noqa
from . import cloudpickle
from .cloudpickle import * # noqa

__version__ = "3.0.0.dev0"
__doc__ = cloudpickle.__doc__

__version__ = "3.0.0"

__all__ = [ # noqa
"__version__",
Expand Down
Loading