Skip to content
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
8 changes: 6 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
deploy:

runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cflib
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -34,5 +39,4 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
10 changes: 7 additions & 3 deletions .github/workflows/test-python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
deploy:

runs-on: ubuntu-latest
environment:
name: pypi-test
url: https://pypi.org/p/cflib
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -34,6 +39,5 @@ jobs:
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
verbose: true
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.1.dev0"
description = "Crazyflie Python driver"
authors = [
{ name = "Bitcraze and contributors", email = "contact@bitcraze.io" },
]

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 = "https://www.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.

56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tools/build/bdist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ try:
script_dir = os.path.dirname(os.path.realpath(__file__))
root = _path.normpath(_path.join(script_dir, '../..'))

subprocess.check_call(['python3', 'setup.py', 'bdist_wheel'], cwd=root)
subprocess.check_call(['python3', '-m', 'build', '--wheel'], cwd=root)

print('Wheel built')
except subprocess.CalledProcessError as e:
Expand Down
Loading