cd "$HOME/tmp/$project_name" &&
mv project "$project_name" &&
-replace -i "template project" "$project_name" README.txt setup.py &&
-replace project "$project_name" docs/genapidocs mk-distr publish-docs setup.py tox.ini &&
+replace '{project}' "$project_name" README.txt docs/genapidocs mk-distr \
+ publish-docs setup.py tox.ini &&
sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \
-v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs &&
-Broytman Template Project, Copyright (C) 2016 PhiloSoft Design
+Broytman {project}, Copyright (C) 2016 PhiloSoft Design
Author: Oleg Broytman <phd@phdru.name>
License: GPL
-This is a template project.
+This is {project}.
cd "`dirname $0`"/.. &&
exec sphinx-apidoc --separate --module-first --suffix=rst --force \
- --output-dir=docs/api project
+ --output-dir=docs/api {project}
umask 022 &&
-git archive --format=tar --prefix=project/ "${1:-HEAD}" |
+git archive --format=tar --prefix={project}/ "${1:-HEAD}" |
(cd "$HOME/tmp" && exec tar xf -) &&
-cp -ap docs "$HOME/tmp/project" &&
+cp -ap docs "$HOME/tmp/{project}" &&
-cd "$HOME/tmp/project" &&
+cd "$HOME/tmp/{project}" &&
chmod -R u=rwX,go=rX docs &&
python setup.py sdist --formats=bztar &&
-cd dist && mv project-*.tar.bz2 ../.. && cd ../.. && exec rm -rf project
+cd dist && mv {project}-*.tar.bz2 ../.. && cd ../.. && exec rm -rf {project}
#! /bin/sh
-web="$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/project/docs
+web="$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/{project}/docs
cd "`dirname \"$0\"`"/docs/_build/html &&
rsync -ahP --del * --exclude=objects.inv "$web" &&
from distutils.core import setup
is_setuptools = False
-versionpath = join(abspath(dirname(__file__)), 'project', '__version__.py')
-load_source('project_version', versionpath)
+versionpath = join(abspath(dirname(__file__)), '{{project}}', '__version__.py')
+load_source('{project}_version', versionpath)
# Ignore: E402 module level import not at top of file
-from project_version import __version__ # noqa
+from {project}_version import __version__ # noqa
-setup(name='Template project',
+setup(name='{{project}}',
version=__version__,
- description='Broytman Template Project',
+ description='Broytman {{project}}',
long_description=open('README.txt', 'rtU').read(),
author='Oleg Broytman',
author_email='phd@phdru.name',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
],
- packages=['project'],
- package_data={'project': []},
+ packages=['{{project}}'],
+ package_data={'{{project}}': []},
scripts=[],
requires=[],
)
[general]
commands =
- python /usr/local/bin/py.test --cov={envsitepackagesdir}/project
+ python /usr/local/bin/py.test --cov={envsitepackagesdir}/{project}
[testenv:py26]
commands = {[general]commands}
[testenv:py27-flake8]
deps =
flake8
-commands = flake8 project scripts tests
+commands = flake8 {project} scripts tests
[testenv:py34-flake8]
deps =
flake8
-commands = flake8 project scripts tests
+commands = flake8 {project} scripts tests