diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ecee5e --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Static site generator for [pusto.org](https://pusto.org) :) diff --git a/README.rst b/README.rst deleted file mode 100644 index 52b9fed..0000000 --- a/README.rst +++ /dev/null @@ -1,18 +0,0 @@ -Bootstrap ---------- -Requires: - - Python >= 3.3; - - pip >= 1.4 (with wheel support); - -Steps: - - create virtualenv and activate it; - - run ``./bootsrap``. - - -Usage ------ -Use ``./pusto.py --help`` for information. - -.. TODO: - - set current url to `meta.json:aliases` - - check valid urls on pages diff --git a/bootstrap b/bootstrap deleted file mode 100755 index 1ac8175..0000000 --- a/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -pip install -f ../wheels -r requirements.txt diff --git a/manage.py b/manage.py index da2e44a..9990de0 100755 --- a/manage.py +++ b/manage.py @@ -17,36 +17,6 @@ def sh(cmd): -def reqs(dev, clear, wheels): - requirements = ( - 'Jinja2 ' - 'Pygments ' - 'docutils ' - 'lxml ' - 'mistune ' - 'pytz ' - ) - requirements += ( - 'pytest ' - 'ptpdb ' - ) if dev else '' - - sh('[ -d "$VIRTUAL_ENV" ] || (echo "ERROR: no virtualenv" && exit 1)') - sh( - ( - 'rm -rf $VIRTUAL_ENV && virtualenv $VIRTUAL_ENV && ' - if clear else '' - ) + - 'wheels="../wheels" &&' - 'pip install wheel && ' - 'pip wheel -w $wheels -f $wheels {requirements} &&' - 'pip uninstall -y wheel &&' - 'pip install --no-index -f $wheels {requirements}' - .format(requirements=requirements) - ) - not dev and sh('pip freeze | sort > requirements.txt') - - def process_args(): parser, cmd = pusto.get_parser() @@ -58,19 +28,6 @@ def process_args(): .format('root@h1.pusto.org') )) - cmd('reqs', help='update python requirements')\ - .arg('-d', '--dev', action='store_true')\ - .arg('-c', '--clear', action='store_true')\ - .arg('-w', '--wheels', default='../wheels')\ - .exe(lambda a: reqs(a.dev, a.clear, a.wheels)) - - cmd('docker', help='run docker container with nginx')\ - .exe(lambda a: sh( - 'docker run' - ' -d -v $(pwd):/var/www -p 80:80 --name=pusto' - ' pusto /bin/nginx' - )) - cmd('napokaz', help='napokaz updater')\ .arg('--push', action='store_true')\ .arg('--init', action='store_true')\ diff --git a/wheels/Jinja2-2.7.3-py3-none-any.whl b/wheels/Jinja2-2.7.3-py3-none-any.whl deleted file mode 100644 index c99e2b7..0000000 Binary files a/wheels/Jinja2-2.7.3-py3-none-any.whl and /dev/null differ diff --git a/wheels/MarkupSafe-0.23-cp34-cp34m-linux_x86_64.whl b/wheels/MarkupSafe-0.23-cp34-cp34m-linux_x86_64.whl deleted file mode 100644 index d6512a4..0000000 Binary files a/wheels/MarkupSafe-0.23-cp34-cp34m-linux_x86_64.whl and /dev/null differ diff --git a/wheels/Pygments-2.0.2-py3-none-any.whl b/wheels/Pygments-2.0.2-py3-none-any.whl deleted file mode 100644 index 0e3d5d1..0000000 Binary files a/wheels/Pygments-2.0.2-py3-none-any.whl and /dev/null differ diff --git a/wheels/docutils-0.12-py3-none-any.whl b/wheels/docutils-0.12-py3-none-any.whl deleted file mode 100644 index 0dbfe2f..0000000 Binary files a/wheels/docutils-0.12-py3-none-any.whl and /dev/null differ diff --git a/wheels/lxml-3.4.3-cp34-cp34m-linux_x86_64.whl b/wheels/lxml-3.4.3-cp34-cp34m-linux_x86_64.whl deleted file mode 100644 index 07fc45d..0000000 Binary files a/wheels/lxml-3.4.3-cp34-cp34m-linux_x86_64.whl and /dev/null differ diff --git a/wheels/mistune-0.5.1-py2.py3-none-any.whl b/wheels/mistune-0.5.1-py2.py3-none-any.whl deleted file mode 100644 index f7de10e..0000000 Binary files a/wheels/mistune-0.5.1-py2.py3-none-any.whl and /dev/null differ diff --git a/wheels/pytz-2014.10-py2.py3-none-any.whl b/wheels/pytz-2014.10-py2.py3-none-any.whl deleted file mode 100644 index 9a63fb2..0000000 Binary files a/wheels/pytz-2014.10-py2.py3-none-any.whl and /dev/null differ