-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
61 lines (56 loc) · 1.9 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
from __future__ import absolute_import, print_function, unicode_literals, with_statement
import sys
from setuptools import setup, find_packages
supported_versions = [(2, 7), (3, 4)]
[major, minor] = sys.version_info[0:2]
for [supported_major, supported_minor] in supported_versions:
if major == supported_major and minor < supported_minor:
print("Python [%s] is unsupported!\nPlease use Python 2.7+ or 3.4+" %
(".".join(str(i) for i in sys.version_info[0:3])))
sys.exit(1)
name = "pockyt"
version = "1.4.6"
license = "GPLv3+"
motto = "A simple, yet powerful, commandline client for your Pocket collection."
author = "Arvind Chembarpu"
email = "[email protected]"
github = "https://github.com/achembarpu/%s" % (name)
try:
with open("README.rst") as f:
description = f.read()
description_type = "text/x-rst"
except:
description = ""
description_type = ""
setup(
name=name,
packages=find_packages(),
version=version,
description=motto,
long_description=description,
long_description_content_type=description_type,
author=author,
author_email=email,
url=github,
license=license,
install_requires=["parse>=1.19.0"],
download_url="%s/tarball/%s" % (github, version),
keywords=["pocket", "commandline", "automation"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Utilities",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
entry_points={
"console_scripts": [
"pockyt=pockyt.pockyt:main",
],
},
)