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 #5412

Merged
merged 468 commits into from
Feb 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
468 commits
Select commit Hold shift + click to select a range
a5e87ac
Add a few more references in docs [ci skip]
Oct 2, 2016
b0e9bf0
Remove unfinished dbbackup implementation, prefer to just advice copy…
Oct 2, 2016
9dabbbd
Rename 'Delete Subtitles' to simply 'Delete' - fixes #5232
Oct 2, 2016
8bd778d
Merge pull request #5310 from benjaoming/remove-dbbackup
benjaoming Oct 2, 2016
e43d079
Merge branch '0.16.x' into develop
Oct 2, 2016
8e7dbb4
Merge pull request #5313 from benjaoming/develop
benjaoming Oct 2, 2016
55c101f
Merge pull request #5309 from benjaoming/feature-developer-docs
benjaoming Oct 3, 2016
ba34b09
Add setting HIDE_CONTENT_RATING - fixes #5104
Oct 3, 2016
dc05da6
Document HIDE_CONTENT_RATING setting [ci skip]
Oct 3, 2016
9254958
Merge pull request #5311 from benjaoming/bug/delete-language-butotn
benjaoming Oct 3, 2016
33497ae
Merge pull request #5312 from benjaoming/hide-feedback
benjaoming Oct 3, 2016
8cc9380
Remove watchify code from cli, it belongs in runserver (which works!)
Oct 3, 2016
9d3f713
Special little hotfix for signup page redirect - fixes #3926
Oct 3, 2016
601bdbc
Add release notes for #3926 [ci skip]
Oct 3, 2016
eb068e0
Merge pull request #5314 from benjaoming/remove-watchify-from-cli
benjaoming Oct 3, 2016
05c6e5c
Merge pull request #5315 from benjaoming/redirect-signup-login
benjaoming Oct 3, 2016
31c32c6
Move some developer-oriented release notes to code cleanup [ci skip]
Oct 4, 2016
e4bd996
Merge pull request #5320 from benjaoming/release-note-updates
benjaoming Oct 4, 2016
2a186a9
Add possibility to use patterns of own choice to content packs to all…
Oct 6, 2016
908070e
Merge pull request #5322 from benjaoming/well-known-contentpack-filen…
benjaoming Oct 7, 2016
930ab1d
Fix Syntax Error sprintf unexpected placeholder
mrpau-eduard Oct 7, 2016
1dd6bcf
Use of `parseInt ` to parses a string and returns an integer
mrpau-eduard Oct 10, 2016
df40c79
Fix error changes
mrpau-eduard Oct 10, 2016
f29432a
Remove space (" "), don't use parseInt on the float.
benjaoming Oct 10, 2016
57de221
Merge pull request #5323 from mrpau/hotfix/5321-progress_bar_is_missi…
benjaoming Oct 10, 2016
ddf1aed
Add release notes for #5323
Oct 10, 2016
b519b09
Add section regarding changes in learningequality/installers#425
Oct 10, 2016
673fd4d
Merge pull request #5327 from benjaoming/release-notes-deb
benjaoming Oct 12, 2016
7f8104b
Merge pull request #5325 from benjaoming/release-notes
benjaoming Oct 12, 2016
6c31f13
Remove .gitmodules file causing RTD to break
Nov 14, 2016
cde79ba
Remove unused submodule for RTD to build
Nov 16, 2016
d4a5df7
Release note concerning the .whl windows update https://github.com/le…
Nov 17, 2016
08a6e22
Amendment: Python 2.7.12 will be bundled with Windows
Nov 17, 2016
d2b59f9
Fix typo [ci skip]
Nov 21, 2016
5d5928f
Merge pull request #5338 from benjaoming/release-note-windows
benjaoming Nov 21, 2016
181e5a9
ability to change language via url redirect, added docstring
needlestack Nov 24, 2016
67d6ad5
Prepare a device for cloning: Management command for clearing user data
Nov 25, 2016
2841fa8
Don't use flush management - disappears in django 1.6
Nov 25, 2016
6ee758c
Add release note
Nov 25, 2016
aa6181b
Merge pull request #5343 from benjaoming/clearuserdata
benjaoming Nov 25, 2016
9e2957b
fixed to redirect to front page (instead of error out) if no args are…
needlestack Nov 25, 2016
884b26d
Merge pull request #5342 from rachelproject/change_language_via_url_r…
benjaoming Nov 26, 2016
9605a64
Comments and release notes about #5342
Nov 26, 2016
950d1f0
Merge pull request #5344 from benjaoming/release-note
benjaoming Nov 28, 2016
5a2edf6
Cautiously upgrade CherryPy to 3.3.0 - fixes #5317
Nov 29, 2016
2892094
Merge pull request #5346 from benjaoming/static-caching
benjaoming Nov 29, 2016
ff22c65
Loading subtitles with DEBUG=True
Nov 30, 2016
e6f984b
Use vtt.js from mozilla's master branch
Nov 30, 2016
c99cb4e
Stop downloading minimal content pack
Nov 30, 2016
feb5f23
Use patched versions of videojs and vtt.js for Firefox 50 compatibility
Dec 1, 2016
502bcee
Ensure that srt dir is created because of collectstatic
Dec 1, 2016
d41f9e6
Retrieve minimal content pack for testing purposes, remove unmaintain…
Dec 1, 2016
0e665f1
Merge pull request #5349 from benjaoming/videojs-upgrade
benjaoming Dec 1, 2016
b4f778a
Experiment with universal user-oriented js error handling
Oct 2, 2016
81beba9
Fix test
Oct 2, 2016
ba711aa
Improve user-facing error message
Dec 1, 2016
0969659
Merge pull request #5308 from benjaoming/feature/universal-js-error-h…
benjaoming Dec 1, 2016
99c3480
Remove unused import, unresolved names, and unused variables
Dec 1, 2016
d612294
Add retrievecontentpack empty
Dec 1, 2016
11e7206
Make circle use the empty content pack
Dec 1, 2016
89e70d5
Fly-by addition to PR template [ci skip]
Dec 1, 2016
5790fbf
Switch back to having "assets" make target write the content.db template
Dec 1, 2016
8a652d9
Create a couple of test items on top of the empty content.db
Dec 1, 2016
a75a1d6
Create identical test data for all BDD tests, remove broken rgb_to_he…
Dec 2, 2016
9855ad1
add rgba values, seems to be what older firefox renders
Dec 2, 2016
f9ca7e5
Use default empty database instead of download YUGE data
Dec 2, 2016
8468240
Compatibility layer for Selenium 2+3
Dec 2, 2016
efbef8f
Wait enough time for CDN call, use Selenium 2+3 compatibility layer
Dec 2, 2016
a3cd0dd
Amend release notes regarding empty content packs
Dec 3, 2016
fd9d558
Refactor illegal <a> elements, thus unclickable, add 3-level subtopic…
Dec 3, 2016
e4e4fd1
Remove more of the somewhat randomly customized wait times for Seleni…
Dec 3, 2016
1ae53e0
Add missing 'n' causing lots of 404 for favicon.ico and make redirect…
Dec 3, 2016
688b0e2
Adding cycle detection in part of content recommendation - fixes #5354
Dec 5, 2016
e3f822c
Make unique id's for all test data, adjust coachreports
Dec 5, 2016
b42908e
Rename message because reused for exercises also
Dec 5, 2016
cfc05c2
Fix auto-generated slugs to match content db path, and make database …
Dec 6, 2016
effafe2
Re-align slugs and BDD test slugs
Dec 6, 2016
d49a717
BDD tests should search for search terms in the content.db + update f…
Dec 7, 2016
0480644
Another typo in fixtures
Dec 7, 2016
9083446
Make BDD tests only create content db once, use the same in all other…
Dec 8, 2016
a93bac9
Add missing calls to superclass' setUp() method
Dec 8, 2016
a536e9b
Add prerequitesite data to fixtures and adjust tests
Dec 8, 2016
7b71990
Remove test case, it tests non-unique IDs which are assumed NOT to ex…
Dec 8, 2016
db3d3a8
Simplify over-kill test case
Dec 8, 2016
9b72888
Refactor instance property names because of clashes
Dec 8, 2016
d755b3d
Rm unused imports
Dec 8, 2016
cbff2ec
Make more tests use variables KALiteTestCase instance
Dec 8, 2016
5f43e26
Exercise and video logs cannot be for randomly picked contents and ex…
Dec 11, 2016
1e8cb45
Rm unused Circle cache dir
Dec 11, 2016
1809395
Skip tests that are broken when run in parallel
Dec 11, 2016
5acdf75
Docs: Add extension name to ka-lite PPA apt source, otherwise it's ig…
Dec 11, 2016
4619b58
PPA docs: Precision about pkg name to install
Dec 11, 2016
4d777db
Ensure str and unicode are the same for test comparison
Dec 11, 2016
173d73a
Skip subtitles check in SC Firefox, works locally
Dec 11, 2016
cb312c5
Add warning about missing content pack - always display content pack …
Dec 11, 2016
1a42223
Consistently display warning when there isnt an English Content Pack
Dec 11, 2016
f373c1f
Comment out logging filter in windows
mrpau-richard Dec 12, 2016
02badd7
Do not delete from immutable dict, copy first
Dec 12, 2016
2f615ec
Ensure there is a parent before accessing properties
Dec 12, 2016
04d7517
Always refresh cache during content pack check if 'en' isn't installed
Dec 12, 2016
4adf9df
Fix issue during registration in SQLite for Python < 2.7.12
Dec 13, 2016
bef67e7
Suppress harmless broken pipe errors cluttering test output
Dec 13, 2016
0984b3a
Downgrade docutils package to fix sphinx issue.
mrpau-richard Dec 13, 2016
c1413af
Add release note about #5352 [ci skip]
Dec 13, 2016
f3a7707
Consistent order and uniqueness in test set comparison logic
Dec 13, 2016
2045cb4
content directory is no longer something that makes sense to cache
Dec 13, 2016
0d82990
Remove obsolete content/ directory from git tree
Dec 13, 2016
f1d02fb
Bump Python to 2.7.12 for tests
Dec 13, 2016
29c3ae9
Change Python version to 2.7.11 default for Ubuntu 14.04 VMs
Dec 13, 2016
d92783a
Bump Selenium to latest in favour of FF 47 running on Circle CI
Dec 13, 2016
519e1a3
Remove obsolete script
Dec 13, 2016
2bf2c7a
Remove 0.13 release file, add contents to sphinx docs
Dec 13, 2016
1a88b67
Add geckodriver configuration
Dec 13, 2016
b7d02a4
Remove obsolete testing/settings.py + references to RUNNING_IN_TRAVIS
Dec 13, 2016
075d293
Upgrade sphinx package to 1.5.1+
mrpau-richard Dec 14, 2016
ead2b7f
Upgrade sphinx package at requirements dev.
mrpau-richard Dec 14, 2016
08ee873
Downgrade selenium again, didnt seem a match with SC or FF47
Dec 14, 2016
878c1cd
Cache node_modules
Dec 14, 2016
c81d86a
Expand path w/ geckodriver
Dec 15, 2016
95db049
Disable test that does not reproduce failure locally, but consistentl…
Dec 15, 2016
a65b5ce
Update Make target 'assets' to respect cache, will improve test times
Dec 15, 2016
b89c622
Revert removal of <a> tags for now, accessibily rules
Dec 15, 2016
f501ea1
Final release note amendment [skip ci]
Dec 16, 2016
4c7a2b2
Merge pull request #5350 from benjaoming/test-contentpack
benjaoming Dec 16, 2016
3c425a8
Experiment with no Sauce
Dec 15, 2016
0362fe4
Merge branch 'develop' into hotfix/5057-logging-is-broken-in-producti…
mrpau-richard Dec 16, 2016
997ca4e
Comment stdout, stderr close to fix windows logging issue.
mrpau-richard Dec 16, 2016
c131d1c
Fix syntax error.
mrpau-richard Dec 16, 2016
46212ae
Initialize daemonize first to get the kalite stdout logs.
mrpau-richard Dec 16, 2016
de16407
Remove stdout, stdin close method in daemonize.py
mrpau-richard Dec 16, 2016
a14d66d
Remove disable logging in windows.
mrpau-richard Dec 16, 2016
bed74d5
Merge pull request #5362 from mrpau/hotfix/downgrade-docutils-package
benjaoming Dec 16, 2016
eaf2282
Only display error messages when status code matches 500
Dec 17, 2016
cd8a8e3
Merge pull request #5366 from benjaoming/ajax-error-msg
benjaoming Dec 17, 2016
f8a6fd7
Revert "Downgrade docutils package to fix sphinx issue."
benjaoming Dec 17, 2016
b4267c7
Merge pull request #5363 from benjaoming/no-sauce
benjaoming Dec 17, 2016
8cc8f24
Merge pull request #5367 from learningequality/revert-5362-hotfix/dow…
benjaoming Dec 17, 2016
adb0a6b
Fix final command line output.
mrpau-richard Dec 19, 2016
43ab887
Set output pipe down to initialize kalite.
mrpau-richard Dec 19, 2016
321b9c6
Merge pull request #5364 from mrpau/hotfix/5057-logging-is-broken-in-…
benjaoming Dec 19, 2016
701ac83
Release notes for #5057
Dec 19, 2016
707b1d3
rm unused import
Dec 19, 2016
4bb5c5c
Collect code in logic order and be consequent about print() vs sys.st…
Dec 19, 2016
a66d4eb
Add a break between starting and checking status.
Dec 20, 2016
fb21827
Merge pull request #5368 from benjaoming/windows-logging
benjaoming Dec 20, 2016
4f7763f
Remove unused test that's unfixable #4902
Dec 20, 2016
cea7b94
Remove unused settings
Dec 20, 2016
4d4f216
Merge pull request #5369 from benjaoming/rm-test
benjaoming Dec 20, 2016
e82da71
Document RESTRICTED_TEACHER_PERMISSIONS #5089
Dec 20, 2016
34cfe54
Merge pull request #5371 from benjaoming/document-restricted-teacher
benjaoming Dec 20, 2016
f8e2a75
Add missing linebreaks in stout
Dec 20, 2016
064e088
Merge pull request #5372 from benjaoming/add-missing-linebreaks
benjaoming Dec 20, 2016
5213c8f
Ignore geckodriver.log
Dec 22, 2016
90f625e
Remove dependency link and depend on django-tastypie-legacy #5319
Dec 22, 2016
a3dbc56
Release notes #5319 [skip ci]
Dec 22, 2016
0b34961
Merge pull request #5373 from benjaoming/tastypie-link
benjaoming Dec 23, 2016
4cd701b
increase waiting time before running KA Lite status
Dec 23, 2016
aef90d3
Remove local_settings
Dec 23, 2016
427313f
Remove unused settings for old git updates
Dec 23, 2016
9e07468
Remove CONFIG_PACKAGE, maintain Nalanda settings in its own settings …
Dec 23, 2016
3169669
Release notes for CONFIG_PACKAGE and local_settings removal [skip ci]
Dec 23, 2016
d964d40
Merge pull request #5375 from benjaoming/rm-configpackage-local_settings
benjaoming Dec 23, 2016
2394370
Remove FAQ entry #4636
Dec 25, 2016
6dcead6
Merge pull request #5377 from benjaoming/rmfaqentry
benjaoming Dec 25, 2016
2aa0270
Update man page
Dec 25, 2016
21364d6
Release notes regarding content packs
Jan 5, 2017
52716d9
Add known issue regarding FF 47 subtitle misalignment
Jan 8, 2017
b03cb1a
Indentation error [ci skip]
Jan 10, 2017
71c10ac
further expand wait time for server readiness in tests
Jan 12, 2017
1c3a7d9
Remove section about running with user data inside project dir (unsup…
Jan 13, 2017
1fa2dfb
Add missing instructions for setting up the dev env
Jan 13, 2017
d54bdc6
Rename developer section
Jan 13, 2017
77a15c3
Merge Screenshots into Documentation
Jan 13, 2017
56954a1
Docs are built with make docs
Jan 13, 2017
d7fb18c
Modify headline structure of section
Jan 13, 2017
42aae14
Remove broken profiling
Jan 13, 2017
0ea17b9
Further clean up, 'Contributing' section is a stub, remove it
Jan 13, 2017
ccaa166
Document the kalite command + clean up User section - fixes #4326
Jan 13, 2017
5ae0530
Updates to RPI guide. Adding an overview and a replication step.
Jan 13, 2017
b89bcda
Merge pull request #5380 from benjaoming/content-pack-releasenotes
benjaoming Jan 13, 2017
ecf913b
Remove extra quote
quozl Jan 14, 2017
a47280c
Terminal does not need to belong to system
quozl Jan 14, 2017
3219470
Rewrite start/stop/restart as it does not work
quozl Jan 14, 2017
529c5a2
Remove note, as it is for developers not users
quozl Jan 14, 2017
2ea2334
Rewrite warning to avoid start/stop/restart
quozl Jan 14, 2017
4aa06af
Merge pull request #5383 from quozl/4326-documentation-review
benjaoming Jan 16, 2017
f4d03a8
Silence django.request logging, it's already handled by output from d…
Jan 17, 2017
5704537
Only retrieve installed content packs when running `kalite manage con…
Jan 17, 2017
1499441
Rm old perseus localized html files, not in content packs anymore
Jan 17, 2017
2d1ea12
Move srt/ from STATIC_ROOT to CONTENT_ROOT
Jan 17, 2017
c30cf79
Merge pull request #5386 from benjaoming/static-files-devserver-logging
benjaoming Jan 17, 2017
ce99d2f
Fixing some sphinx warnings
Jan 17, 2017
048625f
Amend RPI docs with clearuserdata command
Jan 17, 2017
cfbb041
Amend release notes for 0.17 further, mentioning unknown content pack…
Jan 17, 2017
7aedc0e
Language precision
Jan 17, 2017
07e1080
Add FAQ entry about why device registration may hang
Jan 17, 2017
28295dd
Thanks @jamalex
Jan 17, 2017
92cb615
Refine method for CLI content pack updates
Jan 17, 2017
10f62a5
Add release note for #5073 and #5386
Jan 17, 2017
9b8ab29
Rename RPI doc
Jan 17, 2017
a2826fb
Merge pull request #5387 from benjaoming/releasenotes-0.17
benjaoming Jan 17, 2017
77930c4
Correct Makefile verbose output
Jan 19, 2017
66ff5ee
Update docs regarding current roadmap
Jan 19, 2017
d67b652
Add "sdist" make target, remove artifacts from dependency links (not …
Jan 19, 2017
18d3af8
Release note regarding English subtitles
Jan 20, 2017
db7c0e4
Merge pull request #5391 from benjaoming/setup-artifacts
benjaoming Jan 23, 2017
caccf25
minor wording updates and clarifications
indirectlylit Jan 23, 2017
d748b0e
Merge pull request #7 from indirectlylit/kolibri-in-readme
benjaoming Jan 24, 2017
520093a
Include @jamalex' comments
Jan 24, 2017
863ed5c
Merge pull request #5389 from benjaoming/kolibri-in-readme
benjaoming Jan 24, 2017
412e18e
Merge branch 'master' into develop
Jan 25, 2017
b68da83
Merge pull request #5393 from benjaoming/develop
benjaoming Jan 25, 2017
d22785d
Bump to 0.17.0 final
Jan 25, 2017
1369778
Upgrade six, thanks @mrpau-richard
Jan 27, 2017
1b68250
Merge pull request #5397 from benjaoming/six-upgrade
benjaoming Jan 27, 2017
db20f5c
Finalize release notes for 0.17 - still needs proofreading
Jan 27, 2017
af48d8c
Proofreading - thanks @radinamatic
Jan 27, 2017
27f2d97
Merge pull request #5398 from benjaoming/releasenotes-017
benjaoming Jan 27, 2017
9a32d86
Clean *pyc files before building the sdist to avoid inclusion of .pyc…
Jan 27, 2017
dd0df17
Merge pull request #5399 from benjaoming/rm-pyc-from-sdist
benjaoming Jan 27, 2017
fc526b0
Document well-known location for language packs #5400 #5285
Feb 2, 2017
5c96dbc
Merge pull request #5402 from benjaoming/document-well-known
benjaoming Feb 2, 2017
6355dfc
Dev: Remove middleware that breaks with debug toolbar
Feb 3, 2017
a181a82
Add charset=UTF-8 to HTTP header, otherwise browser warns of undetect…
Feb 3, 2017
082bf47
Relax a bit with all the updates of contentpack progress
Feb 3, 2017
c6597cc
Add a bit of additional logging and clean up
Feb 3, 2017
f4dc63d
Finally disable unreliable test, seeing it fail for no reason every o…
Feb 6, 2017
163f759
`make assets` should be able to run twice in a row, before it would fail
Feb 8, 2017
df5038c
Add CSP middleware, only enable in debug mode
Feb 8, 2017
eaec70f
Do not load JQuery from online source when debug-toolbar is on
Feb 8, 2017
f5518d3
Merge pull request #5403 from benjaoming/device-registration
benjaoming Feb 8, 2017
980397f
Simplify am_i_online which broke because of a 301 on kalite.learninge…
Feb 9, 2017
6a525e0
Remove kwarg 'url' and prefer to have all logic in one place
Feb 9, 2017
8142086
Add release note
Feb 9, 2017
0744172
am_i_online should use CENTRAL_SERVER_URL
Feb 9, 2017
019139e
Merge pull request #5404 from benjaoming/unregistered-device
benjaoming Feb 9, 2017
9dee15e
Add an additional test for am_i_online @radinamatic
Feb 10, 2017
34b91fa
Add traceback to error 500 pages
Feb 10, 2017
6f9be82
Add release note for #5405 [ci skip]
Feb 10, 2017
e1649a6
Merge pull request #5405 from benjaoming/assert-device-registration
benjaoming Feb 10, 2017
b143910
Remove debug exception expression, add test case so it doesnt happen …
Feb 13, 2017
f42284a
Circle tests: Expand sleep before polling for status
Feb 13, 2017
6640c11
Expanding request timeout to 10 seconds while testing if online, upda…
Feb 13, 2017
463e6fd
Tests: Increase wait time slightly due to repeating errors
Feb 13, 2017
b617aa0
Based on a couple of benchmarks of central server endpoint (6/7 secon…
Feb 13, 2017
e030914
Merge pull request #5406 from benjaoming/assert-device-registration
benjaoming Feb 13, 2017
fa2e318
Update rsa - fixes #5401
Feb 14, 2017
878c233
Add release note for #5411
Feb 14, 2017
5ae1a6c
Finally, simplify the PR template, these are covered by CI stuff anyw…
Feb 14, 2017
1c5542e
Merge pull request #5411 from benjaoming/rsa-fix
benjaoming Feb 14, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 0 additions & 5 deletions .KALITE_SOURCE_DIR

This file was deleted.

6 changes: 1 addition & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

If not all TODOs are marked, this PR is considered WIP (work in progress)

- [ ] Have **tests** been written for the new code? If you're fixing a bug, write a regression test (or have a really good reason for not writing one... and I mean **really** good!)
- [ ] Has documentation been written/updated?
- [ ] New dependencies (if any) added to requirements file
- [ ] Have you written release notes for the upcoming release?

## Reviewer guidance

Expand All @@ -18,6 +17,3 @@ If not all TODOs are marked, this PR is considered WIP (work in progress)

List the issues solved or partly solved by the PR

## Screenshots (if appropriate)

*They're nice. :)*
51 changes: 13 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@
.project
.pydevproject

# Undocumented ignores
# Database templates
kalite/database

# setup.py
dist/
build/
*.egg-info/

# The MANIFEST.in file is automatically generated by setup.py
MANIFEST.in
# Created during make dist
.kalite_dist_tmp

# Static builds with setup.py [command] --static
dist-packages-temp/
dist-packages-downloads/
dist-packages/
.pip-temp/
.pip-downloads/
.kalite/packages/dist/

# Created by Selenium / Firefox
geckodriver.log

# User cache data generated at runtime
cache/
Expand All @@ -36,15 +39,10 @@ static-updates
# oh-my-zsh
.venv

# SQLite files (should probably specify the path)
*.db
*.sqlite*

# Not sure
*.patch
*.pid
*.prof
secretkey.txt

# Python compiling
*.pyc
Expand All @@ -56,13 +54,10 @@ secretkey.txt
# Sublime editor
*.sublime-*

# Ignore all .zip files!? No comment?? Needs fixing, I guess it's to avoid
# committing local assessment items.
*.zip

# Documentation
docs/_build
docs/images/*
kalite/static-libraries/docs

# oh-my-zsh convention for automatically
# switching on a venv
Expand All @@ -75,11 +70,10 @@ venv/
# Ignore changes to Perseus and Khan Exercises that do not come from intentional edits
/kalite/distributed/static/js/distributed/perseus

# Ignore file used to store queued video download info.
videos_to_download.json
# Ignore django-reverse-js file that gets copied during testing.
kalite/distributed/static/django_js_reverse/js/reverse.js

# Lacks documentation
locale/
node_modules/
tmp/
virtualenv/
Expand All @@ -90,20 +84,6 @@ writeup/
/run_command.*
/start.*
/stop.*
/content/*.jpg
/content/*.json
/content/*.png
/content/*.mp4
/content/*.mp4.part
/content/*.srt
/content/*.mp3
/content/*.pdf
/content/khan/
/content/assessment
/data/logs
/data/i18n
/data/subtitles
/data/screenshots
/kalite/*.jpg
/kalite/*.mp4.part
/kalite/i18n/data/dubbed_video_mappings.json
Expand All @@ -112,10 +92,6 @@ writeup/
/kalite/local_settings.py
/kalite/media
/kalite/temp
/data/*
!/data/khan/
/data/khan/assessmentitems.json
/data/khan/assessment_item_images
/kalite/private_key.pem
/kalite/secrets.py
/kalite/static
Expand All @@ -127,5 +103,4 @@ writeup/
/.vagrant/
ghostdriver.log
*.swp
/data/khan/assessmentitems.json.version
file_map.json
4 changes: 2 additions & 2 deletions .jshintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
kalite/distributed/static/js/distributed/base/backbone-tastypie.js
kalite/distributed/static/js/distributed/perseus/**/*
kalite/*/static/js/*/bundles/*
static-libraries/**
kalite/i18n/static/js/i18n
kalite/static-libraries/**
kalite/i18n/static/js/i18n
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

65 changes: 0 additions & 65 deletions DEPRECATIONS_0.13.rst

This file was deleted.

14 changes: 6 additions & 8 deletions MANIFEST.in.dist → MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# MANIFEST.in is generated with basic
# layout of MANIFEST.in.dist

include kalitectl.py
include LICENSE
include README.rst
include setup.cfg
include requirements.txt

recursive-include kalite *.html *.txt *.png *.js *.css *.gif *.less *.otf *.svg *.woff *.eot *.ttf *.zip *.json *.handlebars *.woff2
recursive-include kalite *.html *.txt *.png *.js *.css *.gif *.less *.otf *.svg *.woff *.eot *.ttf *.zip *.json *.handlebars *.woff2 *.mo *ico
recursive-include kalite/static-libraries *

recursive-include kalite/packages/dist *
recursive-exclude kalite/packages/dist *.po

# Get the empty DBs -- make sure they are properly generated!
recursive-exclude kalite/database *
Expand All @@ -18,10 +21,6 @@ recursive-include kalite/database/templates/content_items *sqlite
# a local development environment
recursive-exclude kalite/static *

# Data files, these are not picked up by sdist unless listed here
recursive-include python-packages *
recursive-include static-libraries *

# There are still a couple of files left here, however main part is for build
# process
recursive-include data *
Expand All @@ -32,6 +31,5 @@ recursive-exclude data/khan *
recursive-exclude python-packages *pyc

# Docs
recursive-include docs/_build/html *
include docs/kalite.1.gz

kalite/static-docs
49 changes: 26 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ help:
# used for release and dist targets
format?=gztar

clean: clean-build clean-pyc clean-test

clean-dev-db:
rm -f kalite/database/data.sqlite
clean: clean-build clean-pyc clean-test clean-assets

clean-build:
rm -fr build/
rm -fr dist/
rm -rf .kalite_dist_tmp
rm -fr .eggs/
rm -fr dist-packages/
rm -fr dist-packages-temp/
rm -fr kalite/database/templates
rm -fr kalite/static-libraries/docs
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +

Expand All @@ -45,6 +44,11 @@ clean-test:
rm -f .coverage
rm -fr htmlcov/

clean-assets:
npm cache clean
rm -rf kalite/database/templates/
rm -rf .kalite_dist_tmp

lint:
pep8 kalite
jshint kalite/*/static/js/*/
Expand All @@ -63,15 +67,7 @@ test-all:
# tox

coverage:
coverage run --source kalite kalitectl.py test
coverage report -m

coverage-bdd:
coverage run --source kalite kalitectl.py test --bdd-only
coverage report -m

coverage-nobdd:
coverage run --source kalite kalitectl.py test --no-bdd
coverage run --source kalite bin/kalite test
coverage report -m

docs:
Expand All @@ -80,6 +76,7 @@ docs:
# sphinx-apidoc -o docs/ ka-lite-gtk
$(MAKE) -C docs clean
$(MAKE) -C docs html
cp -Rf docs/_build/html kalite/static-libraries/docs/
# open docs/_build/html/index.html


Expand All @@ -88,25 +85,31 @@ man:
cli2man bin/kalite -o docs/kalite.1.gz

assets:
# Necessary because NPM may have wrong versions in the cache
npm cache clean
npm install --production
node build.js
bin/kalite manage compileymltojson
bin/kalite manage syncdb --noinput
bin/kalite manage migrate
KALITE_HOME=.kalite_dist_tmp bin/kalite manage syncdb --noinput
KALITE_HOME=.kalite_dist_tmp bin/kalite manage migrate
rm -rf kalite/database/templates/
mkdir -p kalite/database/templates/
cp kalite/database/data.sqlite kalite/database/templates/
bin/kalite manage retrievecontentpack download en --minimal --foreground --template
cp .kalite_dist_tmp/database/data.sqlite kalite/database/templates/
bin/kalite manage retrievecontentpack empty en --foreground --template

release: dist man
ls -l dist
echo "uploading above to PyPi, using twine"
echo "Uploading dist/* to PyPi, using twine"
twine upload -s --sign-with gpg2 dist/*

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

dist: clean docs assets
# 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
ls -l dist

install: clean
Expand Down
Loading