Skip to content

Commit

Permalink
Updates supported versions of Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
russell-inorbit committed Jan 13, 2024
1 parent 71979fa commit 27f81c2
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.bat]
indent_style = tab
end_of_line = crlf

[LICENSE]
insert_final_newline = false

Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,8 @@ ENV/
.mypy_cache/

# VSCode
.vscode
.vscode

# JetBrains
.idea/
*.iml
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting any of the maintainers of this project and
reported by contacting any of the maintainers of this project, and
we will attempt to resolve the issues with respect and dignity.

Project maintainers who do not follow or enforce the Code of Conduct in good
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://github.com/inorbit-ai/edge-sdk-python/workflows/Build%20Main/badge.svg)](https://github.com/inorbit-ai/edge-sdk-python/actions)
[![Code Coverage](https://codecov.io/gh/inorbit/edge-sdk-python/branch/main/graph/badge.svg)](https://codecov.io/gh/inorbit/edge-sdk-python)

The `InOrbit Edge SDK` allows Python programs to communicate with `InOrbit` platform on behalf of robots - providing robot data and handling robot actions. It's goal is to ease the integration between `InOrbit` and any other software that handles robot data.
The `InOrbit Edge SDK` allows Python programs to communicate with `InOrbit` platform on behalf of robots - providing robot data and handling robot actions. Its goal is to ease the integration between `InOrbit` and any other software that handles robot data.

---

Expand Down Expand Up @@ -35,7 +35,7 @@ def my_command_handler(robot_id, command_name, args, options):
has the following signature: `result_function(return_code)`.
- `progress_function` can be used to report command output and has the
following signature: `progress_function(output, error)`.
- `metadata` is reserved for the future and will contains additional
- `metadata` is reserved for the future and will contain additional
information about the received command request.
"""
if command_name == "customCommand":
Expand All @@ -50,7 +50,7 @@ robot_session_factory = RobotSessionFactory(

# Register commands handlers. Note that all handlers are invoked.
robot_session_factory.register_command_callback(my_command_handler)
robot_session_factory.register_executable_commands("./user_scripts", r".*\.sh")
robot_session_factory.register_commands_path("./user_scripts", r".*\.sh")

robot_session_pool = RobotSessionPool(robot_session_factory)

Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
]

requirements = [
# TODO(russell): https://devhub.checkmarx.com/cve-details/CVE-2023-32681/
"requests==2.26.0",
"paho_mqtt==1.6.1",
"PySocks==1.7.1",
# TODO(russell): https://devhub.checkmarx.com/cve-details/CVE-2022-1941/
"protobuf==3.19.3",
"certifi>=2021.10.8",
"deprecated==1.2.13"
Expand All @@ -73,9 +75,10 @@
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
],
description="InOrbit Python Edge SDK",
install_requires=requirements,
Expand All @@ -85,14 +88,13 @@
keywords="inorbit_edge",
name="inorbit_edge",
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*"]),
python_requires=">=3.7",
python_requires=">=3.8, <3.12",
setup_requires=setup_requirements,
test_suite="inorbit_edge/tests",
tests_require=test_requirements,
extras_require=extra_requirements,
url="https://github.com/inorbit-ai/edge-sdk-python",
# Do not edit this string manually, always use bumpversion
# Details in CONTRIBUTING.rst
# Do not edit this string manually, always use bumpversion - Details in CONTRIBUTING.rst
version="1.12.1",
zip_safe=False,
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipsdist = True
envlist = py37, py38, py39, lint
envlist = py38, py39, py10, py311, lint

[testenv:lint]
deps =
Expand Down

0 comments on commit 27f81c2

Please sign in to comment.