From 8e80897a83c70a2c01cf3ed0197e51b6df0ea21a Mon Sep 17 00:00:00 2001 From: Marc Bourqui Date: Fri, 25 Aug 2017 11:27:28 +0200 Subject: [PATCH] Update package metadata --- .travis.yml | 10 +++++----- README.md | 6 ++++++ setup.py | 5 ++++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5e1e446..2cb738b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,17 +4,17 @@ python: - 3.5 - 3.6 env: - - DJANGO_VERSION=1.9.13 - - DJANGO_VERSION=1.10.7 + - DJANGO_VERSION=1.9 + - DJANGO_VERSION=1.10 - DJANGO_VERSION=1.11.2 - DJANGO_VERSION=1.11.3 - - DJANGO_VERSION=1.11.4 + - DJANGO_VERSION=1.11 # https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django matrix: exclude: - - env: DJANGO_VERSION=1.9.13 + - env: DJANGO_VERSION=1.9 python: 3.6 - - env: DJANGO_VERSION=1.10.7 + - env: DJANGO_VERSION=1.10 python: 3.6 addons: apt_packages: diff --git a/README.md b/README.md index f258cc9..1bf4dc5 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,14 @@ Choices for Django model fields as enumeration ## Installation +### Using PyPI 1. Run `pip install django-echoices` +### Using the source code +1. Make sure [`pandoc`](http://pandoc.org/index.html) is installed +1. Run `./pypi_packager.sh` +1. Run `pip install dist/django_echoices-x.y.z-[...].wheel`, where `x.y.z` must be replaced by the actual + version number and `[...]` depends on your packaging configuration ## Usage diff --git a/setup.py b/setup.py index 9baf1f0..b032ed1 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,8 @@ from echoices import __version__ +REPO_URL = "https://github.com/mbourqui/django-echoices/" + with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() @@ -21,7 +23,8 @@ license='GNU GPLv3', description='Choices for Django model fields as enumeration', long_description=README, - url='https://github.com/mbourqui/django-echoices', + url=REPO_URL, + download_url=REPO_URL + 'releases/tag/v' + __version__, packages=find_packages(), include_package_data=True, package_data={