[setup-packaging-environment] Extend functionality

Bug #740111 reported by Daniel Holbach
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

It'd be great to have a script that sets up your development environment. In an ideal world, people would just run these commands and be fully set up:
 - $ sudo apt-get install ubuntu-dev-tools
 - $ ubuntu-dev-setup

The script would do the following (there's probably more it should do in the future, but this is all I can think of):
 - ask for name and email address
 - check if a gpg key exists (check for files in ~/.gnupg(?)), if not create one (there's an experimental feature of gnupg to create keys in 'batch mode') and upload it
 - check if a ssh key exists, if not create one (check for ~/.ssh/id_rsa.pub(?)) (ssh-keygen -t rsa)
 - add DEBFULLNAME/DEBEMAIL to ~/.bashrc (not sure yet, what's the best way to do that; also what about zsh users)
 - find out current development series (lplib) and run "pbuilder-dist <series> create" if necessary (check for ~/pbuilder/<series>-base.tgz)
 - find out launchpad id (lp.people.me) and run 'bzr whoami "<name> <<email>>"' and 'bzr launchpad-login <launchpad-id>'
 - open https://launchpad.net/people/+me/+editpgpkeys and https://launchpad.net/people/+me/+editsshkeys in a browser
 - open https://launchpad.net/+login if no launchpad id exists

Revision history for this message
Daniel Holbach (dholbach) wrote :

We all know that there's millions of ways to configure your development environment. It's just important that newcomers get a very simple way to get started.

Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Benjamin Drung (bdrung) wrote :

We have already a tool called 'setup-packaging-environment'. Either extend this script or merge it into ubuntu-dev-setup.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Maybe it'd be possible to port setup-packaging-environment to python and make it use lplib?

Revision history for this message
Lorenzo De Liso (blackz) wrote :

Is the lplib support really needed? If we only need to know the development release we don't need it. Additionally, the user may be prompted for the launchpad ID.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Can you investigate what setup-packaging-environment does and what you expect from it to do?

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Holbach (dholbach) wrote :

I did a quick review of the code (and will test it in a VM later on). Here's what I found:
 - no GPG key is being created (this could be done only if there's no key available)
 - we should install packaging-dev instead of all the other packages
 - no SSH key is being created (this could be done only if there's no key available)
 - bzr whoami/lp-login is not set
 - pbuilder-dist create <release> is not run (if ~/pbuilder/<release>* is not available)
 - ~/.bashrc could be sourced
 - The user could be reminded to set up a Launchpad account if it does not exist (if the script used python, it'd be easier to check)
 - The user should be pointed to http://developer.ubuntu.com/packaging/html/.

Changed in ubuntu-dev-tools (Ubuntu):
status: Incomplete → Confirmed
summary: - Script to set up development environment
+ [setup-packaging-environment] Extend functionality
Revision history for this message
Daniel Holbach (dholbach) wrote :

Additionally I filed bug 841981 and bug 841975.

Revision history for this message
anatoly techtonik (techtonik) wrote :

+1 for `bzr whoami`. See bug #1247539 for details.

Revision history for this message
Dan Streetman (ddstreet) wrote :

as this is > 10 years old, i'm closing as wontfix

Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.