blob: 8140700422648cd671a45e9407d69c18d42c949a [file] [log] [blame]
Rushabh Mehtae460aa22013-12-11 11:32:21 +05301from setuptools import setup, find_packages
Anand Doshidb6b8322016-06-09 16:29:12 +05302import re, ast
Rushabh Mehtae460aa22013-12-11 11:32:21 +05303
Anand Doshidb6b8322016-06-09 16:29:12 +05304# get version from __version__ variable in erpnext/__init__.py
5_version_re = re.compile(r'__version__\s+=\s+(.*)')
6
Ameya Shenoyda33b142018-04-30 11:17:12 +05307with open('requirements.txt') as f:
8 install_requires = f.read().strip().split('\n')
9
Anand Doshidb6b8322016-06-09 16:29:12 +053010with open('erpnext/__init__.py', 'rb') as f:
Ameya Shenoy7cb8f892018-04-15 03:43:21 +053011 version = str(ast.literal_eval(_version_re.search(
12 f.read().decode('utf-8')).group(1)))
Anand Doshidb6b8322016-06-09 16:29:12 +053013
Rushabh Mehtae460aa22013-12-11 11:32:21 +053014setup(
Anand Doshi29fe53f2015-12-09 12:15:20 +053015 name='erpnext',
16 version=version,
17 description='Open Source ERP',
18 author='Frappe Technologies',
19 author_email='info@erpnext.com',
20 packages=find_packages(),
21 zip_safe=False,
22 include_package_data=True,
Ameya Shenoyda33b142018-04-30 11:17:12 +053023 install_requires=install_requires
Pratik Vyas0240dc52014-02-14 16:10:55 +053024)