-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
27 lines (24 loc) · 915 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
from __future__ import unicode_literals
import os.path
from setuptools import setup, find_packages
pkg_name = 'magprime'
__here__ = os.path.abspath(os.path.dirname(__file__))
# Sideboard's implementation of http://stackoverflow.com/a/16084844/171094
# after this, __version__ should exist in the namespace
exec(open(os.path.join(__here__, pkg_name.replace('-', '_'), '_version.py')).read())
req_data = open(os.path.join(__here__, 'requirements.txt')).read()
requires = [r.strip() for r in req_data.split() if r.strip() != '']
requires = list(reversed(requires))
if __name__ == '__main__':
setup(
name=pkg_name,
version=__version__,
description='Sideboard ' + pkg_name + ' plugin',
license='GPLv3',
scripts=[],
install_requires=requires,
packages=find_packages(),
include_package_data=True,
package_data={},
zip_safe=False
)