Skip to content

Commit

Permalink
update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Sep 15, 2019
1 parent 1824033 commit a97b1d4
Showing 1 changed file with 37 additions and 47 deletions.
84 changes: 37 additions & 47 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: HJK
@file: setup.py
Expand All @@ -13,61 +13,51 @@
import setuptools

# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
os.system('rm -rf dist')
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
if sys.argv[-1] == "publish":
os.system("rm -rf dist")
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
sys.exit()

here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'music_dl', '__version__.py'), 'r', encoding='utf-8') as f:
with open(os.path.join(here, "music_dl", "__version__.py"), "r", encoding="utf-8") as f:
exec(f.read(), about)

with open('README.md', 'r', encoding='utf-8') as fh:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setuptools.setup(
name=about['__title__'],
version=about['__version__'],
description=about['__description__'],
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
license=about['__license__'],
name=about["__title__"],
version=about["__version__"],
description=about["__description__"],
author=about["__author__"],
author_email=about["__author_email__"],
url=about["__url__"],
license=about["__license__"],
long_description=long_description,
long_description_content_type='text/markdown',
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
test_suite = 'tests',
data_files = [("", ["LICENSE", "README.en.md"])],
entry_points={
'console_scripts': [
'music-dl = music_dl.__main__:main',
],
},
install_requires=[
'requests',
'click',
'pycryptodome',
'prettytable',
],
test_suite="tests",
entry_points={"console_scripts": ["music-dl = music_dl.__main__:main"]},
install_requires=["requests", "click", "pycryptodome", "prettytable"],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Multimedia',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Utilities'
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Utilities",
],
)
)

0 comments on commit a97b1d4

Please sign in to comment.