From 74375ec71aac87e8dd581d9f980cf2bba1fbe0e4 Mon Sep 17 00:00:00 2001 From: Kaelin Laundry Date: Sun, 29 Jul 2018 16:49:57 -0700 Subject: [PATCH] Update package metadata for PyPi (#491) --- README.rst | 2 +- setup.cfg | 2 +- setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index ba82ae2..b0dbc37 100644 --- a/README.rst +++ b/README.rst @@ -250,7 +250,7 @@ but this library is compatible only with Python 3. .. _package repository: pypi_ .. _pypi: https://pypi.python.org/pypi .. _latest version of this package: pypi-python-ev3dev_ -.. _pypi-python-ev3dev: https://pypi.python.org/pypi/python-ev3dev +.. _pypi-python-ev3dev: https://pypi.python.org/pypi/python-ev3dev2 .. _ev3dev Visual Studio Code extension: https://github.com/ev3dev/vscode-ev3dev-browser .. _Python + VSCode introduction tutorial: https://github.com/ev3dev/vscode-hello-python .. _nano: http://www.ev3dev.org/docs/tutorials/nano-cheat-sheet/ diff --git a/setup.cfg b/setup.cfg index f797a99..be98747 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [sdist_dsc] -package: python-ev3dev +package: python-ev3dev2 diff --git a/setup.py b/setup.py index a8d650d..9c697d6 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,10 @@ from setuptools import setup from git_version import git_version +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() setup( name='python-ev3dev2', @@ -11,6 +15,8 @@ license='MIT', url='https://github.com/ev3dev/ev3dev-lang-python', include_package_data=True, + long_description=long_description, + long_description_content_type='text/x-rst', packages=['ev3dev2', 'ev3dev2.fonts', 'ev3dev2.sensor',