Skip to content

Commit 209e658

Browse files
authored
Change: Removed "celery" extra (#221)
1 parent 6443ac1 commit 209e658

File tree

11 files changed

+39
-55
lines changed

11 files changed

+39
-55
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build:
1717
# Tell poetry to not use a virtual environment
1818
- poetry config virtualenvs.create false
1919
post_install:
20-
- poetry install -E "celery" --with docs
20+
- poetry install --with docs
2121

2222
# Build documentation in the "docs/" directory with Sphinx
2323
sphinx:

docs/getting-started/introduction.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ What do I need?
3737

3838
- Python ❨3.8, 3.9, 3.10, 3.11, 3.12❩
3939

40-
Celery is required and may be installed separately or automatically using the `celery` extra.
41-
When used with the `celery` extra, pytest-celery will install the latest version of Celery
42-
and a predefined set of extras.
43-
44-
Pytest Celery is Celery-agnostic, and should work with virtually any version of Celery.
40+
The pytest-celery plugin is Celery-agnostic, and should work with virtually any version of Celery.
4541

4642
.. warning::
4743
Currently, due to limited resources, we are unable to officially support Microsoft Windows.

docs/includes/installation.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
Installation
44
============
55

6-
You can install Pytest Celery either via the Python Package Index (PyPI).
6+
You can install Pytest Celery via the Python Package Index (PyPI).
77

88
To install using :command:`pip`:
99

1010
.. code-block:: console
1111

1212
$ pip install -U pytest-celery
1313

14-
To include the latest celery package, install with the ``celery`` extra:
15-
16-
.. code-block:: console
17-
18-
$ pip install -U "pytest-celery[celery]"
14+
The :pypi:`celery` package will be installed by default with the ``redis`` and ``pymemcache``
15+
`extras <https://docs.celeryq.dev/en/stable/getting-started/introduction.html#transports-and-backends>`_.
1916

2017
With git
2118
~~~~~~~~

examples/django/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sqlalchemy>=1.2.18
22
django>=2.2.1
33
pytest-django>=4.7.0
4-
pytest-celery[celery]@git+https://github.com/celery/pytest-celery.git
4+
git+https://github.com/celery/pytest-celery.git
55
pytest-xdist>=3.5.0

examples/myutils/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest>=7.4.4
2-
pytest-celery[celery]@git+https://github.com/celery/pytest-celery.git
2+
git+https://github.com/celery/pytest-celery.git
33
pytest-xdist>=3.5.0

examples/myworker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest>=7.4.4
2-
pytest-celery[celery]@git+https://github.com/celery/pytest-celery.git
2+
git+https://github.com/celery/pytest-celery.git
33
pytest-xdist>=3.5.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest>=7.4.4
2-
pytest-celery[celery]@git+https://github.com/celery/pytest-celery.git
2+
git+https://github.com/celery/pytest-celery.git
33
pytest-xdist>=3.5.0

examples/range/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest>=7.4.4
2-
pytest-celery[celery]@git+https://github.com/celery/pytest-celery.git
2+
git+https://github.com/celery/pytest-celery.git
33
pytest-xdist>=3.5.0
44
pytest-subtests>=0.11.0

poetry.lock

Lines changed: 21 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,14 @@ search = ':Version: {current_version}'
7272
replace = ':Version: {new_version}'
7373

7474
[tool.poetry.dependencies]
75+
celery = { version = "^5.0.0", extras = ["redis", "pymemcache"] }
7576
python = ">= 3.8,<4.0"
76-
celery = { version = "<6.0.0", extras = [
77-
"redis",
78-
"pymemcache",
79-
], optional = true }
8077
retry = "^0.9.2"
8178
pytest-docker-tools = "^3.1.3"
8279
docker = "^7.0.0"
8380
psutil = "^5.9.7"
8481
setuptools = "^69.1.0"
8582

86-
[tool.poetry.extras]
87-
celery = ["celery"]
88-
8983
[tool.poetry.group.dev]
9084

9185
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)