Skip to content

Commit

Permalink
Switch to pyproject.toml for package configuration
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
gemenerik committed Oct 17, 2024
1 parent d504247 commit e2c8252
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 57 deletions.
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "cflib"
version = "0.1.27"
description = "Crazyflie Python driver"
authors = [
{ name = "Bitcraze and contributors", email = "[email protected]" },
]

readme = {file = "README.md", content-type = "text/markdown"}
license = { text = "GPLv3" }
keywords = ["driver", "crazyflie", "quadcopter"]

classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: System :: Hardware :: Hardware Drivers",

# Supported Python versions
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.10"

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


[project.urls]
Homepage = "bitcraze.io"
Documentation = "https://www.bitcraze.io/documentation/repository/crazyflie-lib-python/master/"
Repository = "https://github.com/bitcraze/crazyflie-lib-python"
Issues = "https://github.com/bitcraze/crazyflie-lib-python/issues"

[project.optional-dependencies]
dev = ["pre-commit"]

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages]
find = { exclude = ["examples", "test"] }

[tool.setuptools.package-data]
"cflib.resources.binaries" = ["cflib/resources/binaries/*.bin"]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

55 changes: 0 additions & 55 deletions setup.py

This file was deleted.

0 comments on commit e2c8252

Please sign in to comment.