-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (28 loc) · 839 Bytes
/
Copy pathsetup.py
File metadata and controls
35 lines (28 loc) · 839 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
31
32
33
34
35
import re
from os.path import join, dirname
from setuptools import setup, find_namespace_packages
# reading package version (same way the sqlalchemy does)
with open(join(dirname(__file__), 'yhttp/boilerplate/__init__.py')) as v_file:
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S).\
match(v_file.read()).group(1)
dependencies = [
'yhttp >= 6.3.1, < 7'
]
setup(
name='boilerplate',
version=package_version,
install_requires=dependencies,
license='',
url='https://github.com/yhttp/yhttp-boilerplate',
author='atipy',
packages=find_namespace_packages(
where='.',
include=['yhttp.boilerplate'],
exclude=['tests']
),
entry_points={
'console_scripts': [
'yhttp-boilerplate = yhttp.boilerplate:app.climain'
]
},
)