Comments (7)
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:
- Change the license of deb-pkg-tools to GPL2.
- 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.
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.
@xolox you can also emulate ini file and parse headers using configparser :)
from python-deb-pkg-tools.
Thanks @imanhodjaev for the suggestion, that is indeed another option.
from python-deb-pkg-tools.
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:
- python-apt is used for version comparison.
- python-debian is used for deb822 parsing.
I can't believe I never realized this before
from python-deb-pkg-tools.
@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.
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)
- Improve README with example usage HOT 2
- Incomplete Dependency Parsing HOT 3
- Get rid of as much dependencies as possible and replace some existing dependencies with alternatives which may be better HOT 2
- Packages file doesn't provide path to archive
- Drop python 2.
- Using gpgme instead of gpg CLI.
- from deb_pkg_tools. must be eliminated, instead relative imports should be used.
- Add a flag that allows things in /etc/ directory to NOT be treated as conffiles HOT 1
- Decoding error HOT 1
- SUDO Requirement HOT 3
- Add support for "serialization" of deps to native Python objects HOT 1
- Error when parsing deps HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-deb-pkg-tools.