forked from alexander-akhmetov/python-shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (27 loc) · 952 Bytes
/
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
#!/usr/bin/env python3
import os
import re
from distutils.core import setup
def get_version(package):
"""
Returns version of a package (`__version__` in `init.py`).
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('shortcuts')
with open('README.md', 'r', encoding='utf8') as f:
readme = f.read()
setup(
name='shortcuts',
version=version,
description='Python library to create and parse Siri Shortcuts',
long_description=readme,
long_description_content_type='text/markdown',
author='Alexander Akhmetov',
author_email='[email protected]',
url='https://github.com/alexander-akhmetov/python-shortcuts',
python_requires="~=3.6",
packages=['shortcuts', 'shortcuts.actions'],
install_requires=['toml'],
entry_points={'console_scripts': ['shortcuts = shortcuts.cli:main']},
)