From c119fa5259427703821ad3930cfdfe5edc998547 Mon Sep 17 00:00:00 2001 From: Martin Mogusu Date: Tue, 20 Nov 2018 17:33:23 +0300 Subject: [PATCH] Updated project metadata --- MANIFEST.in | 6 +++++ README.md | 2 ++ setup.py | 67 ++++++++++++++++++++++++++++------------------------- 3 files changed, 43 insertions(+), 32 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..051eb3d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include README.md +include LICENSE.txt +include requirements.txt +include tox.ini +recursive-include docs Makefile *.rst *.py *.bat +recursive-include tests *.py *.json *.txt \ No newline at end of file diff --git a/README.md b/README.md index 218cced..debdce5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ This is a django module based on the MPESA daraja API. Use it to interact with the MPESA API in a simplified manner, abstracting the details for a simple, intuitive usage experience, as well as extensive error handling. [![Build Status](https://travis-ci.org/martinmogusu/django-daraja.svg?branch=master)](https://travis-ci.org/martinmogusu/django-daraja) +[![Documentation Status](https://readthedocs.org/projects/django-daraja/badge/?version=latest)](https://django-daraja.readthedocs.io/en/latest/?badge=latest) + Read the documentation at https://django-daraja.readthedocs.io diff --git a/setup.py b/setup.py index ac3fb02..82588e4 100644 --- a/setup.py +++ b/setup.py @@ -2,55 +2,58 @@ import os try: - from setuptools import setup + from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() - from setuptools import setup + from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( - name="django-daraja", - version="1.0", - description="A python django library for interacting with the MPESA Daraja API.", + name='django-daraja', + version='1.0', + description='A python django library for interacting with the MPESA Daraja API.', long_description= -""" +''' This is a django module based on the MPESA daraja API. Use it to interact with the MPESA API in a simplified manner, abstracting the details for a simple, intuitive usage experience, as well as extensive error handling. -Read the documentation at https://django-admin.readthedocs.io +Read the documentation at https://django-daraja.readthedocs.io -Daraja API documentation can be found at https://developer.safaricom.co.ke""", - author="Martin Mogusu", - author_email="martinmogusu@gmail.com", - url="https://github.com/martinmogusu/django-daraja", - download_url="https://github.com/martinmogusu/django-daraja.git", - license="MIT License", - packages=[ - "django_daraja", - ], +Daraja API documentation can be found at https://developer.safaricom.co.ke''', + author='Martin Mogusu', + author_email='martinmogusu@gmail.com', + url='https://github.com/martinmogusu/django-daraja', + download_url='https://github.com/martinmogusu/django-daraja.git', + license='MIT License', + packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']), include_package_data=True, install_requires=[ - "Django>=1.11", - "python-decouple", - "requests" + 'Django>=1.11', + 'python-decouple', + 'requests' ], tests_require=[ - "nose", - "coverage", + 'nose', + 'coverage', ], zip_safe=False, - test_suite="tests.runtests.start", + test_suite='tests.runtests.start', classifiers=[ - "Operating System :: OS Independent", - "Development Status :: 3 - Alpha", - "Environment :: Web Environment", - "Framework :: Django", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 3", - "Topic :: Software Development :: Libraries :: Python Modules" - ] + 'Operating System :: OS Independent', + 'Development Status :: 3 - Alpha', + 'Environment :: Web Environment', + 'Framework :: Django', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', + 'Topic :: Software Development :: Libraries :: Python Modules' + ], + keywords='mpesa django daraja finance mobile-money', + project_urls={ + 'Documentation': 'https://django-daraja.readthedocs.io/', + 'Source': 'https://github.com/martinmogusu/django-daraja', +}, ) \ No newline at end of file