Metadata-Version: 2.1
Name: django-cd
Version: 1.2
Summary: Continuous deloyment
Home-page: https://github.com/ppinard/django-cd
Author: Philippe Pinard
Author-email: philippe.pinard@gmail.com
License: MIT license
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django
Requires-Dist: django-bootstrap5
Requires-Dist: loguru
Requires-Dist: pyyaml
Requires-Dist: yarl
Requires-Dist: pytest
Requires-Dist: huey
Requires-Dist: crontab
Provides-Extra: dev
Requires-Dist: sphinx ; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: pytest-django ; extra == 'test'

# django-cd

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ppinard/django-cd/CI)
![PyPI](https://img.shields.io/pypi/v/django-cd)

Continuous deployment


## Installation

```
git clone git@github.com/ppinard/django-cd.git
cd django-cd
pip install -e .
```

## Django - settings.py

Add to `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    ...
    "django_bootstrap5",
    "django_cd",
]
```

Add to settings.py:

```python
ACTIONS = {
    "command": "django_cd.actions.CommandAction",
    "git-checkout": "django_cd.actions.GitCheckoutAction",
    "python-run": "django_cd.actions.PythonAction",
    "python-pytest": "django_cd.actions.PythonPytestAction",
    "python-venv": "django_cd.actions.PythonVirtualEnvAction",
}
TRIGGERS = {
    "cron": "django_cd.triggers.CronTrigger",
}
NOTIFICATIONS = {
    "email": "django_cd.notifications.EmailNotification",
}

JOBFILES = []
WORKDIR = ""
```


## License

The library is provided under the MIT license license.

Copyright (c) 2021, Philippe Pinard







