From 7a3de74481ac6f32c3e5acda57e72892231b11ce Mon Sep 17 00:00:00 2001 From: Euiseo Cha Date: Mon, 21 Jun 2021 10:33:23 +0900 Subject: [PATCH] chore: update README.md and setup.py --- README.md | 4 ++-- setup.py | 26 ++++++++++++++++++++++---- spotify_uri/__init__.py | 2 +- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9e4b0b7..a640069 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ pyspotify-uri ============= [![LICENSE](https://img.shields.io/github/license/zeroday0619/pyspotify-uri)](https://github.com/zeroday0619/pyspotify-uri/blob/main/LICENSE)![pyversions](https://img.shields.io/pypi/pyversions/spotify-uri)[![Upload PyPI](https://github.com/zeroday0619/pyspotify-uri/workflows/Upload%20Python%20Package/badge.svg)](https://pypi.org/project/spotify-uri/) - -This is a project that ported [@TooTallNate/spotify-uri](https://github.com/TooTallNate/spotify-uri) to Python. +**This project port "[@TooTallNate/spotify-uri](https://github.com/TooTallNate/spotify-uri)" to Python.** ### Parse and format the various Spotify URI formats + Spotify URIs get passed around in a variety of flavors. You can also convert them back into Spotify URIs or HTTP URLs. diff --git a/setup.py b/setup.py index 492631b..bd5167b 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,31 @@ +import re from setuptools import setup, find_packages +version = '' +with open('spotify_uri/__init__.py') as f: + version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('version is not set') + + +readme = '' +with open('README.md') as f: + readme = f.read() + + setup( name='spotify_uri', - version='1.0.1', - description='This is a project that ported @TooTallNate/spotify-uri to Python.', + version=version, + description='This project port "@TooTallNate/spotify-uri" to Python.', + long_description=readme, + long_description_content_type="text/markdown", + license='MIT', + include_package_data=True, author='zeroday0619', - author_email='zeroday0619@kakao.com', + author_email='zeroday0619_dev@outlook.com', url='https://github.com/zeroday0619/pyspotify-uri', - packages=find_packages(exclude=['.vscode', '.idea']), + packages=find_packages(exclude=['.vscode', '.idea', '.github']), keywords=[ "spotify", "spotify-uri" ], diff --git a/spotify_uri/__init__.py b/spotify_uri/__init__.py index c88de61..c01d0af 100644 --- a/spotify_uri/__init__.py +++ b/spotify_uri/__init__.py @@ -1,5 +1,5 @@ -__version__ = "1.0.1" +__version__ = "1.0.2" from spotify_uri.parse import parse as _parse from spotify_uri.search import Search as _Search