Skip to content

Commit

Permalink
Generate packages using packagecore
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Aug 29, 2017
1 parent 37167d1 commit ff13a3d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 15 deletions.
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ language: python
python:
- "3.5"
- "3.6"
sudo: required
services:
- docker
dist: trusty
before_install:
- pip install pillow
addons:
apt:
packages:
- debhelper
- devscripts
- fakeroot
- zsh
script:
- git fetch --unshallow --tags origin
- ./tools/makedeb
before_deploy:
- sudo apt-get update -qy
- sudo apt-get install -qy python3 python3-pip
- python3 -m pip install packagecore
- packagecore -o dist/ "${TRAVIS_TAG#v}"
deploy:
provider: releases
skip_cleanup: true
api-key:
secure: ARQwy2cGxVnkS+dZ+GdrwIqlGflCYD+Po3M1JGuD+lkdxfLm8J44bCjUGY/Dt28UxqJuQkqxCPb0rG5fpvCGmHUXswf1nYXQcUY6CUZEVmR8x0+z6gMFZt4iHhYTJbNO9qb7pjHBfxd1ZlWJVoiomyoZt8Mz1dVeMdFsVTiJyQt9Y+4JCrvdCWKPqf6CcnDzq0iKn7Ng+LgBqXRtJ9E24yih/VMbu5LgtScB66Hnu9ztxYBuLTw8CCnYjGyfIl8L3OD+OtGvOaBPLcE0iXfbF61dfI+qki8chP08coi7ZyJZlJ+XNaPgSBIf0JIfwSODNUC7GXm4P5uML5yU5992XbVJsVpFXcxC+4z/104+V6jMeDoEMWteBDxoRRn0gfU+lij/Eh8h40jQZGze1AdxfryYkWXyt6mG1eVc6bhjKShgJXKB1S9DlxSeN9hXs3LbftQIHBt4WMTAaR6cH2WrSDNDriqUaTjp9yhrh7t6oePTAc4Vx3/VaDQCR5CybTLeeww3wDhECgMgO5puCoixLrDiZKpfxBubKqMvDndxr5qZwMWTgkRT4CzXX3fquZfUbeD5uETB3KVRGMWv0NiM2Jv97TO6bWZr2qIqp8QcfNNjocNxI4PakorwH3eZlZKjUXl3/BWjcPh7YXIkQa5h4MNe20cEP5iOvhf/+XQUcLY=
file_glob: true
file: dist/*.deb
file:
- dist/*
skip_cleanup: true
on:
repo: jarun/imgp
tags: true
# Upload from only one job (doesn't matter which one because we're packaging the same thing throughout the matrix)
repo: jarun/imgp
python: "3.6"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pillow can be replaced by [pillow-simd](https://github.com/uploadcare/pillow-sim

#### Release packages

Packages for Arch Linux, CentOS, Fedora and Ubuntu are available with the [latest stable release](https://github.com/jarun/imgp/releases/latest).
Packages for Arch Linux, CentOS, Debian, Fedora and Ubuntu are available with the [latest stable release](https://github.com/jarun/imgp/releases/latest).

#### From source

Expand Down
49 changes: 49 additions & 0 deletions packagecore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: imgp
metadata:
maintainer: Arun Prakash Jana <[email protected]>
license: GPLv3
summary: Resize, rotate JPEG and PNG images..
homepage: https://github.com/jarun/imgp
commands:
install:
- make PREFIX="/usr" install DESTDIR="${BP_DESTDIR}"
packages:
archlinux:
builddeps:
- make
deps:
- python-pillow
- python
fedora26:
builddeps:
- make
deps:
- python3-pillow
- python3
centos7.3:
builddeps:
- make
deps:
- python-pillow
- python
commands:
pre:
- yum install epel-release
ubuntu16.04:
builddeps:
- make
deps:
- python3-pillow
- python3
ubuntu17.10:
builddeps:
- make
deps:
- python3-pillow
- python3
debian9:
builddeps:
- make
deps:
- python3-pillow
- python3

0 comments on commit ff13a3d

Please sign in to comment.