-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
28 lines (22 loc) · 876 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
import re
from setuptools import setup
from os import path
project_path = path.abspath(path.dirname(__file__))
meta_file = open(path.join(project_path, "mutations", "metadata.py")).read()
md = dict(re.findall(r"__([a-z]+)__\s*=\s*'([^']+)'", meta_file))
with open(path.join(project_path, 'README.md')) as f:
long_description = f.read()
setup(
name='mutations',
version=md['version'],
author=md['author'],
author_email=md['authoremail'],
packages=['mutations'],
url="http://github.com/omarish/mutations",
license='MIT',
description='Encapsulate your business logic in command classes.',
long_description=long_description,
long_description_content_type='text/markdown',
keywords=['business logic', 'django', 'fat models', 'thin models', 'input validation', 'commands', 'validation'],
install_requires=['six>=1.11.0'],
)