blob: a864e73831cda77f42df0998a30c8ba9d0e1cd13 [file] [log] [blame]
Anand Doshidb6b8322016-06-09 16:29:12 +05301# -*- coding: utf-8 -*-
Aditya Hasef3c22f32019-01-22 18:22:20 +05302from __future__ import unicode_literals
Rushabh Mehtae460aa22013-12-11 11:32:21 +05303from setuptools import setup, find_packages
Anand Doshidb6b8322016-06-09 16:29:12 +05304import re, ast
Rushabh Mehtae460aa22013-12-11 11:32:21 +05305
Anand Doshidb6b8322016-06-09 16:29:12 +05306# get version from __version__ variable in erpnext/__init__.py
7_version_re = re.compile(r'__version__\s+=\s+(.*)')
8
Ameya Shenoyda33b142018-04-30 11:17:12 +05309with open('requirements.txt') as f:
10 install_requires = f.read().strip().split('\n')
11
Anand Doshidb6b8322016-06-09 16:29:12 +053012with open('erpnext/__init__.py', 'rb') as f:
Ameya Shenoy7cb8f892018-04-15 03:43:21 +053013 version = str(ast.literal_eval(_version_re.search(
14 f.read().decode('utf-8')).group(1)))
Anand Doshidb6b8322016-06-09 16:29:12 +053015
Rushabh Mehtae460aa22013-12-11 11:32:21 +053016setup(
Anand Doshi29fe53f2015-12-09 12:15:20 +053017 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 Shenoyda33b142018-04-30 11:17:12 +053025 install_requires=install_requires
Pratik Vyas0240dc52014-02-14 16:10:55 +053026)