Using markment for docs

This commit is contained in:
Gabriel Falcao
2013-07-05 14:55:16 -04:00
parent 1147f86ed9
commit cb4cb98b53
5 changed files with 84 additions and 0 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ dist/
.#*
#*
.tox/
_public/

18
.markment.yml Normal file
View File

@@ -0,0 +1,18 @@
project:
name: "HTTPretty"
version: 0.6.2
description: HTTP client mock for Python
github_maintainer: gabrielfalcao
github_maintainer_name: Gabriel Falcão
github_maintainer_url: http://github.com/gabrielfalcao
github_maintainer_gravatar: https://secure.gravatar.com/avatar/3fa0df5c54f5ac0f8652d992d7d24039?s=64
github_url: http://github.com/gabrielfalcao/HTTPretty
github_fork_url: https://github.com/gabrielfalcao/HTTPretty/archive/master.tar.gz
tarball_download_url: https://github.com/gabrielfalcao/HTTPretty/archive/master.tar.gz
zipball_download_url: https://github.com/gabrielfalcao/HTTPretty/archive/master.zip
full_index: true
documentation:
index: README.md

24
.release Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
current_version=$(cat spec/.markment.yml | egrep version | sed 's,^[^:]*: *,,g')
printf "The current version is \033[1;33m$current_version\033[0m, type the new version:\n"
read newversion
find_files () {
find * -name '*.py' -or -name '*.yml'
}
update_files (){
find_files | xargs gsed -i "s,$current_version,$newversion,g"
}
printf "\033[A\033[A\rI will make a new commit named \033[1;33m'New release $newversion'\033[0m\n"
printf "Are you sure? [\033[1;32myes\033[0m or \033[1;31mno\033[0m]\n"
read sure
if [ $sure == "yes" ]; then
update_files
printf "New release: \033[1;32m$newversion\033[0m\n"
git add `find_files`
git commit -am "New release: $newversion"
fi;

View File

@@ -32,4 +32,16 @@ clean:
release: clean unit functional
@echo "Releasing httpretty..."
@./.release
@python setup.py sdist register upload
docs: docstests
@markment -o . -t HTTPretty --sitemap-for="http://falcao.it/HTTPretty" .
@git co master && \
(git br -D gh-pages || printf "") && \
git checkout --orphan gh-pages && \
markment -o . -t HTTPretty --sitemap-for="http://falcao.it/HTTPretty" . && \
git add . && \
git commit -am 'documentation' && \
git push --force origin gh-pages && \
git checkout master

29
requirements.txt Normal file
View File

@@ -0,0 +1,29 @@
bolacha==0.6.0
couleur==0.5.0
coverage==3.5.3
cssselect==0.8
distribute==0.6.30
Flask==0.9
httplib2==0.7.6
ipdb==0.7
ipython==0.13.1
Jinja2==2.6
lxml==3.1.2
markment==0.2.14
misaka==1.0.2
mock==1.0.1
multiprocessing==2.6.2.1
nose==1.2.1
py==1.4.12
Pygments==1.6
python-qt==0.50
PyYAML==3.10
redis==2.7.1
requests==1.1.0
speakers==0.0.3
steadymark==0.4.5
sure==1.2.1
tornado==2.4
tox==1.4.2
virtualenv==1.8.2
Werkzeug==0.9.1