forked from greatscottgadgets/python-usb-protocol
-
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.
new: dev: enable full PEP517 packaging, cleanup some import lint
Signed-off-by: Stephen L Arnold <[email protected]>
- Loading branch information
Showing
12 changed files
with
224 additions
and
153 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 was deleted.
Oops, something went wrong.
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,23 +1,50 @@ | ||
[metadata] | ||
name = usb_protocol | ||
version = attr: setuptools_scm.get_version | ||
description = utilities, data structures, constants, parsers, and tools for working with USB data | ||
url = https://github.com/greatscottgadgets/python-usb-protocol | ||
author = Katherine J. Temkin | ||
author_email = [email protected] | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
license_expression = BSD-3-Clause | ||
license_files = LICENSE.txt | ||
classifiers = | ||
Development Status :: 1 - Planning | ||
Intended Audience :: Science/Research | ||
Intended Audience :: Developers | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Environment :: Console | ||
Environment :: Plugins | ||
Topic :: Scientific/Engineering | ||
Topic :: Software Development | ||
Topic :: Security | ||
|
||
# deps are included here mainly for local/venv installs using pip | ||
# otherwise deps are handled via tox, ci config files or pkg managers | ||
[options] | ||
python_requires = >=3.7 | ||
|
||
install_requires = | ||
construct | ||
importlib-metadata; python_version < '3.8' | ||
|
||
# nothing special required for auto-discovery / flat layout | ||
[options.extras_require] | ||
# deps are included below mainly for local/venv installs using pip | ||
# otherwise deps may be handled via tox, ci config files or pkg managers | ||
doc = | ||
sphinx | ||
recommonmark | ||
sphinx_rtd_theme | ||
sphinxcontrib-apidoc | ||
|
||
test = | ||
pytest | ||
|
||
cov = | ||
pytest-cov | ||
cov = | ||
coverage[toml] | ||
coverage_python_version | ||
|
||
all = | ||
%(cov)s | ||
%(doc)s | ||
|
@@ -26,6 +53,10 @@ all = | |
[bdist_wheel] | ||
universal = 1 | ||
|
||
[check] | ||
metadata = true | ||
strict = false | ||
|
||
[check-manifest] | ||
ignore = | ||
.codeclimate.yml | ||
|
@@ -48,22 +79,38 @@ max-line-length = 250 | |
max-complexity = 10 | ||
addons = file,open,basestring,xrange,unicode,long,cmp | ||
ignore = | ||
W503, # line break before binary operator | ||
F401, # imported but unused | ||
F403, # star import used; unable to detect undefined names | ||
F405, # may be undefined, or defined from star imports | ||
E266, # too many leading '#' for block comment | ||
E203, # whitespace before ':' | ||
E221, # multiple spaces before operator | ||
E222, # multiple spaces after operator | ||
E241, # multiple spaces after ',' | ||
E261, # at least two spaces before inline comment | ||
E271, # multiple spaces after keyword | ||
E272, # multiple spaces before keyword | ||
E303, # too many blank lines | ||
E302, # expected 2 blank lines, found 1 | ||
E305, # expected 2 blank lines after class or function definition | ||
E731, # do not assign a lambda expression, use a def | ||
# line break before binary operator | ||
W503, | ||
# imported but unused | ||
F401, | ||
# star import used; unable to detect undefined names | ||
F403, | ||
# may be undefined, or defined from star imports | ||
F405, | ||
# too many leading '#' for block comment | ||
E266, | ||
# whitespace before ':' | ||
E203, | ||
# multiple spaces before operator | ||
E221, | ||
# multiple spaces after operator | ||
E222, | ||
# multiple spaces after ',' | ||
E241, | ||
# at least two spaces before inline comment | ||
E261, | ||
# multiple spaces after keyword | ||
E271, | ||
# multiple spaces before keyword | ||
E272, | ||
# too many blank lines | ||
E303, | ||
# expected 2 blank lines, found 1 | ||
E302, | ||
# expected 2 blank lines after class or function definition | ||
E305, | ||
# do not assign a lambda expression, use a def | ||
E731, | ||
|
||
[nosetests] | ||
verbosity = 3 | ||
|
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,51 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# minimal compat stub | ||
import setuptools | ||
|
||
from setuptools import setup | ||
|
||
setup( | ||
|
||
# Vitals | ||
name='usb_protocol', | ||
license='BSD', | ||
url='https://github.com/usb-tool/luna', | ||
author='Katherine J. Temkin', | ||
author_email='[email protected]', | ||
description='python library providing utilities, data structures, constants, parsers, and tools for working with USB data', | ||
use_scm_version= { | ||
"root": '..', | ||
"relative_to": __file__, | ||
"version_scheme": "guess-next-dev", | ||
"local_scheme": lambda version : version.format_choice("+{node}", "+{node}.dirty"), | ||
"fallback_version": "0.0" | ||
}, | ||
|
||
# Imports / exports / requirements. | ||
platforms='any', | ||
packages=[ | ||
'usb_protocol', | ||
'usb_protocol.emitters', | ||
'usb_protocol.types', | ||
], | ||
package_dir={'usb_protocol': 'usb_protocol', | ||
'usb_protocol.emitters': 'usb_protocol/emitters', | ||
'usb_protocol.types': 'usb_protocol/types', | ||
}, | ||
include_package_data=True, | ||
python_requires="~=3.7", | ||
install_requires=['construct'], | ||
|
||
# Metadata | ||
classifiers = [ | ||
'Programming Language :: Python', | ||
'Development Status :: 1 - Planning', | ||
'Natural Language :: English', | ||
'Environment :: Console', | ||
'Environment :: Plugins', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Security', | ||
], | ||
) | ||
setuptools.setup() |
Oops, something went wrong.