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

Dependency update, Py313 doc, and automatic versioning #495

Merged
merged 4 commits into from
Nov 21, 2024
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions docs/installation/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ page_id: install

This project requires Python 3.10+.

To install on Python 3.13, build tools and Python development headers are required.

See below sections for more platform-specific requirements.
## Install from Source
Expand Down Expand Up @@ -78,6 +79,8 @@ With linux, the crazyradio is easily recognized, but you have to setup UDEVpermi

Look at the [Zadig crazyradio instructions](https://www.bitcraze.io/documentation/repository/crazyradio-firmware/master/building/usbwindows/) to install crazyradio on Windows

If you're using Python 3.13, you need to install [Visual Studio](https://visualstudio.microsoft.com/downloads/). During the installation process, you only need to select the Desktop Development with C++ workload in the Visual Studio Installer.

### macOS
If you are using python 3.12 on mac you need to install libusb using homebrew.
```
Expand Down
25 changes: 17 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "cflib"
version = "0.1.27.1.dev0"
dynamic = ["version"]
description = "Crazyflie Python driver"
authors = [
{ name = "Bitcraze and contributors", email = "[email protected]" },
Expand All @@ -15,9 +15,16 @@ license = { text = "GPLv3" }
keywords = ["driver", "crazyflie", "quadcopter"]

classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Scientific/Engineering :: Robotics",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Operating System :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",

# Supported Python versions
"Programming Language :: Python :: 3.10",
Expand All @@ -28,14 +35,13 @@ classifiers = [
requires-python = ">= 3.10"

dependencies = [
"pyusb>=1.0.0b2",
"pyusb~=1.2",
"libusb-package~=1.0",
"scipy~=1.7",
"numpy~=1.20",
"packaging~=24.0",
"scipy~=1.14",
"numpy~=1.26",
"packaging~=24.2",
]


[project.urls]
Homepage = "https://www.bitcraze.io"
Documentation = "https://www.bitcraze.io/documentation/repository/crazyflie-lib-python/master/"
Expand All @@ -53,3 +59,6 @@ find = { exclude = ["examples", "test"] }

[tool.setuptools.package-data]
"cflib.resources.binaries" = ["cflib/resources/binaries/*.bin"]

[tool.setuptools_scm]
version_scheme = "no-guess-dev"