-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (27 loc) · 968 Bytes
/
setup.py
File metadata and controls
30 lines (27 loc) · 968 Bytes
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
import re
import ast
from os import path
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
PACKAGE_NAME = 'shellwhat_ext'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.md'), encoding='utf-8') as fp:
README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, '__init__.py'), 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='shellwhat-ext',
version=version,
packages=['shellwhat_ext'],
install_requires=['protowhat>=1.1.0', 'shellwhat>=1.0.0'],
description='Extensions to shellwhat testing',
long_description=README,
long_description_content_type='text/markdown',
license='GNU version 3',
author='Michael Chow',
author_email='michael@datacamp.com',
maintainer='Filip Schouwenaars',
maintainer_email='filip@datacamp.com',
url='https://github.com/datacamp/shellwhat_ext',
)