From b3138ebe3e8ff9ec346d392d90645e35c75c93d2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 18 May 2016 21:03:59 +0100 Subject: [PATCH] Setup project --- requirements.txt | 3 +++ scripts/build | 14 ++++++++++++++ setup.py | 14 ++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 requirements.txt create mode 100755 scripts/build create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..48f0e1a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +click==6.6 +flake8==2.5.4 +python-yubico==1.3.2 diff --git a/scripts/build b/scripts/build new file mode 100755 index 0000000..e0c32dc --- /dev/null +++ b/scripts/build @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +pyvenv env + +export PATH=env/bin:${PATH} + +env/bin/pip install -r requirements.txt + +echo "Installing into virtualenv..." +source env/bin/activate +pip install --editable . +deactivate diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3b2376f --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from setuptools import setup + +setup( + name='yubi-lock', + version='1.0', + install_requires=[ + 'click', + 'python-yubico' + ], + entry_points=''' + [console_scripts] + yubi-lock=yubi_lock.cli:cli + ''', +)