From 46226f0ca739ed42eac0cdbb4c4f1f593d14c2f6 Mon Sep 17 00:00:00 2001 From: Slava Date: Thu, 31 Mar 2016 11:09:22 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=20=D0=B7=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B5=D0=B9=20+=20?= =?UTF-8?q?=D1=88=D0=BE=D1=80=D1=82=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++-- Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 2808adfe..d0bcc440 100644 --- a/.gitignore +++ b/.gitignore @@ -12,9 +12,9 @@ logs/ Thumbs.db /proj/local.py static/client - +.DS_Store # gulp node_modules -npm-debug.log \ No newline at end of file +npm-debug.log diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8d97df39 --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +.PHONY: requirements requirements-upgrade freeze syncdb run run-public makemessages compilemessages collectstatic cloc clean user + +project_name=proj + +requirements: + -@echo "### Installing requirements" + -@pip install -r requirements.txt + +requirements-upgrade: + -@echo "### Upgrading requirements" + -@pip freeze | cut -d = -f 1 | xargs pip install -U + +freeze: + -@echo "### Freezing python packages to requirements.txt" + -@pip freeze > requirements.txt + +syncdb: + -@echo "### Creating database tables and loading fixtures" + @PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py syncdb --noinput + @PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py migrate + +run: + @PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py runserver + +run-public: + @PYTHONPATH=$(PYTHONPATH):. DJANGO_SETTINGS_MODULE=$(project_name).settings ipython manage.py runserver 0.0.0.0:8000 + +makemessages: + -@ipython manage.py makemessages --all + +compilemessages: + -@ipython manage.py compilemessages + +collectstatic: + @ipython manage.py collectstatic + +user: + -@ipython manage.py createsuperuser + +cloc: + -@echo "### Counting lines of code within the project" + -@echo "# Total:" ; find . -iregex '.*\.py\|.*\.js\|.*\.html\|.*\.css' -type f -exec cat {} + | wc -l + -@echo "# Python:" ; find . -name '*.py' -type f -exec cat {} + | wc -l + -@echo "# JavaScript:" ; find . -name '*.js' -type f -exec cat {} + | wc -l + -@echo "# HTML:" ; find . -name '*.html' -type f -exec cat {} + | wc -l + -@echo "# CSS:" ; find . -name '*.css' -type f -exec cat {} + | wc -l + +clean: + -@echo "### Cleaning *.pyc and .DS_Store files " + -@find . -name '*.pyc' -exec rm -f {} \; + -@find . -name '.DS_Store' -exec rm -f {} \; diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..911f1d62 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,52 @@ +awesome-slugify==1.6 +BeautifulSoup==3.2.1 +beautifulsoup4==4.4.0 +chardet==2.3.0 +defusedxml==0.4.1 +Django==1.5.12 +django-bitfield==1.6.4 +django-ckeditor==4.0.2 +django-crontab==0.6.0 +django-debug-toolbar==1.2.1 +django-haystack==2.1.0 +django-hvad==1.2.0 +django-model-utils==2.2 +django-multiupload==0.5 +django-redis==4.0.0 +django-redis-cache==0.13.1 +django-sortedm2m==1.2.0 +django-tinymce==2.0.5 +djutils==0.3.2 +docutils==0.12 +fpconst==0.7.2 +gnureadline==6.3.3 +html2text==2015.6.21 +ipython==2.2.0 +lxml==3.5.0b1 +MySQL-python==1.2.3 +oauthlib==0.6.1 +phonenumbers==6.0.0 +Pillow==2.5.3 +pylibmc==1.2.3 +pymorphy==0.5.6 +pysolr==3.2.0 +python-dateutil==2.2 +python-memcached==1.48 +python-openid==2.2.5 +python-social-auth==0.1.23 +pytils==0.3 +redis==2.10.1 +regex==2014.11.14 +requests==2.2.1 +requests-oauthlib==0.4.0 +six==1.6.1 +SOAPpy==0.12.22 +solid-i18n==1.1.1 +sorl-thumbnail==11.12.1b0 +South==0.8.4 +sqlparse==0.1.11 +Unidecode==0.4.16 +vobject==0.8.2 +wstools==0.4.3 +xlrd==0.9.2 +xlwt==0.7.5