-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
55 lines (46 loc) · 1.17 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
50
51
52
53
54
55
# -*- coding: utf-8 -*-
"""setup.py: setuptools control."""
import re
from setuptools import setup
#import yaml
#import ruamel.yaml as yaml
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('flaskstrap/flaskstrap.py').read(),
re.M
).group(1)
"""with open('version.yml') as stream:
data = yaml.load(stream)
major = str(data['major'])
minor = str(data['minor'])
patch = str(data['patch'])
build = str(data['build'])
version = major + '.' + minor + '.' + patch + '.' + build"""
with open("README.rst", "rb") as f:
long_descr = f.read().decode("utf-8")
setup(
name="flaskstrap",
packages=["flaskstrap"],
include_package_data=True,
zip_safe=False,
install_requires=[
'pyyaml',
'paramiko',
'termcolor',
'ruamel.yaml',
'shyaml',
],
entry_points={
"console_scripts": [
'flaskstrap = flaskstrap.flaskstrap:main',
'fstrap = flaskstrap.flaskstrap:main',
#'fstrap-init = flaskstrap.flaskstrap:init'
]
},
version=version,
description="Easily create a flask, nginx, uwsgi and bootstrap project ready for deployment",
long_description=long_descr,
author="Logi Leifsson",
author_email="[email protected]",
url='https://github.com/logileifs/flaskstrap',
)