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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/usr/bin/env python3
from distutils.core import setup
import subprocess
import glob
import os
subprocess.call(["make"])
ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'gitsrht',
packages = [
'gitsrht',
'gitsrht.types',
'gitsrht.blueprints',
'gitsrht.alembic',
'gitsrht.alembic.versions'
],
version = ver,
description = 'git.sr.ht website',
author = 'Drew DeVault',
author_email = 'sir@cmpwn.com',
url = 'https://git.sr.ht/~sircmpwn/git.sr.ht',
install_requires = ['srht', 'flask-login'],
license = 'AGPL-3.0',
package_data={
'gitsrht': [
'templates/*.html',
'static/*',
'hooks/*'
]
},
scripts = [
'git-srht-dispatch',
'git-srht-keys',
'git-srht-shell',
'git-srht-update-hook',
'git-srht-periodic'
]
)
|