Skip to content

Commit 9f16fa7

Browse files
authored
Merge pull request #14 from all3fox/config-tox
Configure tox to run tests against both py27 and py36
2 parents 84c6f56 + 33ed970 commit 9f16fa7

34 files changed

Lines changed: 152 additions & 53 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
pip-log.txt
2222

2323
# Unit test / coverage reports
24+
.tox
2425
.cache
2526
.coverage
2627
.coverage.*

README.rst

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
1-
===============================
1+
==================
22
license-expression
3-
===============================
3+
==================
44

5-
license-expression is small utility library to parse, compare, simplify and normalize
5+
license-expression is a small utility library to parse, compare, simplify and normalize
66
license expressions (e.g. SPDX license expressions) using boolean logic such as:
77
`GPL-2.0 or later WITH Classpath Exception AND MIT`.
88

9-
109
See also for details:
1110
https://spdx.org/sites/cpstandard/files/pages/files/spdxversion2.1.pdf#page=95&zoom=auto
1211

1312
license: apache-2.0
1413

1514
Python: 2.7 and 3.4+
1615

17-
1816
Build and tests status
1917
======================
2018

21-
+-------+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+
22-
|Branch | **Linux (Travis)** | **MacOSX (Travis)** | **Windows (AppVeyor)** |
23-
+=======+===============================================================================+===============================================================================+=============================================================================================================+
24-
| |.. image:: https://api.travis-ci.org/nexB/license-expression.png?branch=master |.. image:: https://api.travis-ci.org/nexB/license-expression.png?branch=master |.. image:: https://ci.appveyor.com/api/projects/status/github/nexB/license-expression?svg=true |
25-
|Master | :target: https://travis-ci.org/nexB/license-expression | :target: https://travis-ci.org/nexB/license-expression | :target: https://ci.appveyor.com/project/nexB/license-expression |
26-
| | :alt: Linux Master branch tests status | :alt: MacOSX Master branch tests status | :alt: Windows Master branch tests status |
27-
+-------+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+
19+
+-------+-------------------------------------------+--------------------------------------------+---------------------------------------------+
20+
|Branch | **Linux (Travis)** | **MacOSX (Travis)** | **Windows (AppVeyor)** |
21+
+=======+===========================================+============================================+=============================================+
22+
| |.. image:: travis-master-icon_ |.. image:: travis-master-icon_ |.. image:: appveyor-master-icon_ |
23+
|Master | :target: travis-master-link_ | :target: travis-master-link_ | :target: appveyor-master-link_ |
24+
| | :alt: Linux Master branch tests status | :alt: MacOSX Master branch tests status | :alt: Windows Master branch tests status |
25+
+-------+-------------------------------------------+--------------------------------------------+---------------------------------------------+
26+
27+
.. _travis-master-icon: https://api.travis-ci.org/nexB/license-expression.png?branch=master
28+
.. _travis-master-link: https://travis-ci.org/nexB/license-expression
29+
30+
.. _appveyor-master-icon: https://ci.appveyor.com/api/projects/status/github/nexB/license-expression?svg=true
31+
.. _appveyor-master-link: https://ci.appveyor.com/project/nexB/license-expression
2832

2933

3034
Source code and download
@@ -42,6 +46,7 @@ Submit bugs and questions at:
4246

4347
Description
4448
===========
49+
4550
This module defines a mini language to parse, validate, simplify, normalize and
4651
compare license expressions using a boolean logic engine.
4752

@@ -53,11 +58,12 @@ equivalence and can be normalized or simplified.
5358

5459
The main entry point is the Licensing object.
5560

56-
5761
Usage examples
5862
==============
5963

60-
For example::
64+
For example:
65+
66+
.. code-block:: python
6167
6268
>>> from license_expression import Licensing, LicenseSymbol
6369
>>> licensing = Licensing()
@@ -89,15 +95,17 @@ For example::
8995
>>> assert expected == licensing.license_symbols(parsed)
9096
>>> assert expected == licensing.license_symbols(expression)
9197
98+
And expression can be simplified:
9299

93-
And expression can be simplified::
100+
.. code-block:: python
94101
95102
>>> expression2 = ' GPL-2.0 or (mit and LGPL 2.1) or bsd Or GPL-2.0 or (mit and LGPL 2.1)'
96103
>>> parsed2 = licensing.parse(expression2)
97104
>>> assert str(parsed2.simplify()) == 'BSD OR GPL-2.0 OR (LGPL 2.1 AND mit)'
98-
99105
100-
Two expressions can be compared for equivalence and containment::
106+
Two expressions can be compared for equivalence and containment:
107+
108+
.. code-block:: python
101109
102110
>>> expr1 = licensing.parse(' GPL-2.0 or (LGPL 2.1 and mit) ')
103111
>>> expr2 = licensing.parse(' (mit and LGPL 2.1) or GPL-2.0 ')
@@ -117,11 +125,10 @@ Two expressions can be compared for equivalence and containment::
117125
>>> licensing.contains(expr2, expr4)
118126
True
119127
120-
121128
Development
122129
===========
123130

124131
* Checkout a clone from https://github.com/nexB/license-expression.git
125-
* Then run `./configure` (or `configure.bat`) and then `source bin/activate`. This will
132+
* Then run ``./configure`` (or ``configure.bat``) and then ``source bin/activate``. This will
126133
install all vendored dependencies in a local virtualenv, including development deps.
127-
* To run the tests, run `py.test -vvs`
134+
* To run the tests, run ``py.test -vvs``

etc/conf/dev/base.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
py
33
colorama
44
pytest
5+
pluggy
6+
tox
-376 KB
Binary file not shown.
367 KB
Binary file not shown.

thirdparty/base/certifi.ABOUT

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
about_resource: certifi-2016.8.8-py2.py3-none-any.whl
2-
version: 2016.8.8
1+
about_resource: certifi-2017.4.17-py2.py3-none-any.whl
2+
version: 2017.4.17
33
description: Python package for providing Mozilla's CA Bundle.
44

5-
download_url: hhttps://pypi.python.org/packages/dd/ed/e9bf6a9dc79e23c68385c4ea692f0e9e1a7880518872564f88be013b552f/certifi-2016.8.8-py2.py3-none-any.whl#md5=cd6b969efda72327c5178c3ef0946ff2
5+
download_url: https://pypi.python.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl#md5=7d6198f160686046fd727900adf39f5b
66

7+
name: certifi
78
owner: Kenneth Reitz
89
contact: me@kennethreitz.com
910
home_url: http://certifi.io/
10-
name: certifi
1111

1212
dje_license: mpl-2.0
1313
license_text_file: mpl-2.0.LICENSE
-1.14 MB
Binary file not shown.
1.2 MB
Binary file not shown.

thirdparty/base/pip.ABOUT

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
about_resource: pip-8.1.2-py2.py3-none-any.whl
2-
version: 8.1.2
3-
download_url: https://pypi.python.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#md5=0570520434c5b600d89ec95393b2650b
1+
about_resource: pip-9.0.1-py2.py3-none-any.whl (1.3MB)
2+
download_url: https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
3+
version: 9.0.1
44

55
name: pip
66
owner: The pip developers
77
contact: python-virtualenv@groups.google.com
88
home_url: http://www.pip-installer.org
99

1010
author_file: pip.AUTHORS
11-
dje_license: mit, lgpl-2.1
11+
dje_license: mit, OTHER TODO
1212
license_text_file: pip.LICENSE
1313

1414
vcs_tool: git

thirdparty/base/setuptools-25.2.0-py2.py3-none-any.whl renamed to thirdparty/base/setuptools-36.0.1-py2.py3-none-any.whl

432 KB
Binary file not shown.

0 commit comments

Comments
 (0)