New Upstream Snapshot - wcag-contrast-ratio

Ready changes

Summary

Merged new upstream version: 0.9+git20150730.2.92a0530 (was: 0.9+git20150730.1.92a0530).

Resulting package

Built on 2022-12-17T17:07 (took 24m26s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots python3-wcag-contrast-ratio

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 94a9742..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright (c) 2014 GitHub, Inc.
-# 
-# Permission is hereby granted,  free of charge,  to any person obtaining a
-# copy of this software and associated documentation files (the "Software"),
-# to deal in the Software without restriction, including without limitation
-# the rights to  use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-# 
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-# 
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-# DEALINGS IN THE SOFTWARE.
-
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-MANIFEST
-.Python
-env/
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# PyInstaller
-#  Usually these files are written by a python script from a template
-#  before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.hypothesis/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*,cover
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 7a8c04f..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-language: python
-python:
-  - "2.6"
-  - "2.7"
-  - "3.2"
-  - "3.3"
-  - "3.4"
-  - "pypy"
-  - "pypy3"
-
-sudo: false
-
-cache:
-  directories:
-    - $HOME/.cache/pip
-
-install:
-  - pip install -U pytest hypothesis-pytest
-
-script:
-  - py.test test.py
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..471fad8
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,53 @@
+Metadata-Version: 2.1
+Name: wcag-contrast-ratio
+Version: 0.9
+Summary: A library for computing contrast ratios, as required by WCAG 2.0
+Home-page: https://github.com/gsnedders/wcag-contrast-ratio
+Maintainer: Geoffrey Sneddon
+Maintainer-email: geoffers@gmail.com
+License: MIT License
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Topic :: Software Development
+License-File: LICENSE
+
+wcag-contrast-ratio
+===================
+
+A library for computing contrast ratios, as required by `WCAG 2.0`.
+
+Usage
+-----
+
+Simple usage follows this pattern:
+
+.. code-block:: python
+
+  >> import wcag_contrast_ratio as contrast
+  >> black = (0.0, 0.0, 0.0)
+  >> white = (1.0, 1.0, 1.0)
+  >> contrast.rgb(black, white)
+  21.0
+
+Two useful helper functions are provided, to check if contrast meets
+the required level:
+
+.. code-block:: python
+
+  >> import wcag_contrast_ratio as contrast
+  >> contrast.passes_AA(21.0)
+  True
+  >> contrast.passes_AAA(21.0)
+  True
+
+.. _WCAG 2.0: http://www.w3.org/TR/WCAG20/
diff --git a/debian/changelog b/debian/changelog
index a8991e6..0fa8a97 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wcag-contrast-ratio (0.9+git20150730.2.92a0530-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 17 Dec 2022 16:49:55 -0000
+
 wcag-contrast-ratio (0.9-3) unstable; urgency=medium
 
   [ David (Plasma) Paul ]
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..8bfd5a1
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff --git a/test.py b/test.py
index dc3d593..c432b30 100644
--- a/test.py
+++ b/test.py
@@ -60,6 +60,6 @@ def test_passes_AAA(c, expected, large_expected):
 @given(color, color)
 def test_hypothesis_contrast(rgb1, rgb2):
     c1 = contrast.rgb(rgb1, rgb2)
-    c2 = contrast.rgb(rgb1, rgb2)
+    c2 = contrast.rgb(rgb2, rgb1)
     assert 1.0 <= c1 <= 21.0
     assert c1 == c2
diff --git a/tox.ini b/tox.ini
deleted file mode 100644
index 8d9fcb5..0000000
--- a/tox.ini
+++ /dev/null
@@ -1,10 +0,0 @@
-[tox]
-envlist = py26,py27,py32,py33,py34,pypy,pypy3
-
-[testenv]
-deps =
-  pytest
-  hypothesis-pytest
-
-commands =
-  {envbindir}/py.test test.py
diff --git a/wcag_contrast_ratio.egg-info/PKG-INFO b/wcag_contrast_ratio.egg-info/PKG-INFO
new file mode 100644
index 0000000..471fad8
--- /dev/null
+++ b/wcag_contrast_ratio.egg-info/PKG-INFO
@@ -0,0 +1,53 @@
+Metadata-Version: 2.1
+Name: wcag-contrast-ratio
+Version: 0.9
+Summary: A library for computing contrast ratios, as required by WCAG 2.0
+Home-page: https://github.com/gsnedders/wcag-contrast-ratio
+Maintainer: Geoffrey Sneddon
+Maintainer-email: geoffers@gmail.com
+License: MIT License
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Topic :: Software Development
+License-File: LICENSE
+
+wcag-contrast-ratio
+===================
+
+A library for computing contrast ratios, as required by `WCAG 2.0`.
+
+Usage
+-----
+
+Simple usage follows this pattern:
+
+.. code-block:: python
+
+  >> import wcag_contrast_ratio as contrast
+  >> black = (0.0, 0.0, 0.0)
+  >> white = (1.0, 1.0, 1.0)
+  >> contrast.rgb(black, white)
+  21.0
+
+Two useful helper functions are provided, to check if contrast meets
+the required level:
+
+.. code-block:: python
+
+  >> import wcag_contrast_ratio as contrast
+  >> contrast.passes_AA(21.0)
+  True
+  >> contrast.passes_AAA(21.0)
+  True
+
+.. _WCAG 2.0: http://www.w3.org/TR/WCAG20/
diff --git a/wcag_contrast_ratio.egg-info/SOURCES.txt b/wcag_contrast_ratio.egg-info/SOURCES.txt
new file mode 100644
index 0000000..56f4adf
--- /dev/null
+++ b/wcag_contrast_ratio.egg-info/SOURCES.txt
@@ -0,0 +1,11 @@
+LICENSE
+MANIFEST.in
+README.rst
+setup.py
+test.py
+wcag_contrast_ratio/__init__.py
+wcag_contrast_ratio/contrast.py
+wcag_contrast_ratio.egg-info/PKG-INFO
+wcag_contrast_ratio.egg-info/SOURCES.txt
+wcag_contrast_ratio.egg-info/dependency_links.txt
+wcag_contrast_ratio.egg-info/top_level.txt
\ No newline at end of file
diff --git a/wcag_contrast_ratio.egg-info/dependency_links.txt b/wcag_contrast_ratio.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/wcag_contrast_ratio.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/wcag_contrast_ratio.egg-info/top_level.txt b/wcag_contrast_ratio.egg-info/top_level.txt
new file mode 100644
index 0000000..11b404c
--- /dev/null
+++ b/wcag_contrast_ratio.egg-info/top_level.txt
@@ -0,0 +1 @@
+wcag_contrast_ratio

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details