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

use modern standard for python packaging #63

Merged
merged 2 commits into from
Aug 28, 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: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Install pydronecan
run: |
python setup.py build install
python -m pip install .

- name: Run Tests from local
run: |
Expand Down
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[build-system]
requires = [
"setuptools",
]
build-backend = "setuptools.build_meta"

[project]
name = "dronecan"
dynamic = ["version", "scripts"]
description = "Python implementation of the DroneCAN protocol stack"
authors = [{name='Pavel Kirienko', email='[email protected]'},
{name='Ben Dyer', email='[email protected]'}]
maintainers = [{name='Andrew Tridgell', email='[email protected]'},
{name='Siddharth Purohit', email='[email protected]'}]
readme = {file = "README.txt", content-type = "text/markdown"}
requires-python = ">=3.7"
classifiers = [
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
]

[project.urls]
Homepage = "https://github.com/DroneCAN/pydronecan"
Issues = "https://github.com/DroneCAN/pydronecan/issues"

[tool.setuptools]
packages=['dronecan',
'dronecan.dsdl',
'dronecan.driver',
'dronecan.app']
22 changes: 0 additions & 22 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,12 @@
if not os.path.exists('dronecan/dsdl_specs'):
os.symlink('../../DSDL', 'dronecan/dsdl_specs')
args = dict(
name='dronecan',
version=__version__,
description='Python implementation of the DroneCAN protocol stack',
long_description = long_description,
long_description_content_type = "text/markdown",
packages=[
'dronecan',
'dronecan.dsdl',
'dronecan.driver',
'dronecan.app',
],
package_data={
'dronecan': [os.path.join(root[len('dronecan/'):], fname)
for root, dirs, files in os.walk('dronecan/dsdl_specs', followlinks=True)
for fname in files if fname.endswith('.uavcan')]
},
author='Pavel Kirienko, Ben Dyer',
author_email='[email protected]',
url='https://dronecan.github.io',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
],
keywords='',
scripts = [ 'tools/dronecan_bridge.py' ]
)
# ensure dsdl specs are not empty
Expand Down
Loading