Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.17.x into master (0.17.1 release) #5457

Merged
merged 76 commits into from
May 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
0c9bf72
prevent underneath body element from scrolling when scroll the sideba…
66eli77 Feb 14, 2017
5845d3c
Merge pull request #5410 from 66eli77/scroll
benjaoming Mar 17, 2017
cc68b86
Bump version + add release notes for upcoming 0.17.1
Mar 18, 2017
5beebce
Merge pull request #5422 from benjaoming/0.17.1-releasenotes
benjaoming Mar 19, 2017
c0d3302
Be less unclear, don't say "it should work"
Mar 27, 2017
08061e4
Be consequent about prefix for command line examples
Mar 31, 2017
cfecfc4
Add note about systemd fix + #5409 known issue
Mar 31, 2017
b438691
Merge pull request #5427 from benjaoming/docs-impro
benjaoming Mar 31, 2017
cbc6b07
Fix up some legacy code, removing PROJECT_PATH and invalid paths in '…
Apr 4, 2017
9177bde
Release note for #4104
Apr 4, 2017
a2576ac
Make tests compatible with Selenium 3.3+ and geckodriver 0.15
Apr 4, 2017
97b4a18
Remove unused 'code_tests', unconventional test pattern (it doesn't c…
Apr 4, 2017
4d3336c
Merge pull request #5429 from benjaoming/project_path
benjaoming Apr 6, 2017
573cf6a
Remove non-existing setting from documentation
Apr 6, 2017
fef4adf
Document USER_LOG_MAX_RECORDS_PER_USER #2462
Apr 6, 2017
86b92d5
Remove unused method get_attempt_logs
Apr 6, 2017
303e363
Add comment about #3403
Apr 6, 2017
b5f7bf9
Merge pull request #5431 from benjaoming/user-log-docs
benjaoming Apr 6, 2017
f0e4591
Add CreativeCommons attribution to docs footer
Apr 6, 2017
eaf65e2
Move README.rst into index.rst and remove online badges #4348
Apr 6, 2017
4adc311
Add community forums to README
Apr 6, 2017
7f2c941
Simplify documentation index page which was quite cluttered
Apr 6, 2017
5eafb67
Remove stale code from #4239
Apr 6, 2017
ba7cc0f
Merge pull request #5433 from benjaoming/various-fixes
benjaoming Apr 7, 2017
8da5fa5
Add comment about #3434 before closing
Apr 7, 2017
f7a4e80
Respect selected date range on tabular coach report #5022
Apr 7, 2017
dd2bd91
Make "total exercise attempts" sync up with sum of progress, struggli…
Apr 7, 2017
9f7175c
Merge pull request #5435 from benjaoming/fix-coachreports
benjaoming Apr 7, 2017
7533c59
Do not load video into memory to check its size, just use disk stats …
Apr 7, 2017
aa4f2e6
Merge pull request #5436 from benjaoming/file-read-in-memory
benjaoming Apr 9, 2017
7cc36ca
Improve docs chronology: Move uninstallation chapter to a separate se…
Apr 11, 2017
a5fbd46
Merge pull request #5439 from benjaoming/move-uninstall-docs
benjaoming Apr 12, 2017
5b6749b
Remove unused clean_pyc function from setup
Apr 10, 2017
6c26c87
Add comment about @mrpau-richard change in Django source code
Apr 10, 2017
b6a760b
Use logging for initialize_kalite and setup commands
Apr 10, 2017
b1e4714
Add some tests for kalite.cli
Apr 10, 2017
ae4a8b7
small cleanup in kalite.cli
Apr 10, 2017
5b3be8c
Errornous check pid==pid - correcting so we're strict about which KA …
Apr 10, 2017
7b18646
Cache database template across parallel build instances
Apr 10, 2017
17e2754
Release notes for #5441 [ci skip]
Apr 12, 2017
2d04de9
Merge pull request #5441 from benjaoming/setup-logging
benjaoming Apr 12, 2017
062188a
Remove unused coveralls config
Apr 12, 2017
7830225
Run coverage in parallel mode
Apr 12, 2017
d210931
Disable randomly failing Selenium-based BDD
Apr 12, 2017
39d7059
Ignore BDD feature steps in coverage
Apr 12, 2017
ea30be7
Rm unused module contentload.utils
Apr 12, 2017
d2d6ddf
Simplify circly.yml, gather coverage config in coveragerc
Apr 12, 2017
47fa033
Bump coverage to 4.x branch
Apr 12, 2017
e19d6f8
CircleCI Docs: 'Codecov will automatically handle the merging of cove…
Apr 12, 2017
485811e
Move kalitectl.py to be kalite.kalitectl and invoke in same interpret…
Apr 13, 2017
1c8218c
Remove unused file kalite.shared.exceptions
Apr 14, 2017
3cbc78d
Remove unused moduel kalite.shared.decorators.misc
Apr 14, 2017
f29a8b5
Can codecov report submission be parallel?
Apr 14, 2017
0a7ddde
Release note for #5430
Apr 14, 2017
53aa652
Release note for #5445 [skip ci]
Apr 14, 2017
150cb9b
Merge pull request #5445 from benjaoming/coverage-parallel2
benjaoming Apr 14, 2017
feecde0
Add missing dev dependency sphinx_rtd_theme
Apr 14, 2017
2e67b5a
Remove redundant kalite/packages/dist/Django-1.5.12-py2.7.egg-info #5419
Apr 14, 2017
5a42cbb
Release note for #5447 [skip ci]
Apr 14, 2017
0786c8c
Merge pull request #5447 from benjaoming/rm-django-dist
benjaoming Apr 14, 2017
5b61330
Add line breaks in buttons so text isn't cut
Apr 14, 2017
8bce7a7
Merge pull request #5448 from benjaoming/fix-button-wrap
benjaoming Apr 14, 2017
9e497df
Add log rotation for 30 days - fixes #4890
Apr 18, 2017
eab9df1
Remove this file, it's inaccurate and we do have some pretty conventi…
Apr 18, 2017
71a8d1c
Merge pull request #5450 from benjaoming/0.17.x
benjaoming Apr 18, 2017
4b181b9
Merge pull request #5449 from benjaoming/log-rotation
benjaoming Apr 18, 2017
dc36b4e
Update the macOS uninstallation documentation.
mrpau-eduard Apr 20, 2017
219d29a
squash @mrpau-eduard corrections for Mac OSX uninstall docs [ci skip]
Apr 22, 2017
9de02f5
Merge pull request #5453 from benjaoming/mrpau-eduard-osx-uninstall
benjaoming Apr 22, 2017
148b299
Add tar.gz sdist to default 'make release' target because its still used
Apr 26, 2017
9799176
Bump to 0.17.1rc1
Apr 26, 2017
759b7b9
Update release notes for 0.17.1 installers
May 3, 2017
253555e
Merge pull request #5456 from benjaoming/releasenotes-installers
benjaoming May 4, 2017
bdd7393
Known issue for #5172
May 4, 2017
21485d6
Test: Increase interval before terminating cherrypy because of timeou…
May 4, 2017
f6ce18c
Bump version for 0.17.1 release
May 4, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[paths]
source =
kalite/
[run]
source =
kalite/
omit =
kalite/*/features/steps/*
kalite/testing/*
kalite/*/tests/*
kalite/*/migrations/*
kalite/packages/*
kalite/__main__.py
kalite/store/*
kalite/project/settings/*
[report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:

2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ clean-build:
rm -fr dist/
rm -rf .kalite_dist_tmp
rm -fr .eggs/
rm -fr dist-packages/
rm -fr dist-packages-temp/
rm -fr .pip-temp/
rm -fr kalite/database/templates
rm -fr kalite/static-libraries/docs
find kalite/packages/dist/* -maxdepth 0 -type d -exec rm -fr {} +
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +

Expand Down Expand Up @@ -104,12 +104,16 @@ sdist: clean docs assets
# so we should delete those...
make clean-pyc
python setup.py sdist --formats=$(format) --static
python setup.py sdist --formats=$(format)

dist: clean docs assets
# python setup.py sdist --formats=$(format)
# Building assets currently creates pyc files in the source dirs,
# so we should delete those...
make clean-pyc
python setup.py sdist --formats=$(format)
python setup.py bdist_wheel
# python setup.py sdist --formats=$(format) --static
python setup.py bdist_wheel --static # --no-clean
python setup.py sdist --formats=$(format) --static
python setup.py bdist_wheel --static --no-clean
ls -l dist

install: clean
Expand Down
67 changes: 0 additions & 67 deletions PACKAGING.md

This file was deleted.

1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ future of KA Lite.
Connect
^^^^^^^

- Community forums: `community.learningequality.org <https://community.learningequality.org/>`__
- IRC: **#kalite** on Freenode
- Twitter: `@ka_lite <http://twitter.com/ka_lite>`__
- Mailing list: `[email protected] on Google Groups <https://groups.google.com/a/learningequality.org/forum/#!forum/dev>`__
Expand Down
17 changes: 5 additions & 12 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,17 @@ test:
- sudo mv geckodriver /home/ubuntu/bin
- export PATH="$PATH:/home/ubuntu/bin"
override:
- make assets
- make assets:
parallel: true
- make docs
- kalite start --traceback -v2
- sleep 6s # Necessary for server to be ready
- kalite status
- kalite stop --traceback -v2
- case $CIRCLE_NODE_INDEX in 0) coverage run --source=kalite --omit="kalite/testing/*,*/tests/*,*/migrations/*,kalite/packages/*" bin/kalite manage test --bdd-only ;; 1) coverage run --source=kalite --omit="kalite/testing/*,kalite/packages/*,*/tests/*,*/migrations/*" bin/kalite manage test --no-bdd;; esac:
- case $CIRCLE_NODE_INDEX in 0) coverage run bin/kalite manage test --bdd-only ;; 1) coverage run bin/kalite manage test --no-bdd;; esac:
parallel: true
# TODO: replace below with "make lint" when we're pep8
- npm install -g jshint
- jshint kalite/*/static/js/*/
post:
- bash <(curl -s https://codecov.io/bash)

notify:
webhooks:
- url: https://coveralls.io/webhook?repo_token=YWMKkAVqIigWxX8XerfykVab17vEKmdXO

general:
artifacts:
- 'coverage'
- bash <(curl -s https://codecov.io/bash):
parallel: true
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

# General information about the project.
project = u'KA Lite'
copyright = u'%d, Learning Equality' % datetime.now().year
copyright = u'%d, Learning Equality, licensed under a Creative Commons Attribution-ShareAlike 4.0 International License' % datetime.now().year

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
10 changes: 9 additions & 1 deletion docs/developer_docs/logging.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
Logging
=======

KA Lite application logs are stored in ``~/.kalite/logs/``. When going to daemon
mode using ``kalite start``, all outputs are additionally stored in
``~/.kalite/server.log``, which may contain more crash information for the last
running instance.

In Python, please always log to ``logging.getLogger(__name__)``! Fore more
information on how logging is setup, refer to ``kalite.settings.base.LOGGING``.

If you wish to view output from the server, you have a few options:

* Start the server with ``kalite start --foreground``. This will start the server using CherryPy and a single thread, with output going to your terminal.
* Start the server in development mode ``kalite manage runserver --settings=kalite.project.settings.dev`` (this doesn't start the job scheduler).
* Run the normal mode ``kalite start``, and check ``~/.kalite/server.log`` for output.

12 changes: 12 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Frequently Asked Questions
==========================

Something isn't working - does KA Lite have log files?
------------------------------------------------------

It's very important to get more technical information if KA Lite is not working
or crashing.

Have a look at ``~/.kalite/logs`` (on Windows, locate something like
``C:\Documents and Settings\<username>\.kalite``), where you will find the log
files which KA Lite writes to while it's running. If KA Lite has crashed, have
look at the latest log file. You can also refer to ``~/.kalite/server.log``
which may in some cases contain more information regarding a crash.

How do I install KA Lite?
-------------------------

Expand Down
63 changes: 60 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
contain the root `toctree` directive.

KA Lite Documentation
===================================
=====================

by `Learning Equality <https://learningequality.org/>`__


Welcome to the KA Lite Documentation page! Here, you will find all the
information needed to set up the KA Lite software. Additionally, there's
Expand All @@ -15,13 +18,67 @@ check our `Forums`_!

.. _Forums: https://community.learningequality.org/

Main sections
-------------

.. toctree::
:maxdepth: 2
:maxdepth: 1

Installation Guide <installguide/install_main>
User Manual <usermanual/userman_main>
FAQ <faq>
Developer Docs <developer_docs/index>


.. include:: ../README.rst
About KA Lite
-------------

`Khan Academy <http://www.khanacademy.org/>`__'s core mission is to
"provide a free world-class education for anyone anywhere", and as over `60%
of the world's population is without access to the
internet <http://en.wikipedia.org/wiki/Global_Internet_usage>`__,
primarily in the developing world, providing an alternative delivery
mechanism for Khan Academy content is key to fulfilling this mission.

`KA Lite <http://kalite.learningequality.org/>`__ is a lightweight
`Django <https://www.djangoproject.com/>`__ web app for serving core
Khan Academy content (videos and exercises) from a local server, with
points and progress-tracking, without needing internet connectivity.


Get involved!
-------------

- Learn how you can contribute code on our `KA Lite GitHub Wiki <https://github.com/learningequality/ka-lite/wiki>`__
- Report bugs by `creating issues <https://github.com/learningequality/ka-lite/wiki/Report-Bugs-by-Creating-Issues>`__
- Read more about the project's motivation at `Introducing KA Lite, an offline version of Khan
Academy <http://jamiealexandre.com/blog/2012/12/12/ka-lite-offline-khan-academy/>`__.


Connect
^^^^^^^

- Community forums: `community.learningequality.org <https://community.learningequality.org/>`__
- IRC: **#kalite** on Freenode
- Twitter: `@ka_lite <http://twitter.com/ka_lite>`__
- Mailing list: `[email protected] on Google Groups <https://groups.google.com/a/learningequality.org/forum/#!forum/dev>`__

Contact Us
^^^^^^^^^^

Tell us about your project and experiences!

- Email: [email protected]
- Add your project to the map: https://learningequality.org/ka-lite/map/

License information
-------------------

The KA Lite sourcecode itself is open-source `MIT
licensed <http://opensource.org/licenses/MIT>`__, and the other included
software and content is licensed as described in the
`LICENSE <https://raw.github.com/learningequality/ka-lite/master/LICENSE>`__
file. Please note that KA Lite is not officially affiliated with, nor
maintained by, Khan Academy, but rather makes use of Khan Academy's open
API and Creative Commons content, which may only be used for
non-commercial purposes.
17 changes: 9 additions & 8 deletions docs/installguide/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Installing through pip or with setup.py
For command line users with access to pip, you can install KA Lite from an
online source like this::

$> pip install ka-lite
pip install ka-lite


Static version
Expand All @@ -30,7 +30,7 @@ Static version
If you need to run KA Lite with static dependencies bundled and isolated from
the rest of your environment, you can run::

$> pip install ka-lite-static
pip install ka-lite-static


Portable tarballs / zip files with setup.py
Expand All @@ -43,11 +43,11 @@ To unpack the package for installation, run:

.. parsed-literal::

$> tar -xf ka-lite-static-|release|.tar.gz
tar -xf ka-lite-static-|release|.tar.gz

Once it's unpacked, install it by entering the extracted directory and running::

$> sudo python setup.py install
sudo python setup.py install

Beware that the PyPi sources do not contain assessment items, so you need to
:url-pantry:`download the contentpack en.zip manually <content/contentpacks/en.zip>` (>700 MB)..
Expand All @@ -61,7 +61,8 @@ _________________________________________________
We maintain a `PPA on Launchpad <https://launchpad.net/~learningequality/+archive/ubuntu/ka-lite>`_
and if you are connected to the internet, this will also give you automatic updates.

On Ubuntu, do this::
To add the PPA as a repository on an apt-based system, you need to ensure that a few libraries are present, and then add our repository and the public key that packages are signed with::


sudo apt-get install software-properties-common python-software-properties
sudo su -c 'echo "deb http://ppa.launchpad.net/learningequality/ka-lite/ubuntu xenial main" > /etc/apt/sources.list.d/ka-lite.list'
Expand Down Expand Up @@ -152,7 +153,7 @@ it may be located somewhere else.

Example of setting up kalite for the www-data user: ::

$> sudo su -s /bin/bash www-data
$> kalite manage setup
$> exit
sudo su -s /bin/bash www-data
kalite manage setup
exit

Loading