twonds / punjab

BOSH connection manager
MIT License
183 stars 49 forks source link

How do I create .deb out of punjab? #41

Closed akarelas closed 11 years ago

akarelas commented 11 years ago

This is related to #37

I read this page: https://pypi.python.org/pypi/stdeb and installed python-stdeb on my machine. Then I cloned the punjab github repo on my machine, and did the following:

dpkg -L python-stdeb
python setup.py sdist
py2dsc dist/punjab-0.15.tar.gz

and I get this error

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/punjab-0.15
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/user/fromGit/punjab/deb_dist --use-premade-distfile=/home/user/fromGit/punjab/dist/punjab-0.15.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
running egg_info
writing punjab.egg-info/PKG-INFO
writing top-level names to punjab.egg-info/top_level.txt
writing dependency_links to punjab.egg-info/dependency_links.txt
package init file 'twisted/plugins/__init__.py' not found (or not a regular file)
reading manifest file 'punjab.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'TODO.txt'
warning: no files found matching 'MANIFEST'
warning: no files found matching '*' under directory 'html/js'
warning: no files found matching '*' under directory 'html/css'
warning: no files found matching '*' under directory 'html/images'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '.cvs*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn*' found anywhere in distribution
writing manifest file 'punjab.egg-info/SOURCES.txt'
CALLING dpkg-source -b punjab-0.15 (in dir /home/user/fromGit/punjab/deb_dist)
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building punjab using existing ./punjab_0.15.orig.tar.gz
dpkg-source: info: local changes detected, the modified files are:
 punjab-0.15/punjab.egg-info/SOURCES.txt
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/punjab_0.15-1.diff.JGLEI7
Traceback (most recent call last):
  File "setup.py", line 35, in <module>
    package_data={'twisted.plugins': ['twisted/plugins/punjab.py']}
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/stdeb/command/sdist_dsc.py", line 139, in run
    remove_expanded_source_dir=self.remove_expanded_source_dir,
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 1207, in build_dsc
    cwd=dist_dir)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 478, in dpkg_source
    process_command(args, cwd=cwd)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 142, in process_command
    check_call(args, cwd=cwd)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 35, in check_call
    raise CalledProcessError(retcode)
stdeb.util.CalledProcessError: 2
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/user/fromGit/punjab/deb_dist --use-premade-distfile=/home/user/fromGit/punjab/dist/punjab-0.15.tar.gz
ERROR in deb_dist/tmp_py2dsc/punjab-0.15

I don't know what to do after it. What do you suggest?

akarelas commented 11 years ago

I did this:

# dpkg-source --commit
tail: cannot open `punjab/debian/changelog' for reading: No such file or directory
dpkg-source: error: tail of punjab/debian/changelog gave error exit status 1

and failed (see error above)

akarelas commented 11 years ago

@twonds May I create a .deb out of Punjab and put it up on launchpad.net? I have absolutely zero experience in this, so I'm learning...

twonds commented 11 years ago

You are more than welcome to do this, thanks!

akarelas commented 11 years ago

Finished: https://launchpad.net/~karjala/+archive/jabber - Installs and uninstalls (on Ubuntu) wonderfully.

Maybe you want to link to that URL as an alternative method of Installation in your INSTALL.txt file, because my punjab page does not get returned when you search for punjab from launchpad.net (see here: https://launchpad.net/+search?field.text=punjab)

twonds commented 11 years ago

Awesome! Thanks so much for this!

akarelas commented 11 years ago

A small correction: it's "Ubuntu" package, not "Debian" package. Ubuntu users who see "Debian" might think it's not good for their version of Linux (and equally, Debian users might try to install it when they can't)

twonds commented 11 years ago

Thanks again and fixed!