Skip to content
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

Deb packaging #44

Closed
waveform80 opened this issue Oct 3, 2015 · 24 comments
Closed

Deb packaging #44

waveform80 opened this issue Oct 3, 2015 · 24 comments
Assignees
Milestone

Comments

@waveform80
Copy link
Member

We should get on with Raspbian packaging fairly quickly. I want this on the image for the next Birmingham picademy, and I'd like to include instructions on the worksheet for teachers to install this on any other Pi's they have with minimal hassle. I can handle this if you wish.

@bennuttall
Copy link
Member

Yes please - go ahead

@waveform80 waveform80 self-assigned this Oct 3, 2015
@bennuttall bennuttall mentioned this issue Oct 4, 2015
5 tasks
@waveform80
Copy link
Member Author

Argh ... spidev and w1thermsensor aren't packaged for Raspbian. I'll have to make those local imports and come up with some "friendly" error telling the user how to install them in the event they're not present

@waveform80
Copy link
Member Author

(or package them myself, but I really don't have the time to devote to that)

waveform80 added a commit to waveform-computing/gpio-zero that referenced this issue Oct 5, 2015
Implement native Debian packaging (control files are part of the source
repo) with Makefile to simplify the release procedure. This commit also
makes w1thermsensor and spidev "soft" dependencies which aren't required
by the Debian package (because they're not packaged for Raspbian, only
PyPI).
@bennuttall
Copy link
Member

Hmm. Maybe we should look at packaging them. I'll ask when I'm back in the office.

@timofurrer
Copy link

@bennuttall Is this the issue why you need the w1thermsensor module as package in the repos?
I'll definitely gonna work on it ...

@bennuttall
Copy link
Member

Yes - thanks!

@waveform80
Copy link
Member Author

Quick question before I redo the PR for deb packaging - I'm assuming the w1thermsensor package is going to be packaged as python-w1thermsensor and python3-w1thermsensor, and that spidev will be packaged as python-spidev and python3-spidev in accordance with the usual Debian convention? Just need to check for the deps in the control file

@bennuttall
Copy link
Member

I would think so. @XECDesign?

@bennuttall bennuttall added this to the v1.0 milestone Oct 9, 2015
@XECDesign
Copy link

Yeah, that's right.

@timofurrer
Copy link

Yes - for w1thermsensor the same ..

@waveform80
Copy link
Member Author

Good stuff - I'll bung in the PR in a bit

waveform80 added a commit to waveform-computing/gpio-zero that referenced this issue Oct 9, 2015
Implement native Debian packaging (control files are part of the source
repo) with Makefile to simplify the release procedure.
@bennuttall
Copy link
Member

Reopening until the package is released!

@bennuttall bennuttall reopened this Oct 10, 2015
@waveform80
Copy link
Member Author

Heh - good point :)

@timofurrer
Copy link

Use the following commands to create the python 2 and python 3 packages:

For python 2:

python setup.py --command-packages=stdeb.command bdist_deb

For python 3:

python3 setup.py --command-packages=stdeb.command bdist_deb

Do you need something else in order to include it to the repositories?

@waveform80
Copy link
Member Author

The machinery for making the deb package should all be in there after PR #54, we're just fixing a few other things before the next release at the moment. The machinery is based on stdeb's output but with a few tweaks that I've built up over the years to make certain things easier (most of it's in the Makefile and handles things like launching dch to update the changelog properly and in the fuller versions that I use on picamera and picraft, building the separate docs package automatically, integrating it with docs-base, and auto-uploading everything to PyPI and the Raspbian maintainer via dput)

@bennuttall
Copy link
Member

I didn't use this for the 0.9 release as I needed to get it out - but will try by the next release.

@waveform80
Copy link
Member Author

No prob - let me know if you have any issues. I can always run it if you like as I'm set up for signing packages and Serge's got my public keys on the Raspbian dput servers (which is why I can automate the whole thing from package building to uploading to PyPI and Raspbian)

@bennuttall bennuttall mentioned this issue Nov 3, 2015
4 tasks
@lurch
Copy link
Contributor

lurch commented Nov 4, 2015

Will the python-w1thermsensor, python3-w1thermsensor, python-spidev and python3-spidev packages also be added to the Wheezy repositories? Or will they remain Jessie-only?

@waveform80
Copy link
Member Author

That would be the "proper" solution here (and I suspect the easiest though
I'm not au fait with the particulars); I haven't heard the verdict on that
yet though.
On 4 Nov 2015 12:53 a.m., "Andrew Scheller" notifications@github.com
wrote:

Will the python-w1thermsensor, python3-w1thermsensor, python-spidev and
python3-spidev packages also be added to the Wheezy repositories? Or will
they remain Jessie-only?


Reply to this email directly or view it on GitHub
#44 (comment)
.

@bennuttall
Copy link
Member

That would make things a lot easier. We do want people to upgrade to Jessie, but I don't like the idea of this just not working in Wheezy. It's possible to supply separate instructions for Wheezy but that gets complicated.

@XECDesign do you think we could make Wheezy packages for this and its dependencies?

@XECDesign
Copy link

If someone can confirm that they 'just work' as they are, I don't see why not.

@bennuttall
Copy link
Member

They should! Send me some debs and I'll test them. Thanks

@waveform80
Copy link
Member Author

Right, packaging is tested and works nicely (on jessie - it'll work on wheezy as well when/if the spidev packages are back-ported there) so I'll close this for release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants