Skip to content

Commit

Permalink
use modern standard for python packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jun 14, 2024
1 parent 8dd60c5 commit 128b6c8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[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.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

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

21 changes: 0 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,13 @@
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

0 comments on commit 128b6c8

Please sign in to comment.