Skip to content

Commit

Permalink
Use setup.cfg instead of setup.py. (#37)
Browse files Browse the repository at this point in the history
And drop support for Python 3.6.
  • Loading branch information
clokep committed Dec 30, 2021
1 parent 92795ca commit f261a90
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ next
(`#32 <https://github.com/clokep/celery-batches/pull/32>`_)
* Clean-up and re-organize code. (`#31 <https://github.com/clokep/celery-batches/pull/31>`_)
* Support Celery 5.2. (`#36 <https://github.com/clokep/celery-batches/pull/36>`_)
* Support Python 3.10. (`#36 <https://github.com/clokep/celery-batches/pull/36>`_)
* Drop support for Python 3.6. (`#36 <https://github.com/clokep/celery-batches/pull/36>`_)
* Support Python 3.10. (`#37 <https://github.com/clokep/celery-batches/pull/37>`_)
* Changed packaging to use setuptools declarative config in ``setup.cfg``.
(`#37 <https://github.com/clokep/celery-batches/pull/37>`_)

0.5 2021-05-24
==============
Expand Down
11 changes: 6 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ What do I need?

celery-batches version runs on,

- Python (3.6, 3.7, 3.8, 3.9, 3.10)
- Python (3.7, 3.8, 3.9, 3.10)
- PyPy3 (7.6)

And is tested with Celery >= 4.4.

If you're running an older version of Python, you need to be running
an older version of celery-batches:

- Python 2.7: celery-batches 0.3 series.
- Python 3.4: celery-batches 0.2 series.
- Python 3.5: celery-batches 0.3 series.
- Python 2.7: celery-batches 0.3.
- Python 3.4: celery-batches 0.2.
- Python 3.5: celery-batches 0.3.
- Python 3.6: celery-batches 0.5.

If you're running an older version of Celery, you need to be running
an older version of celery-batches:

- Celery < 4.0: Use `celery.contrib.batches` instead.
- Celery 4.0 - 4.3: celery-batches 0.3 series.
- Celery 4.0 - 4.3: celery-batches 0.3.

History
=======
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42.0.0", "wheel"]
build-backend = "setuptools.build_meta"
38 changes: 35 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
[metadata]
name = celery-batches
version = 0.6dev
description = Experimental task class that buffers messages and processes them as a list.
long_description = file: README.rst
long_description_content_type = text/x-rst
author = Patrick Cloke
author_email = clokep@patrick.cloke.us
url = https://github.com/clokep/celery-batches
download_url = https://github.com/clokep/celery-batches
keywords = task, job, queue, distributed, messaging, actor
license = BSD
license_file = LICENSE
classifiers =
Development Status :: 3 - Alpha
License :: OSI Approved :: BSD License
Topic :: System :: Distributed Computing
Topic :: Software Development :: Object Brokering
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: OS Independent

[options]
packages =
celery_batches
install_requires = celery>=4.4,<5.3
python_requires = >=3.7

[flake8]
# Don't use a strict line limit if it makes the code more readable.
ignore = E501

[metadata]
license_file = LICENSE
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

11 changes: 2 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[tox]
envlist =
{pypy3,3.6,3.7,3.8,3.9,3.10}-celery{44,50,51},
# Celery 5.2 drops support for Python < 3.7.
{pypy3,3.7,3.8,3.9,3.10}-celery{52,master},
{pypy3,3.7,3.8,3.9,3.10}-celery{44,50,51,52,master,52,master},
flake8
isolated_build = True
skip_missing_interpreters = True
Expand All @@ -24,12 +22,7 @@ commands =
coverage run -m pytest
coverage html
basepython =
3.6: python3.6
3.7: python3.7
3.8: python3.8
3.9: python3.9
pypy3: pypy3
flake8: python3.6
flake8: python3.7
usedevelop = True

[testenv:flake8]
Expand Down

0 comments on commit f261a90

Please sign in to comment.