diff --git a/.gitignore b/.gitignore index b8121a2..e6fee5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ -**/.DS_Store -nbproject -manifest.mf -build.xml - -.project -.settings -.idea/* +*.egg-info +*~ +*.pot +*.py[co] +MANIFEST +dist/ +docs/_build/ +tests/coverage_html/ +tests/.coverage +build/ \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..a93a51f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +recursive-include * * +recursive-exclude .git * +recursive-exclude wheel* * +recursive-exclude build * +recursive-exclude dist * +recursive-exclude ci_scripts * diff --git a/PACKAGE_NAME b/PACKAGE_NAME new file mode 100644 index 0000000..cd0b517 --- /dev/null +++ b/PACKAGE_NAME @@ -0,0 +1 @@ +django_angular_treeRepeat \ No newline at end of file diff --git a/README.md b/README.md index 6c21945..fbfec69 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Recursive repeater for AngularJS ## or how to build a tree by hand + +[ ![Codeship Status for CaseRails/django-angular-treeRepeat](https://www.codeship.io/projects/f88a4640-5d62-0131-692d-2a0738b6ecf1/status?branch=master)](https://www.codeship.io/projects/11978) + Demo is here : http://tchatel.github.io/angular-treeRepeat/ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/js/directives.js b/app/js/directives.js index c67e221..1cfa16d 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1,6 +1,9 @@ 'use strict'; +// Don't push this change upstream; it just attaches the +// tree directives to the CaseRails app rather than the demo app. +angular.module('caserailsApp.directives') +// End: Don't push -angular.module('app.directives', []) // Main directive, that just publish a controller .directive('tree', function ($parse, $animate) { diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f05bad4 --- /dev/null +++ b/build.sh @@ -0,0 +1,37 @@ +set -xe +# +# Check if PACKAGE_NAME is set, if not, load it from the file PACKAGE_NAME +# +if [ -z "$PACKAGE_NAME" ] + then + echo "Setting PACKAGE_NAME from file." + export PACKAGE_NAME=`cat PACKAGE_NAME` +fi + +# +# Build and install ci_scripts +# +mkdir -p ~/.pip_cache +export ORIGINAL_HOME=`pwd` +export ORIGINAL_PACKAGE_NAME=$PACKAGE_NAME +export PIP_DOWNLOAD_CACHE=~/.pip_cache/ +export PIP_FIND_LINKS="$PIP_DOWNLOAD_CACHE" +pip install --upgrade pip setuptools setuptools_git +export PIP=`which pip` +git clone https://github.com/CaseRails/ci_scripts.git +cd ci_scripts +./build.sh +./test.sh +cd $ORIGINAL_HOME +export PACKAGE_NAME=$ORIGINAL_PACKAGE_NAME +$PIP install ci_scripts +# +# End installation of ci_scripts +# +python setup.py clean +#python setup.py bdist_wheel +#python setup.py bdist_egg +python setup.py sdist +#cp dist/*.egg $PIP_DOWNLOAD_CACHE +#cp dist/*.whl $PIP_DOWNLOAD_CACHE +cp dist/* $PIP_DOWNLOAD_CACHE diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..78900e7 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +set -e +export PIP_DOWNLOAD_CACHE=~/.pip_cache/ +export PIP_FIND_LINKS="$PIP_DOWNLOAD_CACHE" +pip install --upgrade $PACKAGE_NAME +echo "from ci_scripts import deploy" | python diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..aabe1dd --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from setuptools import setup, find_packages + +setup( + name='django_angular_treeRepeat', + version='0.0.1', + packages=['django_angular_treeRepeat'], + package_dir={'django_angular_treeRepeat':'.'}, + package_data={'django_angular_treeRepeat':['static/treeRepeat/js/*.js',],}, + zip_safe=False, + platforms='any', + setup_requires=('ci_scripts'), + install_requires=('ci_scripts'), + +) diff --git a/static/treeRepeat/js b/static/treeRepeat/js new file mode 120000 index 0000000..1cc8d3c --- /dev/null +++ b/static/treeRepeat/js @@ -0,0 +1 @@ +../../app/js \ No newline at end of file diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..2e9fcc7 --- /dev/null +++ b/test.sh @@ -0,0 +1,5 @@ +set -e +export PIP_DOWNLOAD_CACHE=~/.pip_cache/ +export PIP_FIND_LINKS="$PIP_DOWNLOAD_CACHE" +pip install --upgrade $PACKAGE_NAME +echo "import $PACKAGE_NAME; print 'Hello World';" | python diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..73709ba --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +Testing