-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (58 loc) · 2.23 KB
/
setup.py
File metadata and controls
65 lines (58 loc) · 2.23 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
61
62
63
64
65
## setup.py
## - Build wheel file & make distribution
##
## Copyright (c) 2022 WPC Systems Ltd.
## All rights reserved.
## Python
import sys
import setuptools as sut
## WPC
sys.path.append('wpcsys/')
# --- get version ---
version = "unknown"
with open("wpcsys/version.py") as f:
line = f.read().strip()
version = line.replace("version = ", "").replace('"', '')
class BinaryDistribution(sut.dist.Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(x):
return True
with open("README.rst", "r", encoding="utf-8") as fh:
long_description = fh.read()
sut.setup(
name="wpcsys",
version=version,
description='WPC Python driver APIs, the easiest way to Control & Data Acquisition (DAQ)',
long_description=long_description,
long_description_content_type='text/x-rst',
author="Chunglee people, Chieh-An Lin",
author_email="wu@wpc.com.tw",
url="https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release",
packages=['wpcsys'],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Documentation :: Sphinx",
"Topic :: Software Development :: Libraries :: Python Modules",
],
distclass=BinaryDistribution,
license="MIT",
license_files=["LICENSE"],
keywords='WPC, Drone, DAQ, Motion card, Motion driver, USB, Ethernet, Wifi',
include_package_data=True,
install_requires=['pyusb>=1.2.1', 'numpy>=1.23.0',
'qasync>=0.23.0', 'matplotlib>=3.5.2',
'PyQt5>=5.15.4', 'PyQt5-Qt5>=5.15.2',
'PyQt5-sip>=12.10.1', 'wpcEXEbuild>=0.0.1',
'pyserial>=3.5'],
python_requires='>=3.8',
)