Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: switch to poetry, add development dependencies #89

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,8 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

# ROS
/install
/log
3 changes: 3 additions & 0 deletions fogros2/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203, E501
1 change: 1 addition & 0 deletions fogros2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<maintainer email="kych@berkeley.edu">Kaiyuan (Eric) Chen</maintainer>
<maintainer email="kdharmarajan@berkeley.edu">Karthik Dharmarajan</maintainer>
<maintainer email="simeon.adebola@berkeley.edu">Simeon Adebola</maintainer>
<maintainer email="nikhiljha@berkeley.edu">Nikhil Jha</maintainer>
<author email="jeffi@berkeley.edu">Jeff Ichnowski</author>
<author email="kych@berkeley.edu">Kaiyuan (Eric) Chen</author>
<author email="kdharmarajan@berkeley.edu">Karthik Dharmarajan</author>
Expand Down
1,296 changes: 1,296 additions & 0 deletions fogros2/poetry.lock

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions fogros2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[tool.poetry]
name = "fogros2"
version = "0.1.5"
description = "A ROS 2 extension for the cloud deployment of computational graphs in a cloud-provider agnostic and security-conscious manner."
authors = ["Berkeley AutoLAB <autolab@berkeley.edu>"]
license = "Apache-2.0"

# Poetry

[tool.poetry.dependencies]
python = "^3.8"
boto3 = "^1.24.7"
scp = "^0.14.4"
wgconfig = "^0.2.2"
paramiko = "^2.11.0"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
mypy = "^0.961"
types-boto3 = "^1.0.2"
flake8 = "^4.0.1"
isort = "^5.10.1"
pytest = "^7.1.2"
coverage = "^6.4.1"
pre-commit = "^2.19.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

# Dev-Dependency Configuration

[tool.isort]
profile = "black"

[tool.coverage.run]
source = ["fogros2"]
branch = true

# ROS

[tool.colcon-poetry-ros.data-files]
"share/ament_index/resource_index/packages" = ["resource/fogros2"]
"share/fogros2" = ["package.xml"]
"share/fogros2/launch" = ["launch/cloud.launch.py"]
"share/fogros2/configs" = [
"configs/cyclonedds.ubuntu.2004.xml",
"configs/cyclonedds.ubuntu.2204.xml",
]

[tool.poetry.plugins."ros2cli.command"]
"fog" = "fogros2.command.fog:FogCommand"

[tool.poetry.plugins."fogros2.verb"]
"list" = "fogros2.verb.list:ListVerb"
"delete" = "fogros2.verb.delete:DeleteVerb"
"connect" = "fogros2.verb.ssh:SSHVerb"
4 changes: 0 additions & 4 deletions fogros2/requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions fogros2/setup.cfg

This file was deleted.

67 changes: 0 additions & 67 deletions fogros2/setup.py

This file was deleted.