Anand Doshi | db6b832 | 2016-06-09 16:29:12 +0530 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
Aditya Hase | f3c22f3 | 2019-01-22 18:22:20 +0530 | [diff] [blame] | 2 | from __future__ import unicode_literals |
Rushabh Mehta | e460aa2 | 2013-12-11 11:32:21 +0530 | [diff] [blame] | 3 | from setuptools import setup, find_packages |
Anand Doshi | db6b832 | 2016-06-09 16:29:12 +0530 | [diff] [blame] | 4 | import re, ast |
Rushabh Mehta | e460aa2 | 2013-12-11 11:32:21 +0530 | [diff] [blame] | 5 | |
Anand Doshi | db6b832 | 2016-06-09 16:29:12 +0530 | [diff] [blame] | 6 | # get version from __version__ variable in erpnext/__init__.py |
| 7 | _version_re = re.compile(r'__version__\s+=\s+(.*)') |
| 8 | |
Ameya Shenoy | da33b14 | 2018-04-30 11:17:12 +0530 | [diff] [blame] | 9 | with open('requirements.txt') as f: |
| 10 | install_requires = f.read().strip().split('\n') |
| 11 | |
Anand Doshi | db6b832 | 2016-06-09 16:29:12 +0530 | [diff] [blame] | 12 | with open('erpnext/__init__.py', 'rb') as f: |
Ameya Shenoy | 7cb8f89 | 2018-04-15 03:43:21 +0530 | [diff] [blame] | 13 | version = str(ast.literal_eval(_version_re.search( |
| 14 | f.read().decode('utf-8')).group(1))) |
Anand Doshi | db6b832 | 2016-06-09 16:29:12 +0530 | [diff] [blame] | 15 | |
Rushabh Mehta | e460aa2 | 2013-12-11 11:32:21 +0530 | [diff] [blame] | 16 | setup( |
Anand Doshi | 29fe53f | 2015-12-09 12:15:20 +0530 | [diff] [blame] | 17 | name='erpnext', |
| 18 | version=version, |
| 19 | description='Open Source ERP', |
| 20 | author='Frappe Technologies', |
| 21 | author_email='info@erpnext.com', |
| 22 | packages=find_packages(), |
| 23 | zip_safe=False, |
| 24 | include_package_data=True, |
Ameya Shenoy | da33b14 | 2018-04-30 11:17:12 +0530 | [diff] [blame] | 25 | install_requires=install_requires |
Pratik Vyas | 0240dc5 | 2014-02-14 16:10:55 +0530 | [diff] [blame] | 26 | ) |