Add classifiers to setup and version badges to readme

main
Thu Trang Pham 2021-02-19 23:41:08 -08:00
parent 758564f668
commit 5b93ed5eb7
5 changed files with 12 additions and 26 deletions

View File

@ -3,8 +3,6 @@ run:
test:
coverage run --source admin_confirm --branch -m pytest
coverage html
coverage-badge -f -o coverage.svg
check-readme:
python -m readme_renderer README.md -o /tmp/README.html

View File

@ -1,6 +1,7 @@
# Django Admin Confirm
[![PyPI](https://img.shields.io/pypi/v/django-admin-confirm?color=blue)](https://pypi.org/project/django-admin-confirm/) ![Tests Status](https://github.com/TrangPham/django-admin-confirm/actions/workflows/.github/workflows/test.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/TrangPham/django-admin-confirm/badge.svg)](https://coveralls.io/github/TrangPham/django-admin-confirm)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-admin-confirm) ![PyPI - Django Version](https://img.shields.io/pypi/djversions/django-admin-confirm)
AdminConfirmMixin is a mixin for ModelAdmin to add confirmations to change, add and actions.

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="a">
<rect width="99" height="20" rx="3" fill="#fff"/>
</mask>
<g mask="url(#a)">
<path fill="#555" d="M0 0h63v20H0z"/>
<path fill="#4c1" d="M63 0h36v20H63z"/>
<path fill="url(#b)" d="M0 0h99v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="31.5" y="14">coverage</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">100%</text>
<text x="80" y="14">100%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 903 B

View File

@ -4,7 +4,6 @@ django-admin-confirm~=0.2.2
coverage~=5.4
pytest~=6.2.2
pytest-django~=4.1.0
coverage-badge~=1.0.1
readme-renderer~=28.0
twine~=3.3.0
coveralls~=3.0.0

View File

@ -6,7 +6,7 @@ README = open(os.path.join(here, "README.md")).read()
setup(
name="django-admin-confirm",
version="0.2.3.dev1",
version="0.2.3.dev2",
packages=["admin_confirm"],
description="Adds confirmation to Django Admin changes, additions and actions",
long_description_content_type="text/markdown",
@ -16,7 +16,7 @@ setup(
url="https://github.com/trangpham/django-admin-confirm/",
license="Apache 2.0",
install_requires=[
"Django>=1.7",
"Django>=2.2",
],
python_requires=">=3",
project_urls={
@ -25,4 +25,13 @@ setup(
# ISSUE-4: Ensure that package includes template and css folders
# list files in MANIFEST.in
include_package_data=True,
classifiers=[
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
],
)