Name | wagtail-periodic-review JSON |
Version |
0.3.0
JSON |
| download |
home_page | |
Summary | A Wagtail package for periodic page content reviews |
upload_time | 2024-03-05 17:31:59 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | |
keywords |
wagtail
django
content
review
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# Wagtail Periodic Review
A Wagtail package for periodic page content reviews for quality or audit purposes.
[![Build status](https://img.shields.io/github/actions/workflow/status/zerolab/wagtail-periodic-review/test.yml?branch=main)](https://github.com/zerolab/wagtail-periodic-review/actions)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
![A screenshot of the Wagtail administrative dashboard with periodic review panels](https://github.com/zerolab/wagtail-periodic-review/raw/main/.github/wagtail-periodic-review.webp)
## Features
- Dashboard panels
- Filtered report
- Configurable next review frequency
## Installation
Install using pip:
```bash
pip install wagtail-periodic-review
```
After installing the module, add `wagtail_periodic_review` and `wagtail.contrib.settings` to installed apps in your settings file:
```python
# settings.py
INSTALLED_APPS = [
# ...
"wagtail.contrib.settings",
"wagtail_periodic_review",
]
```
Run migrations:
```bash
$ ./manage.py migrate
```
## Usage
Add the `PeriodicReviewMixin` to your `Page` models:
```python
from wagtail.models import Page
from wagtail_periodic_review.models import PeriodicReviewMixin
class MyPage(PeriodicReviewMixin, Page):
# Add the periodic review panels to the settings panels
settings_panels = PeriodicReviewMixin.review_panels + Page.settings_panels
```
## Contributing
### Install
To make changes to this project, first clone this repository:
```sh
git clone git@github.com:zerolab/wagtail-periodic-review.git
cd wagtail-periodic-review
```
With your preferred virtualenv activated, install testing dependencies:
#### Using pip
```sh
python -m pip install --upgrade pip>=21.3
python -m pip install -e .[testing] -U
```
#### Using flit
```sh
python -m pip install flit
flit install
```
### pre-commit
Note that this project uses [pre-commit](https://github.com/pre-commit/pre-commit). To set up locally:
```shell
# if you don't have it yet, globally
$ python -m pip install pre-commit
# go to the project directory
$ cd wagtail-periodic-review
# initialize pre-commit
$ pre-commit install
# Optional, run all checks once for this, then the checks will run only on the changed files
$ pre-commit run --all-files
```
### How to run tests
Now you can run tests as shown below:
```sh
tox
```
or, you can run them for a specific environment `tox -e python3.12-django5.0-wagtail6.0` or specific test
`tox -e python3.12-django5.0-wagtail5.2 -- tests.test_file.TestClass.test_method`
To run the test app interactively, use `tox -e interactive`, visit `http://127.0.0.1:8020/admin/` and log in with `admin`/`changeme`.
Raw data
{
"_id": null,
"home_page": "",
"name": "wagtail-periodic-review",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Dan Braghis <dan.braghis@torchbox.com>",
"keywords": "Wagtail,Django,content,review",
"author": "",
"author_email": "Andy Babic <andy.babic@torchbox.com>",
"download_url": "https://files.pythonhosted.org/packages/58/61/43e235bfd17378729b2a3d86b112e5efd347c73074bb7b6a1cc08cbf46aa/wagtail_periodic_review-0.3.0.tar.gz",
"platform": null,
"description": "# Wagtail Periodic Review\n\nA Wagtail package for periodic page content reviews for quality or audit purposes.\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/zerolab/wagtail-periodic-review/test.yml?branch=main)](https://github.com/zerolab/wagtail-periodic-review/actions)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n\n![A screenshot of the Wagtail administrative dashboard with periodic review panels](https://github.com/zerolab/wagtail-periodic-review/raw/main/.github/wagtail-periodic-review.webp)\n\n## Features\n\n- Dashboard panels\n- Filtered report\n- Configurable next review frequency\n\n\n## Installation\n\nInstall using pip:\n\n```bash\n pip install wagtail-periodic-review\n```\n\n\nAfter installing the module, add `wagtail_periodic_review` and `wagtail.contrib.settings` to installed apps in your settings file:\n\n```python\n# settings.py\n\nINSTALLED_APPS = [\n # ...\n \"wagtail.contrib.settings\",\n \"wagtail_periodic_review\",\n]\n```\n\nRun migrations:\n\n```bash\n$ ./manage.py migrate\n```\n\n\n## Usage\n\nAdd the `PeriodicReviewMixin` to your `Page` models:\n\n```python\nfrom wagtail.models import Page\nfrom wagtail_periodic_review.models import PeriodicReviewMixin\n\n\nclass MyPage(PeriodicReviewMixin, Page):\n # Add the periodic review panels to the settings panels\n settings_panels = PeriodicReviewMixin.review_panels + Page.settings_panels\n```\n\n\n## Contributing\n\n### Install\n\nTo make changes to this project, first clone this repository:\n\n```sh\ngit clone git@github.com:zerolab/wagtail-periodic-review.git\ncd wagtail-periodic-review\n```\n\nWith your preferred virtualenv activated, install testing dependencies:\n\n#### Using pip\n\n```sh\npython -m pip install --upgrade pip>=21.3\npython -m pip install -e .[testing] -U\n```\n\n#### Using flit\n\n```sh\npython -m pip install flit\nflit install\n```\n\n### pre-commit\n\nNote that this project uses [pre-commit](https://github.com/pre-commit/pre-commit). To set up locally:\n\n```shell\n# if you don't have it yet, globally\n$ python -m pip install pre-commit\n# go to the project directory\n$ cd wagtail-periodic-review\n# initialize pre-commit\n$ pre-commit install\n\n# Optional, run all checks once for this, then the checks will run only on the changed files\n$ pre-commit run --all-files\n```\n\n### How to run tests\n\nNow you can run tests as shown below:\n\n```sh\ntox\n```\n\nor, you can run them for a specific environment `tox -e python3.12-django5.0-wagtail6.0` or specific test\n`tox -e python3.12-django5.0-wagtail5.2 -- tests.test_file.TestClass.test_method`\n\nTo run the test app interactively, use `tox -e interactive`, visit `http://127.0.0.1:8020/admin/` and log in with `admin`/`changeme`.\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A Wagtail package for periodic page content reviews",
"version": "0.3.0",
"project_urls": {
"Changelog": "https://github.com/zerolab/wagtail-periodic-review/blob/main/CHANGELOG.md",
"Source": "https://github.com/zerolab/wagtail-periodic-review/blob/main/CHANGELOG.md"
},
"split_keywords": [
"wagtail",
"django",
"content",
"review"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1028dc564364ce7fcb5e07961c5013a3bd31093f5803220c37a4a021b5e14d42",
"md5": "c3f8cdcb2c6130db20d0cd8e0a90ddfc",
"sha256": "64ac74e427b080659d041470df46bad68705a8f54e8961c60daf2fc0caa9eef1"
},
"downloads": -1,
"filename": "wagtail_periodic_review-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c3f8cdcb2c6130db20d0cd8e0a90ddfc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 14724,
"upload_time": "2024-03-05T17:31:58",
"upload_time_iso_8601": "2024-03-05T17:31:58.238419Z",
"url": "https://files.pythonhosted.org/packages/10/28/dc564364ce7fcb5e07961c5013a3bd31093f5803220c37a4a021b5e14d42/wagtail_periodic_review-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "586143e235bfd17378729b2a3d86b112e5efd347c73074bb7b6a1cc08cbf46aa",
"md5": "24b51681e27836a9d8598460c2b11bf5",
"sha256": "409e08eae4924866b2f2b6f64f692e3f21a18e49cbbc82dc41fd45200dad9c14"
},
"downloads": -1,
"filename": "wagtail_periodic_review-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "24b51681e27836a9d8598460c2b11bf5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 11720,
"upload_time": "2024-03-05T17:31:59",
"upload_time_iso_8601": "2024-03-05T17:31:59.282196Z",
"url": "https://files.pythonhosted.org/packages/58/61/43e235bfd17378729b2a3d86b112e5efd347c73074bb7b6a1cc08cbf46aa/wagtail_periodic_review-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-05 17:31:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zerolab",
"github_project": "wagtail-periodic-review",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "wagtail-periodic-review"
}