diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fff3aa9..1dad804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: source actions-ci/install.sh - name: Pip install pylint, black, & Sphinx run: | - pip install --force-reinstall pylint==1.9.2 black==19.10b0 Sphinx sphinx-rtd-theme + pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme - name: Library version run: git describe --dirty --always --tags - name: PyLint diff --git a/.pylintrc b/.pylintrc index cd65e95..d8f0ee8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -119,7 +119,8 @@ spelling-store-unknown-words=no [MISCELLANEOUS] # List of note tags to take in consideration, separated by a comma. -notes=FIXME,XXX,TODO +# notes=FIXME,XXX,TODO +notes=FIXME,XXX [TYPECHECK] diff --git a/adafruit_vc0706.py b/adafruit_vc0706.py index 06b5587..89895d8 100644 --- a/adafruit_vc0706.py +++ b/adafruit_vc0706.py @@ -48,50 +48,50 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_VC0706.git" # pylint: disable=bad-whitespace -_SERIAL = const(0x00) -_RESET = const(0x26) -_GEN_VERSION = const(0x11) -_SET_PORT = const(0x24) -_READ_FBUF = const(0x32) -_GET_FBUF_LEN = const(0x34) -_FBUF_CTRL = const(0x36) -_DOWNSIZE_CTRL = const(0x54) -_DOWNSIZE_STATUS = const(0x55) -_READ_DATA = const(0x30) -_WRITE_DATA = const(0x31) -_COMM_MOTION_CTRL = const(0x37) -_COMM_MOTION_STATUS = const(0x38) +_SERIAL = const(0x00) +_RESET = const(0x26) +_GEN_VERSION = const(0x11) +_SET_PORT = const(0x24) +_READ_FBUF = const(0x32) +_GET_FBUF_LEN = const(0x34) +_FBUF_CTRL = const(0x36) +_DOWNSIZE_CTRL = const(0x54) +_DOWNSIZE_STATUS = const(0x55) +_READ_DATA = const(0x30) +_WRITE_DATA = const(0x31) +_COMM_MOTION_CTRL = const(0x37) +_COMM_MOTION_STATUS = const(0x38) _COMM_MOTION_DETECTED = const(0x39) -_MOTION_CTRL = const(0x42) -_MOTION_STATUS = const(0x43) -_TVOUT_CTRL = const(0x44) -_OSD_ADD_CHAR = const(0x45) +_MOTION_CTRL = const(0x42) +_MOTION_STATUS = const(0x43) +_TVOUT_CTRL = const(0x44) +_OSD_ADD_CHAR = const(0x45) -_STOPCURRENTFRAME = const(0x0) -_STOPNEXTFRAME = const(0x1) -_RESUMEFRAME = const(0x3) -_STEPFRAME = const(0x2) +_STOPCURRENTFRAME = const(0x0) +_STOPNEXTFRAME = const(0x1) +_RESUMEFRAME = const(0x3) +_STEPFRAME = const(0x2) # pylint doesn't like the lowercase x but it makes it more readable. # pylint: disable=invalid-name -IMAGE_SIZE_640x480 = const(0x00) -IMAGE_SIZE_320x240 = const(0x11) -IMAGE_SIZE_160x120 = const(0x22) +IMAGE_SIZE_640x480 = const(0x00) +IMAGE_SIZE_320x240 = const(0x11) +IMAGE_SIZE_160x120 = const(0x22) # pylint: enable=invalid-name -_BAUDRATE_9600 = const(0xAEC8) -_BAUDRATE_19200 = const(0x56E4) -_BAUDRATE_38400 = const(0x2AF2) -_BAUDRATE_57600 = const(0x1C1C) -_BAUDRATE_115200 = const(0x0DA6) +_BAUDRATE_9600 = const(0xAEC8) +_BAUDRATE_19200 = const(0x56E4) +_BAUDRATE_38400 = const(0x2AF2) +_BAUDRATE_57600 = const(0x1C1C) +_BAUDRATE_115200 = const(0x0DA6) -_MOTIONCONTROL = const(0x0) -_UARTMOTION = const(0x01) -_ACTIVATEMOTION = const(0x01) +_MOTIONCONTROL = const(0x0) +_UARTMOTION = const(0x01) +_ACTIVATEMOTION = const(0x01) -__SET_ZOOM = const(0x52) -__GET_ZOOM = const(0x53) +__SET_ZOOM = const(0x52) +__GET_ZOOM = const(0x53) -_CAMERA_DELAY = const(10) +_CAMERA_DELAY = const(10) # pylint: enable=bad-whitespace @@ -100,26 +100,27 @@ class VC0706: :param ~busio.UART uart: uart serial or compatible interface :param int buffer_size: Receive buffer size """ + def __init__(self, uart, *, buffer_size=100): self._uart = uart self._buffer = bytearray(buffer_size) self._frame_ptr = 0 self._command_header = bytearray(3) - for _ in range(2): # 2 retries to reset then check resetted baudrate + for _ in range(2): # 2 retries to reset then check resetted baudrate for baud in (9600, 19200, 38400, 57600, 115200): self._uart.baudrate = baud - if self._run_command(_RESET, b'\x00', 5): + if self._run_command(_RESET, b"\x00", 5): break - else: # for:else rocks! http://book.pythontips.com/en/latest/for_-_else.html - raise RuntimeError('Failed to get response from VC0706, check wiring!') + else: # for:else rocks! http://book.pythontips.com/en/latest/for_-_else.html + raise RuntimeError("Failed to get response from VC0706, check wiring!") @property def version(self): """Return camera version byte string.""" # Clear buffer to ensure the end of a string can be found. - self._send_command(_GEN_VERSION, b'\x01') + self._send_command(_GEN_VERSION, b"\x01") readlen = self._read_response(self._buffer, len(self._buffer)) - return str(self._buffer[:readlen], 'ascii') + return str(self._buffer[:readlen], "ascii") @property def baudrate(self): @@ -142,7 +143,7 @@ def baudrate(self, baud): divider = _BAUDRATE_115200 else: raise ValueError("Unsupported baud rate") - args = [0x03, 0x01, (divider>>8) & 0xFF, divider & 0xFF] + args = [0x03, 0x01, (divider >> 8) & 0xFF, divider & 0xFF] self._run_command(_SET_PORT, bytes(args), 7) self._uart.baudrate = baud @@ -151,10 +152,8 @@ def image_size(self): """Get the current image size, will return a value of IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, or IMAGE_SIZE_160x120. """ - if not self._run_command(_READ_DATA, - b'\0x04\x04\x01\x00\x19', - 6): - raise RuntimeError('Failed to read image size!') + if not self._run_command(_READ_DATA, b"\0x04\x04\x01\x00\x19", 6): + raise RuntimeError("Failed to read image size!") return self._buffer[5] @image_size.setter @@ -163,15 +162,19 @@ def image_size(self, size): IMAGE_SIZE_160x120. """ if size not in (IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, IMAGE_SIZE_160x120): - raise ValueError("Size must be one of IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, or " - "IMAGE_SIZE_160x120!") - return self._run_command(_WRITE_DATA, bytes([0x05, 0x04, 0x01, 0x00, 0x19, size & 0xFF]), 5) + raise ValueError( + "Size must be one of IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, or " + "IMAGE_SIZE_160x120!" + ) + return self._run_command( + _WRITE_DATA, bytes([0x05, 0x04, 0x01, 0x00, 0x19, size & 0xFF]), 5 + ) @property def frame_length(self): """Return the length in bytes of the currently capture frame/picture. """ - if not self._run_command(_GET_FBUF_LEN, b'\x01\x00', 9): + if not self._run_command(_GET_FBUF_LEN, b"\x01\x00", 9): return 0 frame_length = self._buffer[5] frame_length <<= 8 @@ -195,16 +198,30 @@ def read_picture_into(self, buf): less. Suggested buffer size is 32. """ n = len(buf) - if n > 256 or n > (len(self._buffer)-5): - raise ValueError('Buffer is too large!') + if n > 256 or n > (len(self._buffer) - 5): + raise ValueError("Buffer is too large!") if n % 4 != 0: - raise ValueError('Buffer must be a multiple of 4! Try 32.') - args = bytes([0x0C, 0x0, 0x0A, 0, 0, (self._frame_ptr >> 8) & 0xFF, - self._frame_ptr & 0xFF, 0, 0, 0, n & 0xFF, - (_CAMERA_DELAY >> 8) & 0xFF, _CAMERA_DELAY & 0xFF]) + raise ValueError("Buffer must be a multiple of 4! Try 32.") + args = bytes( + [ + 0x0C, + 0x0, + 0x0A, + 0, + 0, + (self._frame_ptr >> 8) & 0xFF, + self._frame_ptr & 0xFF, + 0, + 0, + 0, + n & 0xFF, + (_CAMERA_DELAY >> 8) & 0xFF, + _CAMERA_DELAY & 0xFF, + ] + ) if not self._run_command(_READ_FBUF, args, 5, flush=False): return 0 - if self._read_response(self._buffer, n+5) == 0: + if self._read_response(self._buffer, n + 5) == 0: return 0 self._frame_ptr += n for i in range(n): @@ -225,8 +242,12 @@ def _read_response(self, result, numbytes): return self._uart.readinto(memoryview(result)[0:numbytes]) def _verify_response(self, cmd): - return (self._buffer[0] == 0x76 and self._buffer[1] == _SERIAL and - self._buffer[2] == cmd & 0xFF and self._buffer[3] == 0x00) + return ( + self._buffer[0] == 0x76 + and self._buffer[1] == _SERIAL + and self._buffer[2] == cmd & 0xFF + and self._buffer[3] == 0x00 + ) def _send_command(self, cmd, args=None): self._command_header[0] = 0x56 diff --git a/docs/conf.py b/docs/conf.py index d364407..3a850c6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,8 @@ import os import sys -sys.path.insert(0, os.path.abspath('..')) + +sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ @@ -10,9 +11,9 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.intersphinx', - 'sphinx.ext.viewcode', + "sphinx.ext.autodoc", + "sphinx.ext.intersphinx", + "sphinx.ext.viewcode", ] # Uncomment the below if you use native CircuitPython modules such as @@ -20,29 +21,32 @@ # autodoc module docs will fail to generate with a warning. # autodoc_mock_imports = ["busio", "micropython"] -intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} +intersphinx_mapping = { + "python": ("https://docs.python.org/3.4", None), + "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), +} # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] -source_suffix = '.rst' +source_suffix = ".rst" # The master toctree document. -master_doc = 'index' +master_doc = "index" # General information about the project. -project = u'Adafruit VC0706 Library' -copyright = u'2017 Tony DiCola' -author = u'Tony DiCola' +project = u"Adafruit VC0706 Library" +copyright = u"2017 Tony DiCola" +author = u"Tony DiCola" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'1.0' +version = u"1.0" # The full version, including alpha/beta/rc tags. -release = u'1.0' +release = u"1.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -54,7 +58,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] # The reST default role (used for this markup: `text`) to use for all # documents. @@ -66,7 +70,7 @@ add_function_parentheses = True # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = "sphinx" # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False @@ -80,59 +84,62 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +on_rtd = os.environ.get("READTHEDOCS", None) == "True" if not on_rtd: # only import and set the theme if we're building docs locally try: import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.'] + + html_theme = "sphinx_rtd_theme" + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] except: - html_theme = 'default' - html_theme_path = ['.'] + html_theme = "default" + html_theme_path = ["."] else: - html_theme_path = ['.'] + html_theme_path = ["."] # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = ["_static"] # The name of an image file (relative to this directory) to use as a favicon of # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. # -html_favicon = '_static/favicon.ico' +html_favicon = "_static/favicon.ico" # Output file base name for HTML help builder. -htmlhelp_basename = 'AdafruitVC0706Librarydoc' +htmlhelp_basename = "AdafruitVC0706Librarydoc" # -- Options for LaTeX output --------------------------------------------- latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'AdafruitVC0706Library.tex', u'Adafruit VC0706 Library Documentation', - author, 'manual'), + ( + master_doc, + "AdafruitVC0706Library.tex", + u"Adafruit VC0706 Library Documentation", + author, + "manual", + ), ] # -- Options for manual page output --------------------------------------- @@ -140,8 +147,13 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'AdafruitVC0706library', u'Adafruit VC0706 Library Documentation', - [author], 1) + ( + master_doc, + "AdafruitVC0706library", + u"Adafruit VC0706 Library Documentation", + [author], + 1, + ) ] # -- Options for Texinfo output ------------------------------------------- @@ -150,7 +162,13 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'AdafruitVC0706Library', u'Adafruit VC0706 Library Documentation', - author, 'AdafruitVC0706Library', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + "AdafruitVC0706Library", + u"Adafruit VC0706 Library Documentation", + author, + "AdafruitVC0706Library", + "One line description of project.", + "Miscellaneous", + ), ] diff --git a/examples/vc0706_snapshot_filesystem.py b/examples/vc0706_snapshot_filesystem.py index df1b44b..2e2a20d 100644 --- a/examples/vc0706_snapshot_filesystem.py +++ b/examples/vc0706_snapshot_filesystem.py @@ -9,7 +9,7 @@ # Set this to the full path to the file name to save the captured image. WILL OVERWRITE! # CircuitPython internal filesystem configuration: -IMAGE_FILE = '/image.jpg' +IMAGE_FILE = "/image.jpg" # USB to serial adapter configuration: # IMAGE_FILE = 'image.jpg' # Full path to file name to save captured image. Will overwrite! # Raspberry Pi configuration: @@ -30,7 +30,7 @@ vc0706 = adafruit_vc0706.VC0706(uart) # Print the version string from the camera. -print('VC0706 version:') +print("VC0706 version:") print(vc0706.version) # Set the image size. @@ -41,29 +41,29 @@ # see the current size: size = vc0706.image_size if size == adafruit_vc0706.IMAGE_SIZE_640x480: - print('Using 640x480 size image.') + print("Using 640x480 size image.") elif size == adafruit_vc0706.IMAGE_SIZE_320x240: - print('Using 320x240 size image.') + print("Using 320x240 size image.") elif size == adafruit_vc0706.IMAGE_SIZE_160x120: - print('Using 160x120 size image.') + print("Using 160x120 size image.") # Take a picture. -print('Taking a picture in 3 seconds...') +print("Taking a picture in 3 seconds...") time.sleep(3) -print('SNAP!') +print("SNAP!") if not vc0706.take_picture(): - raise RuntimeError('Failed to take picture!') + raise RuntimeError("Failed to take picture!") # Print size of picture in bytes. frame_length = vc0706.frame_length -print('Picture size (bytes): {}'.format(frame_length)) +print("Picture size (bytes): {}".format(frame_length)) # Open a file for writing (overwriting it if necessary). # This will write 50 bytes at a time using a small buffer. # You MUST keep the buffer size under 100! -print('Writing image: {}'.format(IMAGE_FILE), end='', flush=True) +print("Writing image: {}".format(IMAGE_FILE), end="", flush=True) stamp = time.monotonic() -with open(IMAGE_FILE, 'wb') as outfile: +with open(IMAGE_FILE, "wb") as outfile: wcount = 0 while frame_length > 0: t = time.monotonic() @@ -74,14 +74,14 @@ copy_buffer = bytearray(to_read) # Read picture data into the copy buffer. if vc0706.read_picture_into(copy_buffer) == 0: - raise RuntimeError('Failed to read picture frame data!') + raise RuntimeError("Failed to read picture frame data!") # Write the data to SD card file and decrement remaining bytes. outfile.write(copy_buffer) frame_length -= 32 # Print a dot every 2k bytes to show progress. wcount += 1 if wcount >= 64: - print('.', end='', flush=True) + print(".", end="", flush=True) wcount = 0 print() -print('Finished in %0.1f seconds!' % (time.monotonic() - stamp)) +print("Finished in %0.1f seconds!" % (time.monotonic() - stamp)) diff --git a/examples/vc0706_snapshot_simpletest.py b/examples/vc0706_snapshot_simpletest.py index d4faea9..3300d9a 100644 --- a/examples/vc0706_snapshot_simpletest.py +++ b/examples/vc0706_snapshot_simpletest.py @@ -20,8 +20,8 @@ # Configuration: SD_CS_PIN = board.D10 # CS for SD card (SD_CS is for Feather Adalogger) -IMAGE_FILE = '/sd/image.jpg' # Full path to file name to save captured image. - # Will overwrite! +IMAGE_FILE = "/sd/image.jpg" # Full path to file name to save captured image. +# Will overwrite! # Setup SPI bus (hardware SPI). spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO) @@ -30,7 +30,7 @@ sd_cs = digitalio.DigitalInOut(SD_CS_PIN) sdcard = adafruit_sdcard.SDCard(spi, sd_cs) vfs = storage.VfsFat(sdcard) -storage.mount(vfs, '/sd') +storage.mount(vfs, "/sd") # Create a serial connection for the VC0706 connection, speed is auto-detected. uart = busio.UART(board.TX, board.RX, timeout=250) @@ -38,41 +38,41 @@ vc0706 = adafruit_vc0706.VC0706(uart) # Print the version string from the camera. -print('VC0706 version:') +print("VC0706 version:") print(vc0706.version) # Set the baud rate to 115200 for fastest transfer (its the max speed) vc0706.baudrate = 115200 # Set the image size. -vc0706.image_size = adafruit_vc0706.IMAGE_SIZE_640x480 # Or set IMAGE_SIZE_320x240 or - # IMAGE_SIZE_160x120 +vc0706.image_size = adafruit_vc0706.IMAGE_SIZE_640x480 # Or set IMAGE_SIZE_320x240 or +# IMAGE_SIZE_160x120 # Note you can also read the property and compare against those values to # see the current size: size = vc0706.image_size if size == adafruit_vc0706.IMAGE_SIZE_640x480: - print('Using 640x480 size image.') + print("Using 640x480 size image.") elif size == adafruit_vc0706.IMAGE_SIZE_320x240: - print('Using 320x240 size image.') + print("Using 320x240 size image.") elif size == adafruit_vc0706.IMAGE_SIZE_160x120: - print('Using 160x120 size image.') + print("Using 160x120 size image.") # Take a picture. -print('Taking a picture in 3 seconds...') +print("Taking a picture in 3 seconds...") time.sleep(3) -print('SNAP!') +print("SNAP!") if not vc0706.take_picture(): - raise RuntimeError('Failed to take picture!') + raise RuntimeError("Failed to take picture!") # Print size of picture in bytes. frame_length = vc0706.frame_length -print('Picture size (bytes): {}'.format(frame_length)) +print("Picture size (bytes): {}".format(frame_length)) # Open a file for writing (overwriting it if necessary). # This will write 50 bytes at a time using a small buffer. # You MUST keep the buffer size under 100! -print('Writing image: {}'.format(IMAGE_FILE), end='') -with open(IMAGE_FILE, 'wb') as outfile: +print("Writing image: {}".format(IMAGE_FILE), end="") +with open(IMAGE_FILE, "wb") as outfile: wcount = 0 while frame_length > 0: # Compute how much data is left to read as the lesser of remaining bytes @@ -82,14 +82,14 @@ copy_buffer = bytearray(to_read) # Read picture data into the copy buffer. if vc0706.read_picture_into(copy_buffer) == 0: - raise RuntimeError('Failed to read picture frame data!') + raise RuntimeError("Failed to read picture frame data!") # Write the data to SD card file and decrement remaining bytes. outfile.write(copy_buffer) frame_length -= 32 # Print a dot every 2k bytes to show progress. wcount += 1 if wcount >= 64: - print('.', end='') + print(".", end="") wcount = 0 print() -print('Finished!') +print("Finished!") diff --git a/setup.py b/setup.py index 4d0971d..0077364 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ # Always prefer setuptools over distutils from setuptools import setup, find_packages + # To use a consistent encoding from codecs import open from os import path @@ -14,47 +15,42 @@ here = path.abspath(path.dirname(__file__)) # Get the long description from the README file -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: +with open(path.join(here, "README.rst"), encoding="utf-8") as f: long_description = f.read() setup( - name='adafruit-circuitpython-vc0706', - + name="adafruit-circuitpython-vc0706", use_scm_version=True, - setup_requires=['setuptools_scm'], - - description='CircuitPython library for VC0706 serial TTL camera.', + setup_requires=["setuptools_scm"], + description="CircuitPython library for VC0706 serial TTL camera.", long_description=long_description, - long_description_content_type='text/x-rst', - + long_description_content_type="text/x-rst", # The project's main homepage. - url='https://github.com/adafruit/Adafruit_CircuitPython_VC0706', - + url="https://github.com/adafruit/Adafruit_CircuitPython_VC0706", # Author details - author='Adafruit Industries', - author_email='circuitpython@adafruit.com', - - install_requires=['Adafruit-Blinka', 'adafruit-circuitpython-busdevice', 'pyserial'], - + author="Adafruit Industries", + author_email="circuitpython@adafruit.com", + install_requires=[ + "Adafruit-Blinka", + "adafruit-circuitpython-busdevice", + "pyserial", + ], # Choose your license - license='MIT', - + license="MIT", # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Libraries', - 'Topic :: System :: Hardware', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries", + "Topic :: System :: Hardware", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", ], - # What does your project relate to? - keywords='adafruit vc0706 serial ttl camera hardware micropython circuitpython', - + keywords="adafruit vc0706 serial ttl camera hardware micropython circuitpython", # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). - py_modules=['adafruit_vc0706'], + py_modules=["adafruit_vc0706"], )