-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Dependecies Management (#225)
* Removed "-n auto" from examples CI * Bugfix: Added pytest-celery package to built-in Celery worker Dockerfile * Refactored Dependecies Management * Disabled Memcached automatic detection due to "Experimental Status"
- Loading branch information
Showing
22 changed files
with
390 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,68 @@ | ||
.. _installation: | ||
|
||
Installation | ||
============ | ||
|
||
You can install Pytest Celery via the Python Package Index (PyPI). | ||
The **pytest-celery** plugin can be easily installed via the Python Package Index (PyPI) using :command:`pip`. | ||
|
||
Installing the pytest-celery package | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
To install using :command:`pip`: | ||
To install the latest version of **pytest-celery**, run the following command: | ||
|
||
.. code-block:: console | ||
|
||
$ pip install -U pytest-celery | ||
pip install -U pytest-celery | ||
|
||
This command installs **pytest-celery** along with its required dependencies. | ||
|
||
This will include: | ||
|
||
- Latest version of :pypi:`celery`. | ||
- RabbitMQ broker via :pypi:`kombu`, installed as a dependency of Celery. | ||
|
||
Installing pytest-celery vendors | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The plugin detects which vendor dependencies are installed in the test environment to configure | ||
the default configurations automatically. This means that just by installing the matching dependencies, | ||
the plugin will allow extending the default configurations, up to the supported built-in :ref:`vendors`. | ||
|
||
.. warning:: | ||
|
||
If you don't install any vendor (e.g. no extras and no manual installation), the plugin will result in an | ||
empty setup matrix and might not be fully functional. | ||
|
||
To install the vendors, you may either install all of the dependencies manually, or use the following extras: | ||
|
||
- ``all``: Installs all vendors. | ||
- ``redis``: Installs Redis vendor, providing **broker** and **result backend** components. | ||
- ``memcached``: Installs Memcached vendor, providing a **result backend** component. | ||
|
||
The following extra is installed by default: | ||
|
||
- ``rabbitmq``: Installs RabbitMQ vendor, providing a **broker** component. | ||
|
||
To install **pytest-celery** with the built-in :ref:`vendors`, replace ``<extra>`` with the name of the vendor. | ||
|
||
.. code-block:: console | ||
|
||
pip install -U "pytest-celery[<extra>]" | ||
|
||
RabbitMQ & Redis combo | ||
---------------------- | ||
|
||
.. code-block:: console | ||
|
||
pip install -U "pytest-celery[redis]" | ||
|
||
This will configure the plugin to generate all possible setups using only RabbitMQ and Redis vendors. | ||
|
||
All vendors | ||
----------- | ||
|
||
.. code-block:: console | ||
|
||
The :pypi:`celery` package will be installed by default with the ``redis`` and ``pymemcache`` | ||
`extras <https://docs.celeryq.dev/en/stable/getting-started/introduction.html#transports-and-backends>`_. | ||
pip install -U "pytest-celery[all]" | ||
|
||
With git | ||
~~~~~~~~ | ||
This will configure the plugin to generate all possible setups. | ||
|
||
Please see the :ref:`Contributing <contributing>` section. | ||
This approach allows you to tailor the installation to your project's specific needs by including only the necessary optional vendors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
sqlalchemy>=1.2.18 | ||
django>=2.2.1 | ||
pytest-django>=4.7.0 | ||
git+https://github.com/celery/pytest-celery.git | ||
pytest-xdist>=3.5.0 | ||
pytest-celery[all]@git+https://github.com/Katz-Consulting-Group/pytest-celery.git@bugfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pytest>=7.4.4 | ||
git+https://github.com/celery/pytest-celery.git | ||
pytest-xdist>=3.5.0 | ||
pytest-celery[all]@git+https://github.com/Katz-Consulting-Group/pytest-celery.git@bugfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pytest>=7.4.4 | ||
git+https://github.com/celery/pytest-celery.git | ||
pytest-xdist>=3.5.0 | ||
pytest-celery[all]@git+https://github.com/Katz-Consulting-Group/pytest-celery.git@bugfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pytest>=7.4.4 | ||
git+https://github.com/celery/pytest-celery.git | ||
pytest-xdist>=3.5.0 | ||
pytest-celery[all]@git+https://github.com/Katz-Consulting-Group/pytest-celery.git@bugfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pytest>=7.4.4 | ||
git+https://github.com/celery/pytest-celery.git | ||
pytest-xdist>=3.5.0 | ||
pytest-subtests>=0.11.0 | ||
pytest-celery[all]@git+https://github.com/Katz-Consulting-Group/pytest-celery.git@bugfix |
Oops, something went wrong.