/pyconca

Primary LanguageJavaScript

pyconca Website

Build status

Getting Started

~$ virtualenv -p python2.7 env-pyconca
~$ source env-pyconca/bin/activate
(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ pip install -r requirements.txt
Cleaning up...
(env-pyconca)~/workspace/pyconca$ python setup.py develop
Finished processing dependencies for pyconca==0.0
(env-pyconca)~/workspace/pyconca$ ./reset
(env-pyconca)~/workspace/pyconca$ ./run
serving on http://0.0.0.0:6543

If you are more comfortable with Makefiles you can do the following

~$ virtualenv -p python2.7 env-pyconca
~$ source env-pyconca/bin/activate
(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ make setup
(env-pyconca)~/workspace/pyconca$ ./run
serving on http://0.0.0.0:6543

Updating the French/English Text

(env-pyconca)~/workspace/pyconca$ python setup.py extract_messages
(env-pyconca)~/workspace/pyconca$ python setup.py update_catalog
edit pyconca/locale/fr/LC_MESSAGES/pyconca.po
edit pyconca/locale/en/LC_MESSAGES/pyconca.po
(env-pyconca)~/workspace/pyconca$ python setup.py compile_catalog

Testing

If you are so inclined to help test here is a quick way to get started running the tests

(env-pyconca)~$ cd workspace/pyconca/
(env-pyconca)~/workspace/pyconca$ make test
test_index_logged_in_admin (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_logged_in_speaker (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_not_logged_in (pyconca.tests.test_talk_api.TestTalkApi) ... ok
test_index_logged_in_admin (pyconca.tests.test_index.TestIndexFunctional) ... ok
test_index_logged_in_speaker (pyconca.tests.test_index.TestIndexFunctional) ... ok
test_index_not_logged_in (pyconca.tests.test_index.TestIndexFunctional) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.080s