2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 15:08:24 +00:00
bench/setup.py

29 lines
727 B
Python
Raw Normal View History

2014-07-11 10:25:20 +05:30
from setuptools import setup, find_packages
2016-06-09 15:39:54 +05:30
import re, ast
# get version from __version__ variable in bench/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
2018-04-17 16:13:17 +05:30
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
2018-04-17 16:13:17 +05:30
with open('bench/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
2014-07-10 22:51:34 +05:30
setup(
2014-07-15 09:45:59 +05:30
name='bench',
2015-12-22 11:59:41 -08:00
description='Metadata driven, full-stack web framework',
author='Frappe Technologies',
2014-07-15 09:50:39 +05:30
author_email='info@frappe.io',
version=version,
2015-12-22 11:59:41 -08:00
packages=find_packages(),
zip_safe=False,
include_package_data=True,
2018-04-17 16:13:17 +05:30
install_requires=install_requires,
2014-07-15 09:45:59 +05:30
entry_points='''
2014-07-10 22:51:34 +05:30
[console_scripts]
2014-07-11 13:10:33 +05:30
bench=bench.cli:cli
2014-07-10 22:51:34 +05:30
''',
)