diff --git a/.moban.yml b/.moban.yml index 74be9cf..26efa05 100644 --- a/.moban.yml +++ b/.moban.yml @@ -1,5 +1,5 @@ requires: - - pypi-mobans-pkg==0.0.2 + - pypi-mobans-pkg==0.0.4 configuration: template_dir: - "pypi-mobans-pkg:templates" diff --git a/.travis.yml b/.travis.yml index 8295c53..ee3a11f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,15 @@ sudo: false +dist: xenial language: python notifications: email: false python: - - pypy-5.3.1 - - 3.7-dev + - &pypy2 pypy2.7-6.0 + - &pypy3 pypy3.5-6.0 + - 3.8-dev + - 3.7 - 3.6 - 3.5 - - 3.4 - 2.7 before_install: - if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi diff --git a/Pipfile b/Pipfile index c36a7bb..5357dac 100644 --- a/Pipfile +++ b/Pipfile @@ -7,3 +7,10 @@ name = 'pypi' python_version= '3.6' [packages] + +[dev-packages] +nose = "*" +mock = "*" +codecov = "*" +coverage = "*" +flake8 = "*" diff --git a/docs/source/conf.py b/docs/source/conf.py index 382190a..5d075bb 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- -# # Configuration file for the Sphinx documentation builder. # -# This file does only contain a selection of the most common options. For a -# full list see the documentation: +# This file only contains a selection of the most common options. For a full +# list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- @@ -18,22 +16,16 @@ # -- Project information ----------------------------------------------------- -project = u'' -copyright = u'' -author = u'' - +project = '' +copyright = '' +author = 'C.W.' # The short X.Y version -version = u'' +version = '0.0.1' # The full version, including alpha/beta/rc tags -release = u'' - +release = '0.0.1' # -- General configuration --------------------------------------------------- -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. @@ -51,21 +43,11 @@ # The master toctree document. master_doc = '' -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = '' - # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. exclude_patterns = [] -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = None - # -- Options for HTML output ------------------------------------------------- @@ -74,98 +56,7 @@ # html_theme = 'alabaster' -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -# html_theme_options = {} - # 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'] - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# The default sidebars (for documents that don't match any pattern) are -# defined by theme itself. Builtin themes are using these templates by -# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', -# 'searchbox.html']``. -# -# html_sidebars = {} - - -# -- Options for HTMLHelp output --------------------------------------------- - -# Output file base name for HTML help builder. -htmlhelp_basename = 'doc' - - -# -- 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', -} - -# 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, '.tex', u'', - u'', 'manual'), -] - - -# -- Options for manual page output ------------------------------------------ - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, '', u'', - [author], 1) -] - - -# -- Options for Texinfo output ---------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, '', u'', - author, '', 'One line description of project.', - 'Miscellaneous'), -] - - -# -- Options for Epub output ------------------------------------------------- - -# Bibliographic Dublin Core info. -epub_title = project - -# The unique identifier of the text. This can be a ISBN number -# or the project homepage. -# -# epub_identifier = '' - -# A unique identification for the text. -# -# epub_uid = '' - -# A list of files that should not be packed into the epub file. -epub_exclude_files = ['search.html'] \ No newline at end of file +html_static_path = ['static'] \ No newline at end of file diff --git a/setup.py b/setup.py index dd728c4..5939423 100644 --- a/setup.py +++ b/setup.py @@ -4,13 +4,28 @@ import os import sys import codecs +import locale +import platform from shutil import rmtree from setuptools import Command, setup, find_packages -from platform import python_implementation PY2 = sys.version_info[0] == 2 PY26 = PY2 and sys.version_info[1] < 7 +PY33 = sys.version_info < (3, 4) + +# Work around mbcs bug in distutils. +# http://bugs.python.org/issue10945 +# This work around is only if a project supports Python < 3.4 + +# Work around for locale not being set +try: + lc = locale.getlocale() + pf = platform.system() + if pf != 'Windows' and lc == (None, None): + locale.setlocale(locale.LC_ALL, 'C.UTF-8') +except (ValueError, UnicodeError, locale.Error): + locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') NAME = 'snapshot-selenium' AUTHOR = 'C.W.' @@ -159,6 +174,7 @@ def filter_out_test_code(file_handle): if __name__ == '__main__': setup( + test_suite="tests", name=NAME, author=AUTHOR, version=VERSION,