~emersion/python-emailthreads

ref: 0a56af7fd6de16105c27b7c149eeb0282e95e587 python-emailthreads/setup.py -rwxr-xr-x 582 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3

from distutils.core import setup
import subprocess
import os

ver = os.environ.get("PKGVER")

if not ver:
	subp = subprocess.run(['git', 'describe', '--tags'],
		stdout=subprocess.PIPE)
	if subp.returncode != 0:
		ver = "0.0.0"
	else:
		ver = subp.stdout.decode().strip()

setup(
	name = 'emailthreads',
	packages = [
		'emailthreads',
	],
	version = ver,
	description = 'Parses email threads into conversation trees',
	author = 'Simon Ser',
	author_email = 'contact@emersion.fr',
	url = 'https://github.com/emersion/python-emailthreads',
	license = 'MIT'
)