Skip to content

Commit

Permalink
Cleanup "bootstrap" script and outdated wheels...
Browse files Browse the repository at this point in the history
  • Loading branch information
naspeh committed Feb 6, 2019
1 parent cf0212b commit b379fec
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 63 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Static site generator for [pusto.org](https://pusto.org) :)
18 changes: 0 additions & 18 deletions README.rst

This file was deleted.

2 changes: 0 additions & 2 deletions bootstrap

This file was deleted.

43 changes: 0 additions & 43 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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')\
Expand Down
Binary file removed wheels/Jinja2-2.7.3-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/MarkupSafe-0.23-cp34-cp34m-linux_x86_64.whl
Binary file not shown.
Binary file removed wheels/Pygments-2.0.2-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/docutils-0.12-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/lxml-3.4.3-cp34-cp34m-linux_x86_64.whl
Binary file not shown.
Binary file removed wheels/mistune-0.5.1-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/pytz-2014.10-py2.py3-none-any.whl
Binary file not shown.

0 comments on commit b379fec

Please sign in to comment.