Skip to content

Commit

Permalink
IMPROVEMENT: setup.py include vehicle templates into PyPI generated p…
Browse files Browse the repository at this point in the history
…ackage

Remove unused, outdated code
Declare some auxiliary scripts as such
  • Loading branch information
amilcarlucas committed May 13, 2024
1 parent 4af78d7 commit 84692f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 29 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include vehicle_templates *
36 changes: 7 additions & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,6 @@
from MethodicConfigurator.version import VERSION


def package_files(directory):
paths = []
for (path, _directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths


package_data = [
'vehcle_templates/ArduCopter/diatone_taycan_mxc/*',
# Add any other package_data requirements here
]

# note that we do not include all the real dependencies here (like lxml etc)
# as that breaks the pip install. It seems that pip is not smart enough to
# use the system versions of these dependencies, so it tries to download and install
# large numbers of modules like tkinter etc which may be already installed
requirements = ['pymavlink>=2.4.14',
'pyserial>=3.0']

dev_requirements = [
'ruff',
'pytest',
Expand Down Expand Up @@ -96,21 +76,19 @@ def package_files(directory):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
],
# Add the license
license='GPLv3',
python_requires='>=3.6',
keywords=['ArduPilot', 'Configuration', 'SCM', 'Methodic', 'ArduCopter', 'ArduPlane', 'ArduRover', 'ArduSub'],
# Include package data
# package_data={
# # If you have data files
# '': ['*.md', '*.txt', '*.xml', '*.json'],
# '4.3.8-params': ['*.param'],
# '4.4.4-params': ['*.param'],
# '4.5.1-params': ['*.param'],
# '4.6.0-DEV-params': ['*.param'],
# },
include_package_data=True,
scripts=['MethodicConfigurator/annotate_params.py',
'MethodicConfigurator/extract_param_defaults.py',
'MethodicConfigurator/param_pid_adjustment_update.py'
],
# Specify entry points for command-line scripts
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 84692f8

Please sign in to comment.