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 authored and tridge committed Aug 28, 2024
1 parent 7a1ef2f commit a2cf813
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
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

0 comments on commit a2cf813

Please sign in to comment.