From 7f4f041de8763996f2d34e91044bb1e948d1668f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 24 Sep 2019 09:03:09 +0200 Subject: [PATCH] make it installable --- .gitignore | 14 ++++++++++++++ servecerts/MANIFEST.in | 5 +++++ servecerts/__init__.py | 4 +--- servecerts/setup.py | 12 ++++++++++++ 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 servecerts/MANIFEST.in create mode 100644 servecerts/setup.py diff --git a/.gitignore b/.gitignore index 0d20b64..0bd40ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,15 @@ +venv/ + *.pyc +__pycache__/ + +instance/ + +.pytest_cache/ +.coverage +htmlcov/ + +dist/ +build/ +*.egg-info/ + diff --git a/servecerts/MANIFEST.in b/servecerts/MANIFEST.in new file mode 100644 index 0000000..2c8368b --- /dev/null +++ b/servecerts/MANIFEST.in @@ -0,0 +1,5 @@ +include servecerts/schema.sql +graft servecerts/static +graft servecerts/templates +global-exclude *.pyc + diff --git a/servecerts/__init__.py b/servecerts/__init__.py index c700a64..eb095a9 100644 --- a/servecerts/__init__.py +++ b/servecerts/__init__.py @@ -2,9 +2,7 @@ import os from flask import Flask -from flask_debugtoolbar import DebugToolbarExtension -from logging.handlers import RotatingFileHandler -import logging +#from flask_debugtoolbar import DebugToolbarExtension def create_app(test_config=None): diff --git a/servecerts/setup.py b/servecerts/setup.py new file mode 100644 index 0000000..bb6f94c --- /dev/null +++ b/servecerts/setup.py @@ -0,0 +1,12 @@ +from setuptools import find_packages, setup + +setup( + name='servecerts', + version='0.1.0', + packages=find_packages(), + include_package_data=True, + zip_safe=False, + install_requires=[ + 'flask', + ], +)