diff --git a/.gitignore b/.gitignore index 11aed47f..cca8b538 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target /Cargo.lock /doc +/gh-pages diff --git a/Cargo.toml b/Cargo.toml index 5f0fd364..b23b346a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,20 @@ name = "cpython" version = "0.0.1" description = "Bindings to Python 2.7" authors = ["Daniel Grunwald "] +readme = "README.md" +keywords = [ + "python", + "cpython", + "libpython27", +] +homepage = "https://github.com/dgrunwald/rust-cpython" +repository = "https://github.com/dgrunwald/rust-cpython.git" +documentation = "http://dgrunwald.github.io/rust-cpython/doc/cpython/" +license = "MIT" +exclude = [ + ".gitignore", + ".travis.yml", +] [dependencies] python27-sys="*" diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..494150ff --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +.PHONY: default build test doc extensions clean + +default: test extensions + +build: + cargo build + +test: build + cargo test + +doc: build + cargo doc --no-deps + +extensions: build + make -C extensions/ + +clean: + rm -r target + make -C extensions/ clean + +gh-pages: + git checkout --branch gh-pages git@github.com:dgrunwald/rust-cpython.git + +.PHONY: gh-pages-doc +gh-pages-doc: doc | gh-pages + cd gh-pages && git pull + rm -r gh-pages/doc + cp -r target/doc gh-pages/ + rm gh-pages/doc/.lock + cd gh-pages && git add . + cd gh-pages && git commit -m "Update documentation" + +publish: default gh-pages-doc + cargo publish + cd gh-pages && git push + diff --git a/README.md b/README.md index 0e1a96e0..1220806e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ rust-cpython [![Build Status](https://travis-ci.org/dgrunwald/rust-cpython.svg?b [Rust](http://www.rust-lang.org/) bindings for the [python](https://www.python.org/) interpreter. -* [Documentation](http://www.rust-ci.org/dgrunwald/rust-cpython/doc/cpython/) +* [Documentation](http://dgrunwald.github.io/rust-cpython/doc/cpython/) * Cargo package: [cpython](https://crates.io/crates/cpython) ---