Initial commit

This commit is contained in:
2013-10-19 09:53:37 -04:00
parent 9b83e26ec3
commit 9895e8efbf
8 changed files with 99 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
virtualenv

40
Makefile Normal file
View File

@@ -0,0 +1,40 @@
MAJOR:=$(shell bash -c 'source version.sh ; echo $$MAJOR')
BUILD:=$(shell bash -c 'source version.sh ; echo $$BUILD')
OS_NAME:=$(shell bash -c 'source version.sh ; echo $$OS_NAME')
ifeq "$(OS_NAME)" "win"
PIP=$(shell pwd)/virtualenv/Scripts/pip
SDIST_EXT=zip
VIRTUALENV_PKGS_DIR=$(shell pwd)/virtualenv/Lib/site-packages
else
PIP=$(shell pwd)/virtualenv/bin/pip
SDIST_EXT=tar.gz
VIRTUALENV_PKGS_DIR=$(shell pwd)/virtualenv/lib/site-packages
endif
VIRTUALENV=$(shell which virtualenv)
PYTHON=$(shell which python)
PYTHON_FILES=setup.py mercy/version.py $(shell find mercy -iname "*py")
PYTHON_SDIST=./dist/mercy-$(MAJOR)-$(BUILD).$(SDIST_EXT)
.PHONY: virtualenv
virtualenv:
$(VIRTUALENV) --no-site-packages --distribute virtualenv
.PHONY: clean
clean:
rm -fr dist/*
find mercy -iname "*pyc" -exec rm -vf \{\} \;
sdist: $(PYTHON_SDIST)
mercy/version.py: version.sh
source version.sh && echo "VERSION=\"$${MAJOR}-$${BUILD}\"" > $@
$(PYTHON_SDIST): $(PYTHON_FILES)
$(PYTHON) setup.py sdist
uninstall:
rm -fr $(VIRTUALENV_PKGS_DIR)/mercy-* || echo 'not installed'
install: $(PYTHON_SDIST)
$(PIP) install $(PYTHON_SDIST) --upgrade

View File

@@ -0,0 +1,4 @@
import flask
class MercyApplication(flask.Flask):
pass

0
mercy/__init__.py Normal file
View File

1
mercy/version.py Normal file
View File

@@ -0,0 +1 @@
VERSION="0.0-0"

7
scripts/mercy_app.py Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python
from mercy.MercyApplication import MercyApplication
if __name__ == "__main__":
app = MercyApplication("mercy")
app.run()

31
setup.py Normal file
View File

@@ -0,0 +1,31 @@
from distutils.core import setup
import mercy.version
import os
import sys
if __name__ == "__main__":
setup(
name="mercy",
url="https://www.github.com/akesterson/mercy",
version=mercy.version.VERSION,
description="A flask application that facilitates paying for prescriptions",
long_description="",
author=("Andrew Kesterson"),
author_email="andrew@aklabs.net",
license="MIT",
install_requires=["flask", "sqlalchemy"],
scripts=[],
packages=["mercy"],
data_files=[],
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Healthcare Industry',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Topic :: Other/Nonlisted Topic',
],
)

15
version.sh Normal file
View File

@@ -0,0 +1,15 @@
TAG="build,0.0,0"
BRANCH="master"
MAJOR="0.0"
BUILD="0"
SHA1="9b83e26ec3d0e3d1526a4226a8ac0c8580a77bcf"
OS_NAME="${OS_NAME:-win}"
OS_VERSION="${OS_VERSION:-}"
ARCH="${ARCH:-i686}"
VERSION="0.0-0"
BUILDHOST="akesterson-pc"
BUILDUSER="akesterson-pc\akesterson"
BUILDDIR="/c/Users/akesterson/source/upstream/git/akesterson/mercy"
SOURCE="git@github.com:akesterson/mercy.git"
REBUILDING=0
CHANGELOG=""