diff --git a/doc/COPYING.txt b/COPYING.txt similarity index 100% rename from doc/COPYING.txt rename to COPYING.txt diff --git a/README.rst b/README.rst index 7d3020c..9df9460 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,7 @@ justCheckers - README! About the Project ----------------- -*justCheckers* is an advanced open source checkers game for Android. The aim of +*justCheckers* is an advanced, cross-platform open source checkers game. The aim of the project is to make a game capable of supporting: - Skinning @@ -23,4 +23,5 @@ Links ----- - Project website: http://justcheckers.org/ -- Project @ Github: https://github.com/dorianpula/justcheckers \ No newline at end of file +- Project @ Github: https://github.com/dorianpula/justcheckers + diff --git a/justcheckers/__init__.py b/justcheckers/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/justcheckers/app.py b/justcheckers/app.py new file mode 100644 index 0000000..2df847f --- /dev/null +++ b/justcheckers/app.py @@ -0,0 +1,23 @@ +import sys + +from PySide.QtCore import * +from PySide.QtGui import * +from PySide.QtDeclarative import QDeclarativeView + +def main(): + # Create app + app = QApplication(sys.argv) + + # Setup the QML declartive view + view = QDeclarativeView() + menu_view_url = QUrl('menu_view.qml') + view.setSource(menu_view_url) + view.show() + + # Enter app loop + app.exec_() + sys.exit() + +if __name__ == '__main__': + main() + diff --git a/justcheckers/menu_view.qml b/justcheckers/menu_view.qml new file mode 100644 index 0000000..e1bcbd2 --- /dev/null +++ b/justcheckers/menu_view.qml @@ -0,0 +1,13 @@ +import QtQuick 1.0 + +Rectangle { + width: 200 + height: 200 + color: "red" + + Text { + text: "justCheckers" + anchors.centerIn: parent + } +} + diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..c079073 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +# Requirements for developing the justCheckers app +Sphinx>=1.2.2 +nose>=1.3.0 + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..02bcee0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +invoke +PySide==1.2.2 + diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..585ae8e --- /dev/null +++ b/tasks.py @@ -0,0 +1,17 @@ +import os +from os import path + +from invoke import task, run + +@task +def docs(): + build_dir = '_build' + if not path.exists(build_dir): + os.mkdir(build_dir) + run('sphinx-build -b slides . _build') + +@task +def clean(): + run('rm *.pyc') + run('rm _build -rv') +