-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
63 lines (49 loc) · 1.45 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
# -*- coding: utf-8 -*-
"""
Setup try package.
"""
import ast
import re
from setuptools import setup, find_packages
def get_version():
"""Gets the current version"""
_version_re = re.compile(r"__VERSION__\s+=\s+(.*)")
with open("trypackage/__init__.py", "rb") as init_file:
version = str(ast.literal_eval(_version_re.search(
init_file.read().decode("utf-8")).group(1)))
return version
setup(
name="trypackage",
version=get_version(),
license="MIT",
description="Awesome cli tool to try out python packages",
author="Timo Furrer",
author_email="[email protected]",
url="https://github.com/timofurrer/try",
packages=find_packages(),
include_package_data=True,
install_requires=["click"],
entry_points={
"console_scripts": [
"try=trypackage.__main__:main",
]
},
keywords=[
"try", "python", "packages",
"pypi", "github",
"interactive", "console",
"ipython", "versions",
"virtualenv"
],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Operating System :: OS Independent",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Intended Audience :: End Users/Desktop",
"Topic :: Utilities",
],
)