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