-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Debian packages and deploy to the github release (#67)
- Loading branch information
1 parent
46a8abf
commit f23e166
Showing
9 changed files
with
82 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.eggs/ | ||
.tox/ | ||
ci/Dockerfile-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# This has to be done within `ubuntu` Docker image. Otherwise (when running on a default Travis Ubuntu Xenial VM), Travis fails with the following: | ||
|
||
# python setup.py install --force --root=debian/python-git-machete --no-compile -O0 --install-layout=deb --prefix=/usr | ||
# usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] | ||
# or: setup.py --help [cmd1 cmd2 ...] | ||
# or: setup.py --help-commands | ||
# or: setup.py cmd --help | ||
# error: option --install-layout not recognized | ||
|
||
RUN apt-get update && apt-get install -y python-all python-pip python3-pip python3-stdeb dh-python git lintian | ||
|
||
COPY . git-machete/ | ||
WORKDIR git-machete/ | ||
RUN pip install pbr | ||
RUN pip3 install pbr | ||
# Hacks necessary to enforce a reasonable description in the generated Debian package (instead of one autogenerated from the existing summary and README.md) | ||
RUN sed -i 's/summary =.*/summary = Git repository organizer \& rebase workflow automation tool/' setup.cfg | ||
RUN cp ci/README-stdeb.md README.md | ||
RUN python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=True --with-python3=True --copyright-file=LICENSE bdist_deb | ||
|
||
WORKDIR deb_dist/ | ||
RUN ls -l | ||
RUN dpkg-deb --info python3-git-machete_*.deb | ||
RUN dpkg-deb --contents python3-git-machete_*.deb | ||
RUN lintian python3-git-machete_*.deb | ||
RUN dpkg --install python3-git-machete_*.deb | ||
RUN which git-machete | ||
RUN git machete --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
git machete is a versatile tool for organizing your repo with features like: | ||
- neat, customizable git machete status that shows what branches are in sync | ||
with their parent branch/remote tracking branch and which of them need to | ||
be rebased/pulled/pushed, | ||
- semi-automatic traversal of the branches that helps you effortlessly rebase | ||
and push/pull the branches you care for (git machete traverse), | ||
- automatic discovery of branch relations (git machete discover). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.12.3' | ||
__version__ = '2.12.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ universal = 1 | |
[pbr] | ||
warnerrors = True | ||
[easy_install] | ||
allow_hosts = *.python.org,*.pythonhosted.org,pypi.org |