-
-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Initial Debian Packaging[WIP] #1636
Add Initial Debian Packaging[WIP] #1636
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1636 +/- ##
========================================
Coverage 81.16% 81.16%
========================================
Files 125 125
Lines 15474 15474
========================================
Hits 12559 12559
Misses 2915 2915 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #1636 +/- ##
===========================================
+ Coverage 78.43% 78.53% +0.09%
===========================================
Files 131 131
Lines 16727 16727
===========================================
+ Hits 13120 13136 +16
+ Misses 3607 3591 -16
Continue to review full report at Codecov.
|
@aj4ayushjain you gave these instructions in the chatroom: 1.Obtain the tar for latest version. |
etc/debian/control
Outdated
Architecture: all | ||
Depends: python-six, | ||
python-unicodescv, | ||
python-pycyptodome, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pycyptodome dos not look like the correct name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, another typo, the correct name is python-pycryptodrome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i checked python-cryptodome is the correct name.
etc/debian/copyright
Outdated
Files: * | ||
Copyright: Phillipe Ombredanne <[email protected]> | ||
Files: debian/* | ||
License: GPL-2+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct, but that's not a big deal for now
etc/debian/control
Outdated
zlib1g, | ||
libxml2-dev, | ||
libxslt1-dev, | ||
libbz2-1.0 | bzip2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style suggestion: sort dependencies alphabetically, and use a comma even on last line so that diffs are cleaner if you have to add one to the end later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright will make the changes
etc/debian/control
Outdated
Package: scancode-toolkit | ||
Architecture: all | ||
Depends: python-six, | ||
python-unicodescv, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo alert: it's python-unicodecsv
Easier recipe if you just want to see if it produces good binary packages
Note the many lintian errors produced by debuild. At least some of them may need addressing. If the ci infrastructure allows, you'd want to do a test install of the resulting package; that would have caught the two typos in package names. Probably also want to support autopkgtest so that debian package builders can verify that the package works; see https://wiki.debian.org/ContinuousIntegration/autopkgtest |
Also, may as well just put the debian directory at the top level rather than etc until there's a reason to do anything else; that gets rid of one of the steps in the recipe. |
Yeah i have to do that..Thinking of keeping the debian/ top level directory in a branch so user can checkout that branch and use it . |
The lintian errors are along the lines of
and it has one of those complains for each of
The ones that have debian packages need to be added (as you've started doing). The ones that don't have a debian package... well, we could try installing scancode's Putting them in the user install is not really an option for a debian-packaged python app. |
These are the dependencies which need to bundled and packaged or updated version is not available right now for some so will package them later.
|
The meaning of each of the file for debian packaging(debian/ dir) to give a context debian/changelog:-This log which maintains the changes done in package over different version .There is a specific format which is to followed as suggested by debian. debian/control:-It contains information about the source package and binary package. The first paragraph contains the info for source package and following paragraphs for the binary package. debian/copyright:-It contains the information and license of the upstream sources debian/rules:- (executable)It is recipe which defines how to build and install the package just like an Makefile debian/compat:-It defines the debhelper compatibility level. For more details on debian packaging you can check :- |
173c65d
to
a4a5333
Compare
@aj4ayushjain Some of your commits are missing the DCO signoff per https://github.com/nexB/scancode-toolkit/pull/1636/checks?check_run_id=180817210 The first few have it though: |
90b30e9
to
4551d30
Compare
4551d30
to
4e26a16
Compare
@aj4ayushjain do you think you could rebase your PR so we can eventually merge soon enough? |
Signed-off-by: aj4ayushjain <[email protected]>
4e26a16
to
1635cc2
Compare
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Thank you for rebasing. What is your evaluation of what is left todo before we can merge? |
What are the etc/debian/*.ex files for? Are they used? I'm kind of opposed to checking in |
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
Signed-off-by: aj4ayushjain <[email protected]>
0f1227e
to
2ec4b90
Compare
@dankegel U're suggestions and feedback are most welcomed. To build the package the instructions:- 1. And @pombredanne after doing this and installing the .deb |
Signed-off-by: aj4ayushjain <[email protected]>
@aj4ayushjain Can you tell me if I can merge this now? Or what is missing? |
Seems like it could use some alpha testing before merging. Are there any motivated users? I may be too busy to do much. |
@aj4ayushjain ping? Do you mind providing quick instructions to test this? |
I believe it should be something like
where the sudo's only have to be run ones to install stuff, However, that fails for me with
Removing the last few lines of debian/control fixes that. The next problem is
Adding the missing build-depend on python-pip in debian/control fixes that... well, not quite, That's as far as I got. Sorry for not trying this months ago. If the current pull request can be coaxed into working, it might be worth landing, even though a proper packaging |
Pong! Sorry about the late response. |
@aj4ayushjain ping againm FYI @jelmer is working on a Debian packaging. What would be needed to wrap this here? |
Thanks for doing this |
@abhilashi do you think you could help with this? |
I am closing this for now and this can be reopened or recreated as needed. |
This is the directory which can be used to build the debian package from the github repository of scancode-toolkit in Python2.