rascunho

commit 64be21a607d09d64460e4b051c6befc89bf714e6

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

Properly package rascunho

 setup.py | 36 ++++++++++++++++++++++++++++++++++++


diff --git a/setup.py b/setup.py
new file mode 100755
index 0000000000000000000000000000000000000000..8293f968ce6d021ec3098d3bede9cd178dc1ba12
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python3
+from setuptools import setup
+import subprocess
+import os
+
+ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
+      stdout=subprocess.PIPE).stdout.decode().strip()
+
+setup(
+  name = 'rascunho',
+  packages = [
+      'rascunho',
+      'rascunho.types',
+      'rascunho.blueprints',
+  ],
+  version = ver,
+  description = 'rascunho markdown preview service',
+  author = 'Pedro Lucas Porcellis',
+  author_email = 'porcellis@eletrotupi.com',
+  url = 'https://git.sr.ht/~porcellis/rascunho',
+  license = 'AGPL-3.0',
+  install_requires=[
+      'flask',
+      'sqlalchemy',
+      'humanize',
+      'psycopg2',
+      'mistune',
+      'pytz'
+  ],
+  package_data={
+      'rascunho': [
+          'templates/*.html',
+          'static/*',
+      ]
+  },
+)