Permalink
Browse files

Re-licence under the "LGPL v2.1 or later".

Lesser GPL For consistent with libusb1's licensing.
"or later" was here from the beginning, but only expressed in setup.py, so add
per-file header as advised by http://www.gnu.org/licenses/gpl-howto.html .
  • Loading branch information...
1 parent 3e5544f commit 238eaefa0759622afc554884b4b333d9bf946c65 @vpelletier committed May 2, 2015
Showing with 600 additions and 3 deletions.
  1. +502 −0 COPYING.LESSER
  2. +15 −0 examples/hotplug.py
  3. +15 −0 examples/listdevs.py
  4. +21 −1 libusb1.py
  5. +17 −2 setup.py
  6. +15 −0 testUSB1.py
  7. +15 −0 usb1.py
View
Oops, something went wrong.
View
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (C) 2013-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import usb1
import libusb1
View
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (C) 2013-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import usb1
def main():
View
@@ -1,4 +1,24 @@
-# libusb-1.0 python wrapper
+# Copyright (C) 2010-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+"""
+Python ctypes bindings for libusb-1.0.
+
+Declares all constants, data structures and exported symbols.
+Locates and loads libusb1 dynamic library.
+"""
from ctypes import Structure, LittleEndianStructure, \
CFUNCTYPE, POINTER, addressof, sizeof, cast, \
c_short, c_int, c_uint, c_size_t, c_long, \
View
@@ -1,3 +1,18 @@
+# Copyright (C) 2010-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from distutils.core import setup
import os
@@ -20,12 +35,12 @@
author='Vincent Pelletier',
author_email='plr.vincent@gmail.com',
url='http://github.com/vpelletier/python-libusb1',
- license='GPL',
+ license='LGPLv2.1+',
platforms=['any'],
py_modules=['libusb1', 'usb1'],
classifiers=[
'Intended Audience :: Developers',
- 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
+ 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
View
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (C) 2010-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import unittest
import sys
import select
View
@@ -1,3 +1,18 @@
+# Copyright (C) 2010-2015 Vincent Pelletier <plr.vincent@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""
Pythonic wrapper for libusb-1.0.

0 comments on commit 238eaef

Please sign in to comment.