-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (38 loc) · 1.18 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
"""
Source build and installation script.
"""
from os import path, sep, walk
from setuptools import setup, find_packages
version = '0.0.1-dev'
def extract_requirements(filename):
return open(filename, "r").read().split("\n")
def find_package_data(source, strip=''):
pkg_data = []
for root, dirs, files in walk(source):
pkg_data += map(
lambda f: path.join(root.replace(strip, '').lstrip(sep), f),
files
)
return pkg_data
base_dir = path.dirname(__file__)
with open(path.join(base_dir, 'README.md')) as f:
long_description = f.read()
install_requires = extract_requirements('requirements.txt')
setup(
name='stratux',
version=version,
description='Stratux visualiser',
long_description=long_description,
license='MIT',
url='https://github.com/frankzhao/stratux',
author='Frank Zhao',
author_email='frank@frankzhao.net',
classifiers=[
'Topic :: Software Development :: Libraries :: Python Modules',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
packages=find_packages(),
scripts=['bin/stratux'],
install_requires=install_requires,
)