-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (45 loc) · 1.62 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import setup
import os
import sys
import json
_here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(_here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
settingsDir = os.path.join(os.path.dirname(__file__),'DMCGui','src','build','settings')
settingsFiles = os.listdir(settingsDir)
settings = {}
for f in settingsFiles:
file = os.path.join(settingsDir,f)
with open(file) as json_file:
_settings = json.load(json_file)
for item,val in _settings.items():
settings[item] = val
home = os.path.join(_here,'MJOLNIRGui')
packages = [x[0] for x in os.walk(home) if x[0][-1]!='_']
packages = [os.path.relpath(p,_here) for p in packages]
setup(
name=settings['app_name'],
version=settings['version'],
description=('Neutron Scattering software suite.'),
long_description=long_description,
long_description_content_type='text/markdown',
author=settings['author'],
author_email=settings['author_email'],
url=settings['url'],
license='MPL-2.0',
packages=packages,
package_data={'': ['*']},
include_package_data=True,
entry_points = {
"console_scripts": ['DMCGui = DMCGui.src.main.python.MJOLNIR_GUI:main']
},
python_requires='>=3.5',
install_requires=['pip>=20','sip>=5.3','PyQt5-sip','PyQt5','DMCPy>=0.1.4'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)