Move car python code into src subdirectory

This commit is contained in:
Piv
2020-04-19 12:30:00 +09:30
parent acdc822d5d
commit 3946ebc660
59 changed files with 7 additions and 12 deletions

7
car/.gitignore vendored
View File

@@ -1,7 +0,0 @@
**/*env
**.vscode
**.DS_STORE
**/__pycache__
build
dist
CarController.egg-info

View File

@@ -12,5 +12,9 @@ dependencies {
task copyPythonCode(type: Copy, dependsOn: configurations.python){ task copyPythonCode(type: Copy, dependsOn: configurations.python){
// Copy python protobuf code from proto project. // Copy python protobuf code from proto project.
from zipTree(configurations.python.asPath) from zipTree(configurations.python.asPath)
into '.' into './src'
}
task build(type: Exec, dependsOn: copyPythonCode) {
commandLine 'python3', 'setup.py', 'bdist_wheel'
} }

View File

@@ -1,3 +0,0 @@
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/control/motorService.proto
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/slam/SlamController.proto
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/tracking/lidar_tracker.proto

View File

@@ -2,7 +2,8 @@ from setuptools import setup, find_packages
setup( setup(
name="CarController", name="CarController",
packages=find_packages(), package_dir={'': 'src'},
packages=find_packages('src'),
author="Michael Pivato", author="Michael Pivato",
version="0.1" version="0.1"
) )

View File

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 13 MiB

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB