From a9c6ef98e014368afee70d49afa3d37a8a9b9d03 Mon Sep 17 00:00:00 2001
From: Pascal F <pfouque@users.noreply.github.com>
Date: Tue, 12 Dec 2023 06:08:23 +0100
Subject: [PATCH] cleanup and update

---
 .travis.yml                 | 46 -------------------------------------
 MANIFEST.in                 |  1 -
 docs/index.rst              |  4 ++--
 docs/topics/development.rst |  8 +++----
 readme.rst                  | 11 ++++-----
 setup.py                    |  2 ++
 6 files changed, 11 insertions(+), 61 deletions(-)
 delete mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 896a35ef..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-version: ~> 1.0
-os: linux
-language: python
-
-jobs:
-  - env: TOX_ENV=docs
-    python: 3.8
-  # sort by django version, next to by python version
-  # Django 1.11 support all supported Python interpreter
-  - env: TOX_ENV=django111-py35
-    python: 3.5
-  - env: TOX_ENV=django111-py36
-    python: 3.6
-  # Django 2.0 support 3.5, 3.6
-  - env: TOX_ENV=django20-py35
-    python: 3.5
-  - env: TOX_ENV=django20-py36
-    python: 3.6
-
-  # Django 2.1 support Python 3.5, 3.6, 3.7
-  - env: TOX_ENV=django21-py35
-    python: 3.5
-  - env: TOX_ENV=django21-py36
-    python: 3.6
-  - env: TOX_ENV=django21-py37
-    python: 3.7
-  # Django 2.2 support Python 3.5, 3.6, 3.7
-  - env: TOX_ENV=django22-py35
-    python: 3.5
-  - env: TOX_ENV=django22-py36
-    python: 3.6
-  - env: TOX_ENV=django22-py37
-    python: 3.7
-  # Django 3.0 (beta) support Python 3.6, 3.7, 3.8
-  - env: TOX_ENV=django30-py36
-    python: 3.6
-  - env: TOX_ENV=django30-py37
-    python: 3.7
-  - env: TOX_ENV=django30-py38 INTEGRATION=1
-    python: 3.8
-
-install:
-  - pip install tox
-
-script:
-  - tox -e $TOX_ENV
diff --git a/MANIFEST.in b/MANIFEST.in
index 85e79bb5..0b996b11 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,4 @@
 include *.rst
-include .travis.yml
 include MANIFEST
 recursive-include django_mailbox *.eml
 recursive-include docs *.py
diff --git a/docs/index.rst b/docs/index.rst
index 8705c9a8..7b90aee7 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -6,8 +6,8 @@
 Django-mailbox
 ==============
 
-.. image:: https://travis-ci.org/coddingtonbear/django-mailbox.png?branch=master
-   :target: https://travis-ci.org/coddingtonbear/django-mailbox
+.. image:: https://github.com/coddingtonbear/django-mailbox/actions/workflows/main.yml/badge.svg
+   :target: https://github.com/coddingtonbear/django-mailbox/actions/workflows/main.yml
 
 How many times have you had to consume some sort of POP3, IMAP, or local mailbox for incoming content, 
 or had to otherwise construct an application driven by e-mail?
diff --git a/docs/topics/development.rst b/docs/topics/development.rst
index e1d60cbf..abf702d4 100644
--- a/docs/topics/development.rst
+++ b/docs/topics/development.rst
@@ -8,7 +8,7 @@ make it simple.
 How to file a ticket?
 ---------------------
 
-Just go to https://github.com/coddingtonbear/django-mailbox and create new
+Just go to (https://github.com/coddingtonbear/django-mailbox/issues) and create new
 one.
 
 
@@ -52,8 +52,6 @@ To add support for a new version perform the following task:
 
 * Ensure that ``tox.ini`` file reflects support for new Django release.
 * Verify in tox that the code is executed correctly on all versions of the Python interpreter.
-* Ensure that ``.travis.yml`` file reflects support for new Django release. Note the excluded versions of the Python interpreter.
-* Verify by pushing changes on a separate branch to see if the changes in TravisCI are correct.
+* Ensure that ``.github/workflows/main.yml`` file reflects support for new Django release. Note the excluded versions of the Python interpreter.
+* Verify by pushing changes on a separate branch to see if the changes in Github Actions are correct.
 * Proceed to the standard procedure for a new package release (see `How to do a new release?`_ ).
-
-A `spreadsheet with generator is available <https://docs.google.com/spreadsheets/d/1YsVPDeOAgf_c_7XOXh6SZUO2ebMNoFXysxfj4r1tFiM/edit?usp=sharing>`_ that can assist this process.
diff --git a/readme.rst b/readme.rst
index f03459e7..dc886f8a 100644
--- a/readme.rst
+++ b/readme.rst
@@ -1,11 +1,8 @@
-.. image:: https://travis-ci.org/coddingtonbear/django-mailbox.png?branch=master
-   :target: https://travis-ci.org/coddingtonbear/django-mailbox
+.. image:: https://github.com/coddingtonbear/django-mailbox/actions/workflows/main.yml/badge.svg
+   :target: https://github.com/coddingtonbear/django-mailbox/actions/workflows/main.yml
 
 .. image:: https://badge.fury.io/py/django-mailbox.png
-    :target: http://badge.fury.io/py/django-mailbox
-
-.. image:: https://pypip.in/d/django-mailbox/badge.png
-    :target: https://pypi.python.org/pypi/django-mailbox
+    :target: https://pypi.org/project/django-mailbox/
 
 
 Easily ingest messages from POP3, IMAP, Office365 API or local mailboxes into your Django application.
@@ -21,7 +18,7 @@ or -- if you're in a hurry -- by using a signal receiver.
 - Please post issues on
   `Github <http://github.com/coddingtonbear/django-mailbox/issues>`_.
 - Test status available on
-  `Travis-CI <https://travis-ci.org/coddingtonbear/django-mailbox>`_.
+  `Github-Actions <https://github.com/coddingtonbear/django-mailbox/actions/workflows/main.yml>`_.
 
 
 .. image:: https://badges.gitter.im/Join%20Chat.svg
diff --git a/setup.py b/setup.py
index 668b9367..de036325 100755
--- a/setup.py
+++ b/setup.py
@@ -25,6 +25,8 @@
         'Import mail from POP3, IMAP, local mailboxes or directly from '
         'Postfix or Exim4 into your Django application automatically.'
     ),
+    long_description_content_type='text/x-rst',
+    long_description=open('readme.rst', 'r').read(),
     license='MIT',
     author='Adam Coddington',
     author_email='me@adamcoddington.net',