Giter Club home page Giter Club logo

Comments (7)

xolox avatar xolox commented on July 4, 2024

Hi @aovasylenko and thanks for the feedback.

To be honest I didn't think this through enough! Prompted by your question I researched the topic and it seems that by licensing deb-pkg-tools as MIT I'm violating the python-debian GPL2 license. This is rather unfortunate and was never my intention.

So it seems I have two options:

  1. Change the license of deb-pkg-tools to GPL2.
  2. Remove the python-debian dependency.

Going with the first option isn't necessarily a problem for me because I release what I do as open source software anyway, but I must admit to having a dislike for the viral nature of the GPL. Considering the other option, the only use case for the python-debian dependency is parsing of the deb822 format:

$ grep -r 'from debian'
deb_pkg_tools/control.py:from debian.deb822 import Deb822
deb_pkg_tools/tests.py:from debian.deb822 import Deb822
deb_pkg_tools/package.py:from debian.deb822 import Deb822
deb_pkg_tools/printer.py:from debian.deb822 import Deb822

Given the total scope of deb-pkg-tools this is a rather small bit of functionality, although clearly essential to the whole. Famous last words: It doesn't seem hard to implement deb822 parsing myself based on the specification (which is only 690 words).

from python-deb-pkg-tools.

xolox avatar xolox commented on July 4, 2024

I'm under the impression I may be able to get away with replacing the deb822 parsing based on the python-debian package with email.parser.HeaderParser from the Python standard library. If anyone is reading along and knows I'm wrong then by all means point that out 😇.

from python-deb-pkg-tools.

sultaniman avatar sultaniman commented on July 4, 2024

@xolox you can also emulate ini file and parse headers using configparser :)

from python-deb-pkg-tools.

xolox avatar xolox commented on July 4, 2024

Thanks @imanhodjaev for the suggestion, that is indeed another option.

from python-deb-pkg-tools.

xolox avatar xolox commented on July 4, 2024

Status update: I've certainly worked myself into a uncomfortable corner here, because it turns out that deb-pkg-tools integrates with not one but two GPL2 licensed libraries:

I can't believe I never realized this before 🤦‍♂️. The deb822 parsing seems simple enough to replace but the version comparison is more involved. Of course I can also give in and change the license to GPL2 but this will ripple through the little ecosystem of Python packages that I've developed in the past seven years 😞.

from python-deb-pkg-tools.

sultaniman avatar sultaniman commented on July 4, 2024

@xolox btw I created my own parser it should work the same way with archive as deb822 did https://github.com/imanhodjaev/pycran

from python-deb-pkg-tools.

xolox avatar xolox commented on July 4, 2024

I've just released deb-pkg-tools 8.0 which resolves this issue by switching to native (Python) implementations of deb822 parsing and Debian version number comparisons. Thanks for the feedback!

from python-deb-pkg-tools.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.