presik_pos/setup.py

79 lines
2.1 KiB
Python
Raw Normal View History

2020-04-19 17:54:08 +02:00
#!/usr/bin/env python
# This file is part of Presik POS. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
2023-01-02 20:06:27 +01:00
from setuptools import setup, find_packages
2020-04-19 17:54:08 +02:00
import os
import glob
import shutil
2023-01-02 20:06:27 +01:00
# from .app import __version__
2020-04-19 17:54:08 +02:00
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2020-04-22 02:27:51 +02:00
2020-04-19 17:54:08 +02:00
args = {}
2020-04-22 02:27:51 +02:00
2020-04-19 17:54:08 +02:00
data_files = [
2020-04-22 02:27:51 +02:00
('app', glob.glob('*.ini')),
2021-01-02 20:02:12 +01:00
('app/commons', glob.glob('pos/share/*.css')),
2020-04-22 02:27:51 +02:00
('app/share', glob.glob('app/share/*.png')),
2020-06-12 08:51:59 +02:00
('app/locale', glob.glob('app/locale/*.qm')),
2020-04-19 17:54:08 +02:00
]
if os.name == 'posix':
HOME_DIR = os.environ['HOME']
default_dir = os.path.join(HOME_DIR, '.tryton')
if not os.path.exists(default_dir):
os.mkdir(default_dir, '0777')
default_config = os.path.join(default_dir, 'config_pos.ini')
if not os.path.exists(default_config):
shutil.copyfile('config_pos.ini', default_config)
path_inifile = os.path.join(default_dir, 'config_pos.ini')
2023-01-02 20:06:27 +01:00
setup(
name='presik_pos',
# version=__version__,
2020-04-19 17:54:08 +02:00
description='POS Client for Tryton',
author='Oscar Alvarez',
author_email='gerente@presik.com',
url='www.presik.com',
download_url="http://www.bitbucket.org",
2023-01-02 20:06:27 +01:00
packages=[
'app',
'app/printing',
'app/commons',
'app/css',
'app/locale',
'app/tests'
2023-10-12 17:57:17 +02:00
],
2020-04-19 17:54:08 +02:00
data_files=data_files,
scripts=['pospro'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Natural Language :: English',
'Natural Language :: Spanish',
2023-10-12 17:57:17 +02:00
'Programming Language :: Python3.10',
2020-04-19 17:54:08 +02:00
'Topic :: Office/Business',
],
license='GPL',
2023-01-02 20:06:27 +01:00
install_requires=[
2023-10-12 17:57:17 +02:00
'pyusb',
'pillow',
'qrcode',
'paramiko',
'orjson',
'escpos',
'PySide6>=6.4.1',
'psutil',
'setproctitle'
2023-01-02 20:06:27 +01:00
]
2020-04-19 17:54:08 +02:00
)