Skip to content

Commit e2c8252

Browse files
committed
Switch to pyproject.toml for package configuration
- Migrated from setup.py to pyproject.toml for better compliance with modern PEP - Identical package metadata, dependencies, and long description in the new configuration. - Enforce supported Python version
1 parent d504247 commit e2c8252

File tree

3 files changed

+55
-57
lines changed

3 files changed

+55
-57
lines changed

pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "cflib"
7+
version = "0.1.27"
8+
description = "Crazyflie Python driver"
9+
authors = [
10+
{ name = "Bitcraze and contributors", email = "contact@bitcraze.io" },
11+
]
12+
13+
readme = {file = "README.md", content-type = "text/markdown"}
14+
license = { text = "GPLv3" }
15+
keywords = ["driver", "crazyflie", "quadcopter"]
16+
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
20+
"Topic :: System :: Hardware :: Hardware Drivers",
21+
22+
# Supported Python versions
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
]
28+
requires-python = ">= 3.10"
29+
30+
dependencies = [
31+
"pyusb>=1.0.0b2",
32+
"libusb-package~=1.0",
33+
"scipy~=1.7",
34+
"numpy~=1.20",
35+
"packaging~=24.0",
36+
]
37+
38+
39+
[project.urls]
40+
Homepage = "bitcraze.io"
41+
Documentation = "https://www.bitcraze.io/documentation/repository/crazyflie-lib-python/master/"
42+
Repository = "https://github.com/bitcraze/crazyflie-lib-python"
43+
Issues = "https://github.com/bitcraze/crazyflie-lib-python/issues"
44+
45+
[project.optional-dependencies]
46+
dev = ["pre-commit"]
47+
48+
[tool.setuptools]
49+
include-package-data = true
50+
51+
[tool.setuptools.packages]
52+
find = { exclude = ["examples", "test"] }
53+
54+
[tool.setuptools.package-data]
55+
"cflib.resources.binaries" = ["cflib/resources/binaries/*.bin"]

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)