Add setup.py

This commit is contained in:
Drew DeVault 2017-04-18 09:12:56 -04:00
parent d678a98d51
commit 775a9f6398
3 changed files with 52 additions and 0 deletions

View File

@ -18,6 +18,12 @@
>[{{ job.status.value }}]</small>
</h2>
<dl>
{% if job.note %}
<dt>Note</dt>
<dd>
<p>{{ job.note | md }}</p>
</dd>
{% endif %}
<dt>Owner</dt>
<dd>
<a href="/jobs/~{{ job.owner.username }}">
@ -77,9 +83,11 @@
</tr>
</table>
{% endfor %}
{% if job.status.value == "success" or job.status.value == "failed" %}
<div class="alert {{ "alert-success" if job.status.value == "success" else "alert-danger" }}">
Build complete: <strong>{{ job.status.value }}</strong> {{ job.updated | humanize }}
</div>
{% endif %}
<a id="bottom"></a>
</div>
</section>

43
setup.py Executable file
View File

@ -0,0 +1,43 @@
#!/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 = 'buildsrht',
packages = [
'buildsrht',
'buildsrht.types',
'buildsrht.blueprints',
'buildsrht.alembic',
'buildsrht.alembic.versions'
],
version = ver,
description = 'builds.sr.ht website and runner',
author = 'Drew DeVault',
author_email = 'sir@cmpwn.com',
url = 'https://git.sr.ht/~sircmpwn/builds.sr.ht',
install_requires = [
'srht',
'pgpy',
'humanize',
'redis',
'celery',
'yaml',
'markdown',
'bleach'
],
license = 'AGPL-3.0',
package_data={
'buildsrht': [
'templates/*.html',
'static/*',
]
}
)

1
static Symbolic link
View File

@ -0,0 +1 @@
buildsrht/static