Skip to content

Commit

Permalink
chore: update README.md and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroday0619 committed Jun 21, 2021
1 parent 770fce8 commit 7a3de74
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
26 changes: 22 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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"
],
Expand Down
2 changes: 1 addition & 1 deletion spotify_uri/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7a3de74

Please sign in to comment.