forked from google/mozc-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·72 lines (67 loc) · 2.3 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
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import codecs
import os
from setuptools import setup, find_packages
def read_file(name):
with codecs.open(
os.path.join(os.path.dirname(__file__), name), 'r', 'utf-8') as f:
return f.read().strip()
setup(
name='nazoru-input',
version='0.1.2',
author='Makoto Shimazu',
author_email='[email protected]',
url='https://landing.google.com/tegaki',
description='Package for Gboard Physical Handwriting Version',
long_description=read_file('README.rst'),
license='Apache',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: No Input/Output (Daemon)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
packages=find_packages('src'),
package_dir={'': 'src'},
package_data={
'nazoru': ['data/optimized_nazoru.pb']
},
scripts=[
'bin/nazoru-input',
'bin/nazoru-training'
],
# For installing the nazoru_input as a service of systemd. Please uncomment
# the following |data_files| if you want to install nazoru.service.
# data_files=[('/etc/systemd/system', ['data/nazoru.service'])],
install_requires=[
'cairocffi',
'pillow',
'tensorflow~=2.12.1',
'tf_slim~=1.1.0',
'enum34;python_version<"3.4"',
'pyserial',
'evdev;platform_system=="Linux"',
'wiringpi;platform_system=="Linux"'
],
python_requires='>=3.8, <3.12'
)