mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Remove invoke tasks which perform system commands
- tasks.py is now for InvenTree specific tasks only
This commit is contained in:
22
tasks.py
22
tasks.py
@ -231,28 +231,6 @@ def coverage(c):
|
||||
# Generate coverage report
|
||||
c.run('coverage html')
|
||||
|
||||
@task
|
||||
def mysql(c):
|
||||
"""
|
||||
Install packages required for using InvenTree with a MySQL database.
|
||||
"""
|
||||
|
||||
print('Installing packages required for MySQL')
|
||||
|
||||
c.run('sudo apt-get install mysql-server libmysqlclient-dev')
|
||||
c.run('pip3 install mysqlclient')
|
||||
|
||||
@task
|
||||
def postgresql(c):
|
||||
"""
|
||||
Install packages required for using InvenTree with a PostgreSQL database
|
||||
"""
|
||||
|
||||
print("Installing packages required for PostgreSQL")
|
||||
|
||||
c.run('sudo apt-get install postgresql postgresql-contrib libpq-dev')
|
||||
c.run('pip3 install psycopg2')
|
||||
|
||||
@task(help={'filename': "Output filename (default = 'data.json')"})
|
||||
def export_records(c, filename='data.json'):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user