-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python package now pyproject.toml for PEP 517
- Loading branch information
Showing
2 changed files
with
79 additions
and
87 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
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 |
---|---|---|
@@ -1,87 +1,6 @@ | ||
#!/usr/bin/env python | ||
"""Setup script to install the ``arduino-cli-cmake-wrapper`` package.""" | ||
|
||
import re | ||
from pathlib import Path | ||
|
||
from setuptools import find_packages | ||
# setup.py is kept to support legacy builds | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
from setuptools import setup | ||
|
||
|
||
def read(*names, **kwargs): | ||
"""Read file and return contents as a string.""" | ||
with Path(__file__).parent.joinpath(*names).open( | ||
encoding=kwargs.get('encoding', 'utf8') | ||
) as fh: | ||
return fh.read() | ||
|
||
|
||
setup( | ||
name='arduino-cli-cmake-wrapper', | ||
use_scm_version={ | ||
'local_scheme': 'dirty-tag', | ||
'write_to': 'src/arduino_cli_cmake_wrapper/_version.py', | ||
'fallback_version': '0.0.0', | ||
}, | ||
license='Apache-2.0', | ||
description='Arduino Cmake toolchain leveraging ``arduino-cli`` via python wrapper script', | ||
long_description='{}\n{}'.format( | ||
re.compile('^.. start-badges.*^.. end-badges', re.M | re.S).sub( | ||
'', read('README.rst') | ||
), | ||
re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')), | ||
), | ||
author='Sterling Lewis Peet', | ||
author_email='sterling.peet@gatech.edu', | ||
url='https://github.com/SterlingPeet/arduino-cli-cmake-wrapper', | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
py_modules=[path.stem for path in Path('src').glob('*.py')], | ||
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=[ | ||
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: Unix', | ||
'Operating System :: POSIX', | ||
'Operating System :: Microsoft :: Windows', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'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', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Utilities', | ||
], | ||
project_urls={ | ||
'Documentation': 'https://arduino-cli-cmake-wrapper.readthedocs.io/', | ||
'Changelog': 'https://arduino-cli-cmake-wrapper.readthedocs.io/en/latest/changelog.html', | ||
'Issue Tracker': 'https://github.com/SterlingPeet/arduino-cli-cmake-wrapper/issues', | ||
}, | ||
keywords=[ | ||
# eg: 'keyword1', 'keyword2', 'keyword3', | ||
], | ||
python_requires='>=3.7', | ||
install_requires=[ | ||
# eg: 'aspectlib==1.1.1', 'six>=1.7', | ||
], | ||
extras_require={ | ||
# eg: | ||
# "rst": ["docutils>=0.11"], | ||
# ":python_version=='3.8'": ["backports.zoneinfo"], | ||
}, | ||
setup_requires=[ | ||
'setuptools_scm>=3.3.1', | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'arduino-cli-wrapper = arduino_cli_cmake_wrapper.cli:main', | ||
] | ||
}, | ||
) | ||
# Configuration is in pyproject.toml | ||
setup() |