From 0284a279d535d6b9ea5bba7fa03843b9c14d6901 Mon Sep 17 00:00:00 2001 From: jerematt Date: Thu, 21 Apr 2022 11:18:49 +0100 Subject: [PATCH] Use README.md for long description (#55) * Use README.md for long description * Dont use encoding in open for py2 support * Add short description and bump version * Update description string --- Makefile | 16 ++-------------- setup.py | 8 +++++++- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 20a5f42..bc0f0a0 100644 --- a/Makefile +++ b/Makefile @@ -50,17 +50,5 @@ test: install pytest .PHONY: upload -upload: build check-env - twine upload --repository-url ${REPO} --username ${USER} --password "${PASSWORD}" dist/* - -.PHONY: check-env -check-env: -ifndef REPO - $(error $REPO must be specified) -endif -ifndef USER - $(error USER must be specified) -endif -ifndef PASSWORD - $(error PASSWORD must be specified) -endif +upload: build + twine upload wheelhouse/* $(sdist) diff --git a/setup.py b/setup.py index a48a8ae..f0bd221 100755 --- a/setup.py +++ b/setup.py @@ -2,13 +2,19 @@ from setuptools import setup, Extension +with open("README.md", "r") as fh: + long_description = fh.read() + setup( name="pypredict", - version="1.6.2", + version="1.6.3", author="Jesse Trutna", author_email="jesse@spire.com", maintainer="Spire Global Inc", maintainer_email="opensource@spire.com", + description="Interface to the Predict satellite tracking and orbital prediction library", + long_description=long_description, + long_description_content_type="text/markdown", url="https://github.com/nsat/pypredict", py_modules=["predict"], ext_modules=[Extension("cpredict", ["predict.c"])],