-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use modern standard for python packaging
- Loading branch information
1 parent
7a1ef2f
commit a2cf813
Showing
2 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|