debian packaging (#10796)

This commit is contained in:
Serghei Mihai 2016-05-04 09:49:16 +02:00
parent 61bed4a4bc
commit d785fa7e09
7 changed files with 83 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
mail2redmine (0-1) unstable; urgency=low
* source package automatically created by stdeb 0.8.5
-- Serghei Mihai <smihai@entrouvert.com> Mon, 09 May 2016 17:42:19 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
7

20
debian/control vendored Normal file
View File

@ -0,0 +1,20 @@
Source: mail2redmine
Maintainer: Serghei Mihai <smihai@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7.4.3)
Standards-Version: 3.9.1
Package: mail2redmine
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Description: Converts incoming exim emails to tickets
mail2redmine converts incoming email from Exim to Redmine tracker tickets by
using mail subject and body as ticket title and description respectively.
.
Ticket owner is detected from sender's address if a corresponding account
exists on Redmine. The email is sent to a fallback address if account doesn't
exist.
.
Email attachment are joined to the ticket.

2
debian/mail2redmine.install vendored Normal file
View File

@ -0,0 +1,2 @@
eo-redmine-mailfilter.sh /usr/bin/
mail2redmine.py /usr/bin/

10
debian/rules vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.8.5 at
# Mon, 09 May 2016 17:42:19 +0200
%:
dh $@ --with python2

0
eo-redmine-mailfilter.sh Normal file → Executable file
View File

45
setup.py Normal file
View File

@ -0,0 +1,45 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
from setuptools import setup, find_packages
def get_version():
if os.path.exists('VERSION'):
version_file = open('VERSION', 'r')
version = version_file.read()
version_file.close()
return version
if os.path.exists('.git'):
p = subprocess.Popen(['git', 'describe', '--dirty', '--match=v*'], stdout=subprocess.PIPE)
result = p.communicate()[0]
if p.returncode == 0:
version = result.split()[0][1:]
version = version.replace('-', '.')
return version
return '0'
setup(
name='mail2redmine',
version=get_version(),
description='Converts incoming exim emails to tickets',
author='Serghei Mihai',
author_email='smihai@entrouvert.com',
packages=find_packages(),
include_package_data=True,
scripts=('mail2redmine.py', 'eo-redmine-mailfilter.sh'),
url='https://dev.entrouvert.org/',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
],
install_requires=['python-redmine']
)