-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·69 lines (65 loc) · 2.14 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
# coding=utf-8
#
# Python Script
#
# Copyright © Manoel Vilela
#
#
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
from warnings import warn
import mal
here = path.abspath(path.dirname(__file__))
readme = path.join(here, 'README.md')
try:
import pypandoc
long_description = pypandoc.convert_file(readme, 'rst', format='markdown')
except ImportError:
warn("Only-for-developers: you need pypandoc for upload "
"correct reStructuredText into PyPI home page")
# Get the long description from the relevant file
with open(readme, encoding='utf-8') as f:
long_description = f.read()
setup(
name=mal.__name__,
version=mal.__version__,
description="A command line interface to your MyAnimeList profile",
long_description=long_description,
classifiers=[
"Environment :: Console",
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Topic :: Internet",
"Topic :: Games/Entertainment",
"Topic :: Utilities",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='mal myanimelist cli anime manager',
author=mal.__author__,
author_email=mal.__email__,
url=mal.__url__,
download_url="{u}/archive/v{v}.tar.gz".format(u=mal.__url__,
v=mal.__version__),
zip_safe=False,
license='GPL',
packages=find_packages(exclude=['ez_setup', 'examples',
'tests', 'docs', '__pycache__']),
platforms='unix',
install_requires=open('requirements.txt').read(),
extras_require={
"Requires-Dist": ["pypandoc"]
},
entry_points={
'console_scripts': [
'mal = mal.cli:main'
]
}
)