/srv/irclogs.ubuntu.com/2017/05/21/#ubuntu-motu.txt

epigfanioHi All01:20
epigfanioI'm struggling with packaging a python lib .. is this the right place where to ask for help?01:21
epigfanioit is about the debian changelog file .. I'm getting this error:  https://gist.github.com/819b64560a75d7c428183feef4865ab901:23
epigfaniobut my chasngelog "seems" to be fine: https://gist.github.com/562ea24e34f4f8ae2fe4e89610b6a80e01:23
epigfanio*changelog01:24
tsimonq2epigfanio: 17 should be 201701:25
tsimonq2epigfanio: Also, you shouldn't type these out manually. Use dch01:25
epigfaniotsimonq2: thank you!01:27
epigfanioI'm trying to learn how to package python packages, I'm trying to automatize the steps as much as I can .. i didn't know dch01:30
epigfaniothis is my ugly/buggy approach https://gist.github.com/epifanio/42b2aeeca136b8131ef85dc42bc6ef3b01:31
epigfanioso, time was wrong .. i need a different formatting for the year01:31
tsimonq2epigfanio: Yes.01:32
tsimonq2epigfanio: Also, look into devscripts and ubuntu-dev-tools. Those are two very helpful packages. :)01:32
epigfaniotime = now.strftime("%a, %d  %Y %H:%M:%S") instead of time = now.strftime("%a, %d  %y %H:%M:%S")  and make sure there are 2 spaces between email and time01:32
gsilvapttsimonq2, to write those parts automatically, I believe you have to use -i option?01:33
epigfanioi do have an other bug which I don't know how to solve. in the debian "control" file there is an entry for Maintainer, is the mantainer of the luibrary or the mantainer of the debian package ?01:34
* epigfanio looking for tutorials on how to use those packages :)01:35
gsilvaptepigfanio, the maintainer field is in regard to the package. If you're looking at the debian source, that should be the debian's package maintainer. If you look at Ubuntu's, it would be Ubuntu's package maintainer01:37
gsilvaptNot  100% sure what you mean by maintainer of the library though01:37
epigfaniothanks gsilvapt so in my case mantainer and uploader are the same01:38
gsilvaptepigfanio, have a read here about those fields: https://www.debian.org/doc/debian-policy/ch-controlfields.html01:38
gsilvaptSection 5.2 (check below)01:38
gsilvaptPS: I'm pretty sure you don't have to worry with those fields for now01:39
tsimonq2gsilvapt: Oh shoot, did I have to get back to you about something? >__< sorry01:39
gsilvapttsimonq2, not necessarily. I have no clue about what else to try01:40
tsimonq2gsilvapt: Let's see...01:40
epigfaniogsilvapt: example  i was parsing the doap.xml file for the python package  (see the bottom of the page)  . . in which there is field for  maintainer .. so I thought I had to use that name (which has an imparsable email address)01:40
epigfaniov01:40
epigfaniohttps://pypi.python.org/pypi/six/1.10.001:40
epigfanioI see for that page is clear: The package maintainer's -- thanks!01:41
gsilvaptNot sure if I helped or not but... No problem! :-D01:41
epigfaniogsilvapt: yes! the page on the debian-policy is helpful01:43
tsimonq2gsilvapt: debian-installer </joke> don't ever try to merge that! :P01:43
gsilvaptHum, what? :)01:44
tsimonq2gsilvapt: Nevermind. :P01:45
tsimonq2!info debian-installer artful01:45
ubottudebian-installer (source: debian-installer): Debian installer. In component main, is optional. Version 20101020ubuntu505 (artful), package size 658 kB, installed size 1287 kB01:45
tsimonq2!info debian-installer unstable01:45
ubottudebian-installer (source: debian-installer): Debian Installer documentation. In component main, is optional. Version 20170407 (unstable), package size 715 kB, installed size 1219 kB01:45
tsimonq2gsilvapt: See why that's something I joke about? :P01:46
gsilvaptNot really. Not sure if this is related to my problem or the other one above :)01:46
tsimonq2Nevermind. :P01:47
tsimonq2gsilvapt: gsilvapt> tsimonq2, not necessarily. I have no clue about what else to try01:47
tsimonq2I was responding to that.01:47
gsilvaptSorry, I'm a bit tired and had a couple of really bad days so I'm slow :P01:47
tsimonq2Anyways... LO01:48
tsimonq2*:P01:48
gsilvaptAhhh, okay x)01:48
tsimonq2gsilvapt: Try gnustep-base?01:48
gsilvaptThe problem with this package is with patches. It has small differences here and there. you suggested something though I couldn't accomplish01:49
tsimonq2Could you elaborate a bit?01:50
gsilvaptgnome-system-tools package. It is marked with some merging issues. There are no files marked as opposed to what the site mentions. There are a few warning messages regarding patch files01:54
* gsilvapt be right back01:54
tsimonq2gsilvapt: I'm saying, move on. :)01:54
tsimonq2gsilvapt: What about gnustep-base?01:54
epigfanioone more question .. those are my first attempt in making debs. and often the build fails because of  stupid mistakes. but then I'm forced to bump the version of the package "up" everytime I do a rebuild and upload (usually it fails building because of missing dep)02:18
epigfaniomy way to go over this is to add an extra number to the version of the library02:18
epigfaniothat reflect the build number02:18
epigfanioso evry time i build and fail .. I add a unit to it02:19
epigfaniois this "allowed"?02:19
tsimonq2epigfanio: What kind of version numbers are you talking about?02:23
epigfanioexample for the python_prompt_toolkit  library:  https://pypi.python.org/pypi/prompt_toolkit/1.0.14  it has version 1.0.14 ...  I failed to build  0 times ... so my package name is:   https://launchpad.net/~epiesasha/+archive/ubuntu/jupyter/+packages02:27
epigfanioprompt-toolkit - 1.0.14.0-0ppa002:27
epigfanioi just noticed that my naming is wrong ..02:28
epigfanioit should have python3-  prefix ..02:28
epigfanioand you can see i rebuilt pyzmq 4 times now ...02:28
tsimonq2epigfanio: You should probably be using versioning like 1.0.14.0-1~ppa102:42
tsimonq2epigfanio: The Debian revision should be greater than 0 unless it's only in Ubuntu (afaicr), and ppa1 should be less than that revision so that if the Debian revision is put in the archive, it supersedes yours.02:42
tsimonq2epigfanio: Because ideally, you would get any packaging changes into Debian and let it sync down into Ubuntu. That leaves less work for a lot of people and helps distribute your changes more, plus a bunch more benefits.02:44
tsimonq2epigfanio: We have a few friendly Debian Developers in here that would probably be able to help you with that ;)02:44
epigfanioi'll be happy to learn a proper way to do that02:45
epigfanioI'll leave thios workstation on, so I can read irc log later02:45
tsimonq2epigfanio: Also, I would look into sbuild so that you don't have to upload it to a PPA to see if it builds properly. That way, it's less time spent waiting for things to build and more time spent actually getting work done. ;)02:45
tsimonq2epigfanio: https://wiki.ubuntu.com/SimpleSbuild02:46
epigfaniooh! sbuild?02:46
epigfaniohow to use it?02:46
epigfaniothat will fix the versioning issue too02:46
tsimonq2That wiki page has plenty of info.02:46
epigfaniooh too quick I was typing and didn't see the link ..02:47
tsimonq2If you have specific questions, I'll be more than happy to answer them, but that [age does the best job of explaining it. :)02:47
tsimonq2*page02:47
* tsimonq2 goes to bed o/02:52
epigfaniothanks!02:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!