2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00
bench/setup.py
Ankush Menat b51f0ed2b2
feat: bench setup requirements --dev (#1196)
* chore: typo

* chore: update project description

* feat: command to install dev-requirements.txt

Often applications have development or test specific requirements which
are not required in production.

- Add new command `bench setup dev-requirements`
- installs all `dev-requirements.txt` in app's root folder.

* refactor: remove duplicate function

* refactor: use `log` instead of print

* refactor: merge dev-requirement command

* feat: install dev-dependencies in get-app if dev

When developer mode is enabled install all dev dependencies too while
doing `get-app`

* fix: warn about --dev not supporting node
2021-09-13 20:55:21 +05:30

23 lines
547 B
Python

from setuptools import find_packages, setup
from bench import PROJECT_NAME, VERSION
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
setup(
name=PROJECT_NAME,
description='CLI to manage Multi-tenant deployments for Frappe apps',
author='Frappe Technologies',
author_email='info@frappe.io',
version=VERSION,
packages=find_packages(),
python_requires='~=3.6',
zip_safe=False,
include_package_data=True,
install_requires=install_requires,
entry_points='''
[console_scripts]
bench=bench.cli:cli
''',
)