-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_dist.py
More file actions
60 lines (56 loc) · 1.52 KB
/
setup_dist.py
File metadata and controls
60 lines (56 loc) · 1.52 KB
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
60
# -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
from setuptools import find_packages
with open('NanoCETPy/_version.py', 'r', encoding='utf-8-sig') as f:
while True:
version_line = f.readline()
print(version_line)
if version_line.startswith('__version__'):
break
version = version_line.split('=')[1].strip().replace("'", "")
with open('README.md', 'r') as f:
long_description = f.read()
setup(
name='nanocetpy',
version=version,
description='NanoCET Control and Analysis Software',
packages=find_packages(),
url='https://github.com/Dispertech/NanoCETPy',
license='GPLv3',
author='Dispertech and Contributors',
author_email='info@dispertech.com',
classifiers=[
'Intended Audience :: End Users/Desktop',
'Development Status :: 4 - Beta',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
],
include_package_data=True,
package_data={'NanoCETPy':
['resources/*',]},
long_description=long_description,
long_description_content_type="text/markdown",
entry_points={
"console_scripts": [
"nanocet=NanoCETPy.__main__:main"
]
},
install_requires=[
'numpy',
'pyqtgraph',
'scipy',
'pyyaml',
'experimentor',
'scikit-image',
'h5py',
'pyzmq',
'pypylon',
'pyvisa',
'pyserial',
'pyqt5',
],
executables=[
Executable("NanoCETPy/start_sequential.py"),
],
)