Skip to content

Preparing debian release for 0.7.0 - #224

Merged
ddemidov merged 3 commits into
developfrom
debian-release-0.7.0
Sep 30, 2016
Merged

ddemidov merged 3 commits into
developfrom
debian-release-0.7.0

Conversation

@ddemidov

@ddemidov ddemidov commented Sep 30, 2016 •

Copy link
Copy Markdown
Member

Summary of changes:

  1. Update copyright information in debian/copyright (see release 0.7.0 #207 (comment))
  2. Fix lintian warnings (a line too long, and wrong weekday)
  3. Get rid of hard-coded __version__ in ev3dev/core.py, and replace it with auto-generated ev3dev/version.py.

@ddemidov ddemidov mentioned this pull request Sep 30, 2016
@ddemidov ddemidov changed the title Update copyright info in debian package Preparing debian release for 0.7.0 Sep 30, 2016
@ddemidov

Copy link
Copy Markdown
Member Author

@dlech, I followed http://www.ev3dev.org/docs/devtools/packaging-for-ev3dev/ up to the point I have python3-ev3dev_0.7.0_all.deb in pbuilder-ev3dev/debian/jessie-armel/. lintian seems to like the package, and I am able to install it with dpkg -i python3-ev3dev_0.7.0_all.deb

>>> from ev3dev.version import __version__
>>> print(__version__)

gives me 0.7.0. Assuming nobody objects against the changes proposed here, what are my next steps?

Do I need to generate the package for other values of DIST and ARCH? Or this does not matter since the deb name suggests it is suitable for all arches?

How do I release the package? Just send the deb to you?

@WasabiFan

Copy link
Copy Markdown
Member

Thanks for doing this!

@ddemidov

Copy link
Copy Markdown
Member Author

Can I get an approve from @dlech?

@dlech

dlech commented Sep 30, 2016

Copy link
Copy Markdown
Member

armel

Since this package does not contain any binary components, you can actually replace armel with amd64 and the build will run much faster.

You will also need to build a second time with OS=raspbian ARCH=armhf DIST=jessie to produce a package for raspberry pi.

what are my next steps?

If you will be the uploader, you need to run dch -r in the source code directory to update the changelog with your name/email. You will also need to send me an SSH public key that will be used for uploading.

How do I release the package? Just send the deb to you?

I will update http://www.ev3dev.org/docs/devtools/packaging-for-ev3dev/ shortly with more detailed steps on uploading.

@dlech

dlech commented Sep 30, 2016

Copy link
Copy Markdown
Member

Since this git repo has special handling of tags, you may not want to push the debian package tag. For the releases I did, I just pushed the tag to my personal fork.

@ddemidov

Copy link
Copy Markdown
Member Author

Does gbp create annotated tags? If not, it should not affect anything. Also, the debian packaging script does not actually use tag info: it just dumps the version found in changelog into RELEASE-VERSION: https://github.com/rhempel/ev3dev-lang-python/blob/develop/debian/rules

@dlech

dlech commented Sep 30, 2016

Copy link
Copy Markdown
Member

Does gbp create annotated tags?

no

If not, it should not affect anything

I thought that it will update the readthedocs site.

Also, the debian packaging script does not actually use tag info: it just dumps the version found in changelog into RELEASE-VERSION:

Yes, this is intentional.

@ddemidov
ddemidov merged commit c03c891 into develop Sep 30, 2016
@ddemidov
ddemidov deleted the debian-release-0.7.0 branch September 30, 2016 19:00
Comment thread ev3dev/core.py
INPUT_AUTO = ''
OUTPUT_AUTO = ''

# Keep the __version__ in sync with the package version in debian/changelog

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because a4a296a creates ev3dev/version.py automatically. Less chances to forget to update this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git_version.py is called from setup.py and does this: https://github.com/rhempel/ev3dev-lang-python/blob/develop/git_version.py#L80-L82

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Missed that.

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

Successfully merging this pull request may close these issues.

3 participants