[Python-modules-commits] [python-flaky] 01/11: Import python-flaky_2.4.1.orig.tar.gz.
Tristan Seligmann
mithrandi at moszumanska.debian.org
Mon Jan 18 14:39:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
mithrandi pushed a commit to branch master
in repository python-flaky.
commit 9ab554730a34ba8665eca2903fe13c05fda3a5f8
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date: Mon Dec 21 14:02:48 2015 +0200
Import python-flaky_2.4.1.orig.tar.gz.
---
.coveragerc | 5 +
.gitignore | 36 ++
.idea/.name | 1 +
.idea/compiler.xml | 25 +
.idea/copyright/profiles_settings.xml | 5 +
.idea/encodings.xml | 5 +
.idea/inspectionProfiles/Project_Default.xml | 22 +
.idea/inspectionProfiles/profiles_settings.xml | 7 +
.idea/modules.xml | 9 +
.idea/other.xml | 7 +
.idea/scopes/scope_settings.xml | 5 +
.idea/testrunner.xml | 8 +
.idea/uiDesigner.xml | 125 +++++
.idea/vcs.xml | 8 +
.pylintrc | 278 ++++++++++
.travis.yml | 18 +
AUTHORS.rst | 5 +
CONTRIBUTING.rst | 110 ++++
HISTORY.rst | 99 ++++
LICENSE | 166 ++++++
MANIFEST.in | 1 +
README.rst | 208 ++++++++
flaky.iml | 18 +
flaky/__init__.py | 4 +
flaky/_flaky_plugin.py | 548 +++++++++++++++++++
flaky/defaults.py | 53 ++
flaky/flaky_decorator.py | 63 +++
flaky/flaky_nose_plugin.py | 284 ++++++++++
flaky/flaky_pytest_plugin.py | 387 ++++++++++++++
flaky/multiprocess_string_io.py | 44 ++
flaky/names.py | 32 ++
flaky/utils.py | 29 +
requirements-dev.txt | 12 +
requirements.txt | 0
setup.py | 56 ++
test/__init__.py | 3 +
test/pytest_generate_example/__init__.py | 3 +
test/pytest_generate_example/conftest.py | 8 +
.../test_pytest_generate_example.py | 20 +
test/test.iml | 12 +
test/test_case_base.py | 35 ++
test/test_flaky_decorator.py | 55 ++
test/test_flaky_nose_plugin.py | 458 ++++++++++++++++
test/test_flaky_plugin.py | 67 +++
test/test_flaky_pytest_plugin.py | 585 +++++++++++++++++++++
test/test_multiprocess_string_io.py | 49 ++
test/test_nose_example.py | 101 ++++
test/test_nose_options_example.py | 53 ++
test/test_pytest_example.py | 103 ++++
test/test_pytest_options_example.py | 45 ++
test/test_utils.py | 47 ++
tox.ini | 49 ++
52 files changed, 4376 insertions(+)
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..e358aef
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,5 @@
+[run]
+# Whether to measure branch coverage in addition to statement coverage.
+branch = True
+# List of packages or directories, the source to measure during execution.
+source = flaky
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e4fae55
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,36 @@
+*.py[cod]
+
+# C extensions
+*.so
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+lib
+lib64
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+nosetests.xml
+
+# Translations
+*.mo
+
+# IntelliJ
+.idea/codeStyleSettings.xml
+.idea/misc.xml
+.idea/tasks.xml
+.idea/workspace.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..3f334cf
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+flaky
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..b22c943
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="CompilerConfiguration">
+ <option name="DEFAULT_COMPILER" value="Javac" />
+ <resourceExtensions />
+ <wildcardResourcePatterns>
+ <entry name="?*.properties" />
+ <entry name="?*.xml" />
+ <entry name="?*.gif" />
+ <entry name="?*.png" />
+ <entry name="?*.jpeg" />
+ <entry name="?*.jpg" />
+ <entry name="?*.html" />
+ <entry name="?*.dtd" />
+ <entry name="?*.tld" />
+ <entry name="?*.ftl" />
+ </wildcardResourcePatterns>
+ <annotationProcessing>
+ <profile default="true" name="Default" enabled="false">
+ <processorPath useClasspath="true" />
+ </profile>
+ </annotationProcessing>
+ </component>
+</project>
+
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..3572571
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,5 @@
+<component name="CopyrightManager">
+ <settings default="">
+ <module2copyright />
+ </settings>
+</component>
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..e206d70
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
+</project>
+
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..4f8a3d1
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,22 @@
+<component name="InspectionProjectProfileManager">
+ <profile version="1.0" is_locked="false">
+ <option name="myName" value="Project Default" />
+ <option name="myLocal" value="false" />
+ <inspection_tool class="JSUnresolvedFunction" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSUnresolvedVariable" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSUnusedAssignment" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSUnusedGlobalSymbols" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSUnusedLocalSymbols" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpDocMissingReturnTagInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpDocMissingThrowsInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpDocSignatureInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpDynamicAsStaticMethodCallInspection" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpUndefinedFieldInspection" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="PhpUndefinedMethodInspection" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
+ <option name="processCode" value="true" />
+ <option name="processLiterals" value="true" />
+ <option name="processComments" value="true" />
+ </inspection_tool>
+ </profile>
+</component>
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..3b31283
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">
+ <settings>
+ <option name="PROJECT_PROFILE" value="Project Default" />
+ <option name="USE_PROJECT_PROFILE" value="true" />
+ <version value="1.0" />
+ </settings>
+</component>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..a66e97f
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/flaky.iml" filepath="$PROJECT_DIR$/flaky.iml" />
+ </modules>
+ </component>
+</project>
+
diff --git a/.idea/other.xml b/.idea/other.xml
new file mode 100644
index 0000000..9d2e7e9
--- /dev/null
+++ b/.idea/other.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="PyDocumentationSettings">
+ <option name="myDocStringFormat" value="Plain" />
+ </component>
+</project>
+
diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml
new file mode 100644
index 0000000..922003b
--- /dev/null
+++ b/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+<component name="DependencyValidationManager">
+ <state>
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+ </state>
+</component>
\ No newline at end of file
diff --git a/.idea/testrunner.xml b/.idea/testrunner.xml
new file mode 100644
index 0000000..41ab8a6
--- /dev/null
+++ b/.idea/testrunner.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="TestRunnerService">
+ <option name="projectConfiguration" value="Nosetests" />
+ <option name="PROJECT_TEST_RUNNER" value="Nosetests" />
+ </component>
+</project>
+
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..3b00020
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Palette2">
+ <group name="Swing">
+ <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+ </item>
+ <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+ </item>
+ <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+ </item>
+ <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
+ <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+ </item>
+ <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+ <initial-values>
+ <property name="text" value="Button" />
+ </initial-values>
+ </item>
+ <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+ <initial-values>
+ <property name="text" value="RadioButton" />
+ </initial-values>
+ </item>
+ <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+ <initial-values>
+ <property name="text" value="CheckBox" />
+ </initial-values>
+ </item>
+ <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+ <initial-values>
+ <property name="text" value="Label" />
+ </initial-values>
+ </item>
+ <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+ <preferred-size width="150" height="-1" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+ <preferred-size width="150" height="-1" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+ <preferred-size width="150" height="-1" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+ </item>
+ <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+ <preferred-size width="150" height="50" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+ <preferred-size width="200" height="200" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+ <preferred-size width="200" height="200" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+ </item>
+ <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+ </item>
+ <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+ </item>
+ <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+ </item>
+ <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+ <preferred-size width="-1" height="20" />
+ </default-constraints>
+ </item>
+ <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+ </item>
+ <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+ <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+ </item>
+ </group>
+ </component>
+</project>
+
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..9d32e50
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="VcsDirectoryMappings">
+ <mapping directory="" vcs="" />
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
+ </component>
+</project>
+
diff --git a/.pylintrc b/.pylintrc
new file mode 100644
index 0000000..dfb8e86
--- /dev/null
+++ b/.pylintrc
@@ -0,0 +1,278 @@
+[MASTER]
+
+# Specify a configuration file.
+#rcfile=
+
+# Python code to execute, usually for sys.path manipulation such as
+# pygtk.require().
+#init-hook=
+
+# Profiled execution.
+profile=no
+
+# Add files or directories to the blacklist. They should be base names, not
+# paths.
+#ignore=CVS
+
+# Pickle collected data for later comparisons.
+#persistent=yes
+
+# List of plugins (as comma separated values of python modules names) to load,
+# usually to register additional checkers.
+#load-plugins=
+
+
+[MESSAGES CONTROL]
+
+# Enable the message, report, category or checker with the given id(s). You can
+# either give multiple identifier separated by comma (,) or put this option
+# multiple time. See also the "--disable" option for examples.
+#enable=
+
+# Disable the message, report, category or checker with the given id(s). You
+# can either give multiple identifiers separated by comma (,) or put this
+# option multiple times (only on the command line, not in the configuration
+# file where it should appear only once).You can also use "--disable=all" to
+# disable everything first and then reenable specific checks. For example, if
+# you want to run only the similarities checker, you can use "--disable=all
+# --enable=similarities". If you want to run only the classes checker, but have
+# no Warning level messages displayed, use"--disable=all --enable=classes
+# --disable=W"
+
+# C0111 => Missing docstring
+# W0108 => unnecessary lambda
+# W0142 => Used * or ** magic
+disable=I, C0111, W0108, W0142, R0921
+
+
+[REPORTS]
+
+# Set the output format. Available formats are text, parseable, colorized, msvs
+# (visual studio) and html. You can also give a reporter class, eg
+# mypackage.mymodule.MyReporterClass.
+output-format=text
+
+# Put messages in a separate file for each module / package specified on the
+# command line instead of printing them on stdout. Reports (if any) will be
+# written in a file name "pylint_global.[txt|html]".
+files-output=no
+
+# Tells whether to display a full report or only the messages
+reports=no
+
+# Python expression which should return a note less than 10 (10 is the highest
+# note). You have access to the variables errors warning, statement which
+# respectively contain the number of errors / warnings messages and the total
+# number of statements analyzed. This is used by the global evaluation report
+# (RP0004).
+evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
+
+# Add a comment according to your evaluation note. This is used by the global
+# evaluation report (RP0004).
+comment=no
+
+# Template used to display messages. This is a python new-style format string
+# used to format the massage information. See doc for all details
+msg-template={module}:{line}:{column}: [{msg_id}({symbol}), {obj}] {msg}
+
+
+[BASIC]
+
+# Required attributes for module, separated by a comma
+required-attributes=
+
+# List of builtins function names that should not be used, separated by a comma
+bad-functions=map,filter,apply,input
+
+# Regular expression which should only match correct module names
+module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
+
+# Regular expression which should only match correct module level names
+const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
+
+# Regular expression which should only match correct class names
+class-rgx=[A-Z_][a-zA-Z0-9]+$
+
+# Regular expression which should only match correct function names
+function-rgx=[a-z_][a-z0-9_]{2,50}$
+
+# Regular expression which should only match correct method names
+method-rgx=[a-z_][a-z0-9_]{2,60}$
+
+# Regular expression which should only match correct instance attribute names
+attr-rgx=[a-z_][a-z0-9_]{2,30}$
+
+# Regular expression which should only match correct argument names
+argument-rgx=[a-z_][a-z0-9_]{2,30}$
+
+# Regular expression which should only match correct variable names
+variable-rgx=[a-z_][a-z0-9_]{2,30}$
+
+# Regular expression which should only match correct attribute names in class
+# bodies
+class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
+
+# Regular expression which should only match correct list comprehension /
+# generator expression variable names
+inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
+
+# Good variable names which should always be accepted, separated by a comma
+good-names=i,j,k,ex,Run,_
+
+# Bad variable names which should always be refused, separated by a comma
+bad-names=foo,bar,baz,toto,tutu,tata
+
+# Regular expression which should only match function or class names that do
+# not require a docstring.
+no-docstring-rgx=__.*__
+
+# Minimum line length for functions/classes that require docstrings, shorter
+# ones are exempt.
+docstring-min-length=-1
+
+
+[FORMAT]
+
+# Maximum number of characters on a single line.
+max-line-length=80
+
+# Regexp for a line that is allowed to be longer than the limit.
+ignore-long-lines=^\s*(# )?<?https?://\S+>?$
+
+# Maximum number of lines in a module
+max-module-lines=1000
+
+# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
+# tab).
+indent-string=' '
+
+
+[MISCELLANEOUS]
+
+# List of note tags to take in consideration, separated by a comma.
+notes=TODO
+
+
+[SIMILARITIES]
+
+# Minimum lines number of a similarity.
+min-similarity-lines=4
+
+# Ignore comments when computing similarities.
+ignore-comments=yes
+
+# Ignore docstrings when computing similarities.
+ignore-docstrings=yes
+
+# Ignore imports when computing similarities.
+ignore-imports=no
+
+
+[TYPECHECK]
+
+# Tells whether missing members accessed in mixin class should be ignored. A
+# mixin class is detected if its name ends with "mixin" (case insensitive).
+ignore-mixin-members=yes
+
+# List of classes names for which member attributes should not be checked
+# (useful for classes with attributes dynamically set).
+#ignored-classes=SQLObject
+ignored-classes=pytest, _pytest
+
+# When zope mode is activated, add a predefined set of Zope acquired attributes
+# to generated-members.
+zope=no
+
+# List of members which are set dynamically and missed by pylint inference
+# system, and so shouldn't trigger E0201 when accessed. Python regular
+# expressions are accepted.
+generated-members=REQUEST,acl_users,aq_parent
+
+
+[VARIABLES]
+
+# Tells whether we should check for unused import in __init__ files.
+init-import=no
+
+# A regular expression matching the beginning of the name of dummy variables
+# (i.e. not used).
+dummy-variables-rgx=_$|dummy
+
+# List of additional names supposed to be defined in builtins. Remember that
+# you should avoid to define new builtins when possible.
+additional-builtins=
+
+
+[CLASSES]
+
+# List of interface methods to ignore, separated by a comma. This is used for
+# instance to not check methods defines in Zope's Interface base class.
+ignore-iface-methods=
+
+# List of method names used to declare (i.e. assign) instance attributes.
+defining-attr-methods=__init__,__new__,setUp
+
+# List of valid names for the first argument in a class method.
+valid-classmethod-first-arg=cls
+
+# List of valid names for the first argument in a metaclass class method.
+valid-metaclass-classmethod-first-arg=mcs
+
+
+[DESIGN]
+
+# Maximum number of arguments for function / method
+max-args=15
+
+# Argument names that match this expression will be ignored. Default to name
+# with leading underscore
+ignored-argument-names=_.*
+
+# Maximum number of locals for function / method body
+max-locals=20
+
+# Maximum number of return / yield for function / method body
+max-returns=6
+
+# Maximum number of branch for function / method body
+max-branches=12
+
+# Maximum number of statements in function / method body
+max-statements=50
+
+# Maximum number of parents for a class (see R0901).
+max-parents=7
+
+# Maximum number of attributes for a class (see R0902).
+max-attributes=15
+
+# Minimum number of public methods for a class (see R0903).
+min-public-methods=0
+
+# Maximum number of public methods for a class (see R0904).
+max-public-methods=100
+
+
+[IMPORTS]
+
+# Deprecated modules which should not be used, separated by a comma
+deprecated-modules=
+
+# Create a graph of every (i.e. internal and external) dependencies in the
+# given file (report RP0402 must not be disabled)
+import-graph=
+
+# Create a graph of external dependencies in the given file (report RP0402 must
+# not be disabled)
+ext-import-graph=
+
+# Create a graph of internal dependencies in the given file (report RP0402 must
+# not be disabled)
+int-import-graph=
+
+
+[EXCEPTIONS]
+
+# Exceptions that will emit a warning when being caught. Defaults to
+# "Exception"
+overgeneral-exceptions=Exception
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c1151ee
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,18 @@
+language: python
+env:
+ - TOX_ENV=py26
+ - TOX_ENV=py27
+ - TOX_ENV=py33
+ - TOX_ENV=py34
+ - TOX_ENV=pypy
+ - TOX_ENV=pep8
+ - TOX_ENV=pylint
+ - TOX_ENV=coverage
+# commands to install dependencies
+install:
+ - pip install tox --use-mirrors
+# commands to run
+script:
+ - tox -e $TOX_ENV
+after_success:
+ - if [ "-x$TOX_ENV" = "xcoverage" ]; then coveralls; fi
\ No newline at end of file
diff --git a/AUTHORS.rst b/AUTHORS.rst
new file mode 100644
index 0000000..161487f
--- /dev/null
+++ b/AUTHORS.rst
@@ -0,0 +1,5 @@
+Flaky is an open source project supported by `Box <https://box.com>`_ that was born out of
+our testing framework. This is a list of contributors.
+
+- `@Jeff-Meadows <https://github.com/Jeff-Meadows>`_
+- `@benpatterson <https://github.com/benpatterson>`_
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
new file mode 100644
index 0000000..48e6c82
--- /dev/null
+++ b/CONTRIBUTING.rst
@@ -0,0 +1,110 @@
+Contributing
+============
+
+All contributions are welcome to this project.
+
+Contributor License Agreement
+-----------------------------
+
+Before a contribution can be merged into this project, please fill out
+the Contributor License Agreement (CLA) located at::
+
+ http://box.github.io/cla
+
+To learn more about CLAs and why they are important to open source
+projects, please see the `Wikipedia
+entry <http://en.wikipedia.org/wiki/Contributor_License_Agreement>`_.
+
+How to contribute
+-----------------
+
+- **File an issue** - if you found a bug, want to request an
+ enhancement, or want to implement something (bug fix or feature).
+- **Send a pull request** - if you want to contribute code. Please be
+ sure to file an issue first.
+
+Pull request best practices
+---------------------------
+
+We want to accept your pull requests. Please follow these steps:
+
+Step 1: File an issue
+~~~~~~~~~~~~~~~~~~~~~
+
+Before writing any code, please file an issue stating the problem you
+want to solve or the feature you want to implement. This allows us to
+give you feedback before you spend any time writing code. There may be a
+known limitation that can't be addressed, or a bug that has already been
+fixed in a different way. The issue allows us to communicate and figure
+out if it's worth your time to write a bunch of code for the project.
+
+Step 2: Fork this repository in GitHub
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This will create your own copy of our repository.
+
+Step 3: Add the upstream source
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The upstream source is the project under the Box organization on GitHub.
+To add an upstream source for this project, type:
+
+.. code-block:: console
+
+ git remote add upstream git at github.com:box/flaky.git
+
+This will come in useful later.
+
+Step 4: Create a feature branch
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Create a branch with a descriptive name, such as ``add-search``.
+
+Step 5: Push your feature branch to your fork
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+As you develop code, continue to push code to your remote feature
+branch. Please make sure to include the issue number you're addressing
+in your commit message, such as:
+
+.. code-block:: console
+
+ git commit -am "Adding search (fixes #123)"
+
+This helps us out by allowing us to track which issue your commit
+relates to.
+
+Keep a separate feature branch for each issue you want to address.
+
+Step 6: Rebase
+~~~~~~~~~~~~~~
+
+Before sending a pull request, rebase against upstream, such as:
+
+.. code-block:: console
+
+ git fetch upstream
+ git rebase upstream/master
+
+This will add your changes on top of what's already in upstream,
+minimizing merge issues.
+
+Step 7: Run the tests
+~~~~~~~~~~~~~~~~~~~~~
+
+Make sure that all tests are passing before submitting a pull request.
+
+Step 8: Send the pull request
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Send the pull request from your feature branch to us. Be sure to include
+a description that lets us know what work you did.
+
+Keep in mind that we like to see one issue addressed per pull request,
+as this helps keep our git history clean and we can more easily track
+down issues.
+
+Finally, please add a note in HISTORY.rst under the Upcoming section
+detailing what's new in your change. These will become the release
+notes for the next release. In addition, feel free to add yourself to
+AUTHORS.rst if you aren't already listed.
diff --git a/HISTORY.rst b/HISTORY.rst
new file mode 100644
index 0000000..299867e
--- /dev/null
+++ b/HISTORY.rst
@@ -0,0 +1,99 @@
+.. :changelog:
+
+Release History
+---------------
+
+Upcoming
+++++++++
+
+2.4.0 (2015-10-27)
+++++++++++++++++++
+
+**Bugfixes**
+- The flaky report is now available under nose with the multiprocessing plugin.
+
+2.3.0 (2015-10-15)
+++++++++++++++++++
+
+- Added support and testing for Python 3.5
+- Fixed tests on Python 2.6 with latest version of py.test
+
+**Bugfixes**
+
+- Flaky will no longer swallow exceptions raised during pytest fixture setup.
+ This change is correct, but is a change in behavior.
+
+2.2.0 (2015-08-28)
+++++++++++++++++++
+
+- The `@flaky` decorator now accepts a `rerun_filter` parameter.
+ This allows for failing certain types of failures/errors immediately instead of rerunning.
+- Flaky now accepts a command line option, `--no-success-flaky-report`.
+ When that option is present, flaky won't add information about test successes to the flaky report.
+
+2.1.2 (2015-07-30)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Flaky will no longer raise a UnicodeEncodeError for flaky tests which raise exceptions
+ with non-ascii characters.
+- Flaky will no longer cause nose to report non-flaky test failures and errors twice.
+- Flaky now works with tests that are parametrized with py.test.
+
+
+2.1.1 (2015-05-22)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Flaky will no longer raise a KeyError for failed flaky tests.
+
+
+2.1.0 (2015-05-05)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Flaky for nose now reruns failed tests *after* calling the `tearDown()` method.
+ This change is correct, but is a change in behavior.
+
+
+2.0.4 (2015-04-20)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Flaky now copies flaky attributes to collected tests, rather than modifying them on the test declaration.
+ This means that tests collected from classes that inherit tests marked flaky (from a base class) will now
+ work correctly.
+
+- Running py.test with doctests will no longer cause the doctests to fail. Doctests cannot, however, be marked flaky.
+
+- Tests marked flaky will now be correctly rerun from pytest when using the pytest-xdist option. However, they
+ will not be run if the `--boxed` option is used due to a technical limitation.
+
+**Documentation updates**
+
+- Updated documentation to correctly specify how to suppress the flaky report under py.test.
+
+2.0.3 (2015-03-20)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Tests marked flaky that are part of a class inheriting from `unittest.TestCase` will now be rerun when they fail
+ under py.test.
+
+
+2.0.0 (2015-03-01)
+++++++++++++++++++
+
+**Bugfixes**
+
+- Tests marked flaky that fail after exhausting reruns will now be reported to the nose test runner.
+ This is a *breaking* change, because the exit code of the nose test runner will indicate failure in this case.
+
+- Tests marked flaky will now be marked as failures after they have failed ``max_runs - min_passes + 1`` times.
+ This is a *breaking* change as well, because a bug in previous versions was allowing tests with ``min_passes > 0`` to
+ run more than ``max_runs`` times.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..167ec4d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,166 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
... 3751 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-flaky.git
More information about the Python-modules-commits
mailing list