From 85fbb669bd5e966b9c84a971a81a44416c95e37f Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 2 Jan 2021 01:41:20 +0100
Subject: [PATCH] =?UTF-8?q?Instalace=20pomoc=C3=AD=20setuptools?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore       |  1 +
 README.md        |  6 ++++++
 TODO             |  1 +
 requirements.txt | 12 ------------
 setup.py         | 25 +++++++++++++++++++++++++
 5 files changed, 33 insertions(+), 12 deletions(-)
 delete mode 100644 requirements.txt
 create mode 100644 setup.py

diff --git a/.gitignore b/.gitignore
index bdb35c40..f4e5f126 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ db/ruian
 db/skoly
 instance
 venv
+osmo.egg-info
diff --git a/README.md b/README.md
index e6dee904..ea542f28 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,8 @@
 # Odevzdávací Systém Matematické Olympiády
 
+## Instalace vývojového prostředí
+
+python3 -m venv venv
+. venv/bin/activate
+pip install wheel
+pip install -e .
diff --git a/TODO b/TODO
index 2a206f85..0b167b43 100644
--- a/TODO
+++ b/TODO
@@ -3,6 +3,7 @@
 - uklidit v logování (jak do DB, tak do app.logger)
 - na import by bylo hezké mít testy
 - ostylovat login form
+- GDPR
 
 - export:
 	- lidská jména stavů
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index 690d6538..00000000
--- a/requirements.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Flask
-Flask-WTF
-WTForms
-blinker
-click
-dateutils
-psycopg2
-sqlalchemy
-sqlacodegen
-bcrypt
-flask_sqlalchemy
-flask_bootstrap
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000..b24c8944
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python3
+
+import setuptools
+
+setuptools.setup(
+    name='osmo',
+    version='0.1',
+    description='Odevzdávací systém Matematické olympiády',
+    packages=['mo'],
+    install_requires=[
+        'Flask',
+        'Flask',
+        'Flask-WTF',
+        'WTForms',
+        'blinker',
+        'click',
+        'dateutils',
+        'psycopg2',
+        'sqlalchemy',
+        'sqlacodegen',
+        'bcrypt',
+        'flask_sqlalchemy',
+        'flask_bootstrap',
+    ],
+)
-- 
GitLab