Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
593 commits
Select commit Hold shift + click to select a range
5eea505
Annotate content for the specified language.
aronasorman Dec 16, 2015
e600ce5
Change retrieve operation name to local.
aronasorman Dec 16, 2015
63deb16
Integrate with the updates framework.
aronasorman Dec 16, 2015
4d0c8fa
Update the command in the module docstring.
aronasorman Dec 17, 2015
759c0be
Print help message for retrievecontentpack.
aronasorman Dec 17, 2015
d28c22a
Remove superfluous plus sign.
aronasorman Dec 17, 2015
de28e81
Expand on extract_content_metadata function stub comment.
aronasorman Dec 17, 2015
79ebf32
Manually close the zip file.
aronasorman Dec 18, 2015
2ba11e3
Avoid the use of urlretrieve when dling contentpacks.
aronasorman Dec 18, 2015
1ef1631
Merge pull request #4764 from aronasorman/content-pack-download
MCGallaspy Dec 18, 2015
83b934d
Update setup.py
MCGallaspy Dec 16, 2015
9d2fc08
Make safe to run on Win, add comments
MCGallaspy Dec 17, 2015
8384d83
Finally remove; moved to installers repo
MCGallaspy Dec 19, 2015
8ea199a
Merge pull request #4767 from MCGallaspy/modified-makefile-for-bamboo
aronasorman Dec 19, 2015
075d9db
Merge PR https://github.com/learningequality/ka-lite/pull/4761/files …
benjaoming Dec 16, 2015
5f638e0
Extract metadata from content pack.
aronasorman Jan 7, 2016
41dcb5e
fix broken way of detecting video download success #4782
benjaoming Jan 15, 2016
b404cf9
remove unused json import.
aronasorman Jan 22, 2016
ee7f61c
Merge pull request #4784 from benjaoming/fix-4782
benjaoming Jan 29, 2016
924a61d
Merge pull request #4773 from mrpau/feature/tastypie-fix-merge-to-0.16.x
benjaoming Jan 29, 2016
9fae103
no option for so called 'config package' rpi hack
benjaoming Oct 12, 2015
c68eaca
Remove obsolete mngmt command
benjaoming Oct 12, 2015
21cd0ec
wip on cleaning up port stuff
benjaoming Oct 12, 2015
bf6bbf7
Remove PRODUCTION_PORT completely
benjaoming Oct 12, 2015
8d109a8
remove obsolete apacheconfig mngmt command
benjaoming Oct 12, 2015
66c489a
USER_FACING_PORT is not a function
benjaoming Oct 12, 2015
340dd00
don't use request.META be consistent with on var
benjaoming Oct 12, 2015
a6bc2bd
message about user facing port [ci-skip]
benjaoming Oct 13, 2015
02997ad
Remove broken clock set feature
benjaoming Oct 14, 2015
5c1a18c
also print proxy information in kalite start
benjaoming Dec 4, 2015
790ab33
Remove redundant tests and stale code in django_cherrypy_server
benjaoming Dec 5, 2015
abe3fe3
factor out redundant application django_cherrypy_wsgiserver
benjaoming Dec 5, 2015
521ec43
Remove unused module
benjaoming Dec 5, 2015
460d69b
completely get rid of django_cherrypy_wsgiserver by moving its only a…
benjaoming Dec 5, 2015
dc5a7a4
Merge pull request #4795 from benjaoming/cleanup-port-stuff-0.16.x
MCGallaspy Jan 29, 2016
06303dd
Add date and time to log messages
benjaoming Jan 29, 2016
11d765a
Merge pull request #4754 from MCGallaspy/4748-upgrade-instructions
benjaoming Feb 1, 2016
b601e12
Merge pull request #4798 from benjaoming/log-format-0.16.x
MCGallaspy Feb 1, 2016
d43ec73
Merge pull request #4771 from MCGallaspy/remove-scripts-finally
benjaoming Feb 1, 2016
42bb233
Revert "Finally remove batch scripts; moved to installers repo"
benjaoming Feb 1, 2016
ae10329
Merge pull request #4799 from learningequality/revert-4771-remove-scr…
benjaoming Feb 1, 2016
e774d77
Remove irrelevant test
MCGallaspy Feb 2, 2016
a8cad8f
Merge pull request #4750 from MCGallaspy/4308-add-rating-instruction
rtibbles Feb 2, 2016
acf9dbe
Merge pull request #4779 from aronasorman/content-pack-metadata
rtibbles Feb 2, 2016
7a240f1
Merge pull request #4800 from MCGallaspy/remove-old-test
rtibbles Feb 2, 2016
5533d7b
Revert "Revert "Finally remove batch scripts; moved to installers repo""
benjaoming Feb 2, 2016
db42685
Merge pull request #4801 from learningequality/revert-4799-revert-477…
rtibbles Feb 2, 2016
3ae9790
clean up kalite usage instructions
benjaoming Dec 17, 2015
c9ee9d5
Merge pull request #4803 from benjaoming/rm-invalid-example-0.16.x
benjaoming Feb 2, 2016
1a604cf
refactor khan channel images and use setting instead of json data
benjaoming Feb 4, 2016
6f4ea20
remove unused image
benjaoming Feb 4, 2016
3d62e24
refactor the way channel meta data is translated
benjaoming Feb 4, 2016
b42d920
Annotate content db after unpacking assessment zip - fixes #4815
benjaoming Feb 5, 2016
170de21
Merge pull request #4814 from benjaoming/channel-contenxt-data
rtibbles Feb 8, 2016
9440c71
Adds sort_order field. Adds default sorting by sort_order field.
rtibbles Feb 8, 2016
cf39a61
Merge pull request #4818 from rtibbles/node_sort_order
aronasorman Feb 8, 2016
404a83b
Extract subtitles from content packs into the right dir.
aronasorman Feb 9, 2016
5fe95b3
Replace deprecation warning by raising exception
MCGallaspy Feb 10, 2016
71cb218
Merge pull request #4829 from MCGallaspy/4496-remove-warnings
benjaoming Feb 10, 2016
3627120
remove github link on offline version of docs #4348
benjaoming Feb 10, 2016
ff2544d
disable view page source [ci skip]
benjaoming Feb 10, 2016
9d27114
Fixerror in topic_tools/content_models.py get_content_parents() method
shubh594 Feb 10, 2016
ebeb0af
remove wrong branch option
benjaoming Feb 10, 2016
dce407e
extract assessment resources from content packs into the right dir.
aronasorman Feb 9, 2016
4e5637c
Setup command now uses retrievecontentpack.
aronasorman Feb 10, 2016
fde7af9
Migrate the assessment item endpoint to use a plain view.
aronasorman Feb 11, 2016
a70b2a3
Always mark exercises as available.
aronasorman Feb 11, 2016
a3aec03
Add streak_progress to values, since we access it
MCGallaspy Feb 12, 2016
4ade9fa
Query the pantry server for available lang packs.
aronasorman Feb 12, 2016
c3a14bc
Use retrievecontentpack for downloading lang packs.
aronasorman Feb 12, 2016
5885d71
Remove tests that depended on old language packs.
aronasorman Feb 12, 2016
82e59c6
removed tabs and replaced them with 4 spaces
shubh594 Feb 12, 2016
7347aef
Purge the mentions of the languagepackdownload command.
aronasorman Feb 12, 2016
fa3bd0c
skip availability stamping for exercises.
aronasorman Feb 12, 2016
a5d8db9
Merge pull request #4836 from MCGallaspy/4787-key-error-fix
rtibbles Feb 12, 2016
846ddcf
Merge pull request #4832 from shubhsingh594/0.16.x
MCGallaspy Feb 12, 2016
4955b2f
Remove strange patterns in testrunner
MCGallaspy Feb 9, 2016
4118c16
Add ContentModelRegressionTestCase
MCGallaspy Feb 9, 2016
8686a35
Only return available items with get_topic_nodes
MCGallaspy Feb 9, 2016
56ef16b
Add annotate_content_items to 'make assets'
MCGallaspy Feb 10, 2016
8f61a9b
Create "uses_content_paths" behave context tag
MCGallaspy Feb 10, 2016
d4c3ce7
Allow sidebar to finish rendering when no content is found
MCGallaspy Feb 11, 2016
ee5dc22
Return dummy content in case content not found
MCGallaspy Feb 11, 2016
5a0d432
Ensure sidebar is properly hidden for unavailable content
MCGallaspy Feb 11, 2016
1aaf75e
Change available content in testing framework to 'magic' value
MCGallaspy Feb 11, 2016
a1d234f
Properly tear down content items
MCGallaspy Feb 13, 2016
4c54918
Small tweak to content availability setting during testing.
rtibbles Feb 12, 2016
35f994d
Merge pull request #27 from rtibbles/3997-hide-unavailable-content
MCGallaspy Feb 15, 2016
4fd8751
Merge pull request #4824 from MCGallaspy/3997-hide-unavailable-content
rtibbles Feb 15, 2016
e34a2ab
Import missing ugettext function
MCGallaspy Feb 12, 2016
329822f
Fix apparent unknown name error
MCGallaspy Feb 12, 2016
1835e24
Fix bad getattr call
MCGallaspy Feb 12, 2016
4684a82
Import missing name
MCGallaspy Feb 12, 2016
c69d224
Fix mangled classmethod
MCGallaspy Feb 12, 2016
4a1d41a
Merge pull request #4851 from MCGallaspy/lint-errors
benjaoming Feb 16, 2016
de3b20b
is_valid_url returns false when given windows path with drive letter
MCGallaspy Dec 15, 2015
4458705
Unpack in separate thread, so that IO isn't blocked (it's nicer)
MCGallaspy Dec 15, 2015
4fc72c6
Add a pk to AssessmentItem
aronasorman Feb 16, 2016
2b48460
Change test to reflect new return value of update_content_availability.
aronasorman Feb 16, 2016
a8489b5
Merge remote-tracking branch 'u/0.16.x' into extract-subtitles-and-as…
aronasorman Feb 16, 2016
2e2fafd
Merge pull request #4854 from learningequality/add-that-pk
rtibbles Feb 16, 2016
a637065
Delete exercise annotation tests.
aronasorman Feb 17, 2016
ff1d0a8
Merge pull request #4859 from benjaoming/rm-docs-github-link
MCGallaspy Feb 17, 2016
653cef9
Merge pull request #4827 from aronasorman/extract-subtitles-and-asses…
rtibbles Feb 18, 2016
fa0dfce
Remove trailing slash from API url
MCGallaspy Feb 17, 2016
fb7115b
fix for issue #4834
66eli77 Feb 16, 2016
c4d8452
Merge pull request #4856 from MCGallaspy/fix-assessment-item-url-root
rtibbles Feb 18, 2016
f91e45f
Merge pull request #4855 from 66eli77/login16
benjaoming Feb 18, 2016
c6af3c0
Extract all assessment resources at once.
aronasorman Feb 18, 2016
c11060d
Merge pull request #4873 from learningequality/master
MCGallaspy Feb 19, 2016
53b8d9d
Merge pull request #4868 from aronasorman/optimize-retrievecontentpack
MCGallaspy Feb 19, 2016
a621f27
fixes error show_message is not defined
shubhsingh594 Feb 19, 2016
7eade95
Merge pull request #4877 from shubhsingh594/new_branch
MCGallaspy Feb 19, 2016
71fa54e
Create top-level nav item for docs
MCGallaspy Feb 16, 2016
581bb7d
Add regression test for docs links
MCGallaspy Feb 17, 2016
ebcaf85
Make docs link visible only to coaches and admins
MCGallaspy Feb 17, 2016
61928c1
Make docs on circle
MCGallaspy Feb 18, 2016
6791e6d
move content item db location and distribute it
benjaoming Feb 2, 2016
790d0d7
remove unused arg and clean up code
benjaoming Feb 2, 2016
3ca5468
WIP on bundling content item db
benjaoming Feb 2, 2016
38e4528
fix bulk insertion
benjaoming Feb 3, 2016
10199e3
Put all database templates in kalite/database/templates, init_content…
benjaoming Feb 3, 2016
1b53758
support for retrieving en-minimal content pack
benjaoming Feb 18, 2016
49464dd
Create template content.db from retrievecontentpack and add it to sdist
benjaoming Feb 18, 2016
ccd545b
Use correct path for user's database files
benjaoming Feb 20, 2016
ab565f2
log exceptions in JSON views
benjaoming Feb 21, 2016
82678bc
Log requests and merge all logging into one config
benjaoming Feb 21, 2016
287b4b7
do not annotate content items on the template content db
benjaoming Feb 21, 2016
6488c7e
Merge pull request #4853 from MCGallaspy/4375-add-docs-nav-item
benjaoming Feb 21, 2016
26e5e84
ensure existence of template dir when calling make assets
benjaoming Feb 21, 2016
8aa866f
remove files that arent essential for 0.16 and consolidate tests
benjaoming Feb 21, 2016
6606eb4
currently we have to retrieve a content pack for testing, the big eng…
benjaoming Feb 21, 2016
734b64f
fix tests to match latest content db
benjaoming Feb 21, 2016
dcc3198
let total_files=0 be okay until content packs are fixed @rtibbles @ar…
benjaoming Feb 21, 2016
63cc03d
fix the test fix, hoping test is still useful @rtibbles
benjaoming Feb 21, 2016
dcc456e
fix video download wrongly failing
benjaoming Feb 21, 2016
6b5e366
add missing entry for generated manpages
benjaoming Oct 13, 2015
a8019f7
add binary manpage file to repo because it doesnt generate on windows
benjaoming Dec 8, 2015
d657999
create manfile when doing release [ci skip]
benjaoming Feb 21, 2016
e6d4de0
remove not-to-be-used generate_assessment_zips
benjaoming Feb 21, 2016
9502bf9
Merge pull request #4881 from benjaoming/manpages-in-sdist
benjaoming Feb 22, 2016
ca21814
Merge branch '0.16.x' into init_content_items_w_contentpack_minimal
benjaoming Feb 22, 2016
dda5373
remove is_installed, replace with explicit check for database file
benjaoming Feb 22, 2016
7a0b4d1
serve at correct url
benjaoming Feb 22, 2016
6ad3c20
Normalize code
benjaoming Feb 22, 2016
8ab42e7
fix Python version warnings
benjaoming Feb 22, 2016
cd1adbc
Merge branch '4719-prettify-unpack-assessment-item-output' of https:/…
benjaoming Feb 22, 2016
e2c14a2
fixes error javascript error- SyntaxError: [sprintf] unexpected plac…
shubhsingh594 Feb 22, 2016
af7f7a0
Fixed error in PlaylistDetail API, playlist doesn't have a key - chi…
shubhsingh594 Feb 22, 2016
a501584
added tests for PlaylistProgressDetailResource api
shubhsingh594 Feb 22, 2016
839c2a1
set has_superuser to true once superuser is created via SuperUserCrea…
66eli77 Feb 23, 2016
0fb48b7
Merge pull request #4886 from benjaoming/rm-is_installed
MCGallaspy Feb 23, 2016
242bc97
super_user_create_modal might not be properly hidden yet if remove to…
66eli77 Feb 23, 2016
9fe8bfd
increased TIMEOUT
shubhsingh594 Feb 23, 2016
7e76cbb
remove confusing message during login
manipalsingh013 Feb 23, 2016
6899279
Merge pull request #4893 from shubhsingh594/branch_1
benjaoming Feb 23, 2016
7567a7d
Merge pull request #4889 from benjaoming/python-27-warning-downgrade
aronasorman Feb 23, 2016
f54b780
Merge pull request #4865 from benjaoming/init_content_items_w_content…
aronasorman Feb 23, 2016
646d207
Merge pull request #4896 from 66eli77/login16_2
benjaoming Feb 23, 2016
37b114e
reinstate total_files=0
benjaoming Feb 23, 2016
eb5bdea
Merge pull request #4899 from manipalsingh013/bug_4500
benjaoming Feb 23, 2016
d334bd0
stop making .zip for sdist they arent necessary
benjaoming Feb 22, 2016
a8faba8
Merge pull request #4888 from benjaoming/fix-assessment-serving
aronasorman Feb 23, 2016
2c6a5f4
Merge pull request #4903 from benjaoming/reinstatetotalfiles
rtibbles Feb 23, 2016
004a7fb
sdist default to tarball, optionally set via cmd
benjaoming Feb 24, 2016
3e92e44
Let commands actually set their progress log.
rtibbles Feb 24, 2016
dbda04a
Don't load facilities into session object.
rtibbles Feb 24, 2016
174c0c3
Merge pull request #4909 from rtibbles/video_download_fix
benjaoming Feb 24, 2016
f9b759f
Merge pull request #4884 from benjaoming/no-zip-dist
benjaoming Feb 25, 2016
8f29d83
Simplify the way we render FacilityGroup forms.
rtibbles Feb 25, 2016
8018ce1
changed inline skip button text color, now appear enabled
manipalsingh013 Feb 25, 2016
77ea300
Add playback speed button to video player
MCGallaspy Feb 25, 2016
6331030
added semicolon
manipalsingh013 Feb 25, 2016
c5ae984
Add 1.25 speed to playback rate list
MCGallaspy Feb 25, 2016
468d0d3
Merge pull request #4917 from MCGallaspy/4639-enable-video-player-spe…
jamalex Feb 26, 2016
db0f4f8
Catch pops from an empty list.
rtibbles Feb 26, 2016
fe2800b
Merge pull request #4916 from manipalsingh013/bug_4905
rtibbles Feb 26, 2016
c5274d4
removed overlapping text of content recomendation explore
manipalsingh013 Feb 26, 2016
4570bc7
Add catches for missing data or None returns in content data.
rtibbles Feb 26, 2016
63bfd09
Adds test for resume recommendations returning empty list.
rtibbles Feb 26, 2016
a804fb7
Merge pull request #4912 from rtibbles/dont_load_all_facilities
benjaoming Feb 26, 2016
1bb9206
changed classes to avoid content text overlapping
manipalsingh013 Feb 26, 2016
e32f47e
Merge pull request #4921 from rtibbles/prevent_pop_error
aronasorman Feb 26, 2016
7309b49
Ensures proper indexing in contentrec.
rtibbles Feb 26, 2016
4858408
Make sure 'children' has contents.
rtibbles Feb 26, 2016
0cd1ec2
Only set the left of the sidebar tab if it is open already.
rtibbles Feb 26, 2016
f8dc220
Add more makemessage default ignore patterns.
aronasorman Feb 26, 2016
a29f147
shows a message when search returns no content
shubhsingh594 Feb 27, 2016
0b2057a
Merge branch '0.16.x' of https://github.com/learningequality/ka-lite …
shubhsingh594 Feb 27, 2016
1101886
Change message for the user while they wait for server response
radinamatic Feb 29, 2016
0fdf904
Only mess around with sidebar attributes if it is already open (unles…
rtibbles Feb 29, 2016
b850786
Merge pull request #4936 from radinamatic/waiting-for-server
rtibbles Feb 29, 2016
0050620
Merge pull request #4922 from manipalsingh013/bug_3863
rtibbles Feb 29, 2016
44b9696
Throttle, don't debounce.
rtibbles Feb 29, 2016
6560fab
made suggested changes using if not matches.
shubhsingh594 Feb 29, 2016
fd825e2
Merge pull request #4928 from shubhsingh594/new_message
rtibbles Feb 29, 2016
c0fbeb0
Merge pull request #4923 from rtibbles/robustify_content_rec
aronasorman Feb 29, 2016
3a712ad
Actually pass, parse, and then pass again, the language argument for …
rtibbles Feb 29, 2016
9f89ddc
Select child nodes once lazy loaded.
rtibbles Feb 29, 2016
9eb9b83
Set languages properly for getting list of youtube_ids for download, …
rtibbles Feb 29, 2016
22792f8
Prevent name shadowing in view func
MCGallaspy Feb 19, 2016
e9a73cd
Translate exercises correctly
MCGallaspy Feb 19, 2016
63eac5c
Add some tests of content_item api_view
MCGallaspy Feb 19, 2016
bf2785d
Amend test
MCGallaspy Feb 24, 2016
0117067
Merge pull request #4925 from aronasorman/update-makemessages
MCGallaspy Feb 29, 2016
aa72e1b
Adds regression test to ensure that language is always properly passe…
rtibbles Feb 29, 2016
128966c
Propagates topic selection to tabular coach report.
rtibbles Feb 24, 2016
7f8dee3
Adds uniquifying and sorting to content headers for tabular reports.
rtibbles Feb 26, 2016
efccc0e
Adds API endpoint test for coach report topic filtering.
rtibbles Feb 26, 2016
02d1bd3
Adds updated tests for coachreport learnerlog api endpoint.
rtibbles Feb 27, 2016
82fe6fc
Merge pull request #4872 from MCGallaspy/random-fixes
rtibbles Feb 29, 2016
9ba161d
Allow positional arguments with dashes inside
MCGallaspy Feb 29, 2016
b5ca734
Do not reference nonexistent file
MCGallaspy Feb 29, 2016
f09aa9a
Allow status updating of non-English videos in video downloading inte…
rtibbles Mar 1, 2016
ff3bb02
Merge pull request #4938 from rtibbles/video_download_fixes
aronasorman Mar 1, 2016
41bfb04
Remove that custom pt-BR -> pt mapping.
aronasorman Mar 1, 2016
1fa271a
Merge pull request #4940 from aronasorman/br-br
aronasorman Mar 1, 2016
081deee
Merge pull request #4919 from rtibbles/tabular_report_topics
MCGallaspy Mar 1, 2016
1d79c20
Merge pull request #4939 from MCGallaspy/4935-arg-parse-bug
rtibbles Mar 1, 2016
85136b1
Fixes display issues for icomoon icons used in content recommendation.
rtibbles Mar 1, 2016
8a1214a
Merge pull request #4941 from rtibbles/fix_icomoon_font_content_rec
aronasorman Mar 1, 2016
37ee753
Prevent TypeErrors getting thrown on partial downloads.
rtibbles Mar 2, 2016
8a77a5c
use twine for PyPi uploads
benjaoming Mar 2, 2016
a78452e
Merge pull request #4942 from rtibbles/prevent_type_error
benjaoming Mar 3, 2016
02f8e57
Delegates all responsibility for sidebar display and resizing to a si…
rtibbles Mar 3, 2016
0f8e79e
Make playlist progress test independent of content.
rtibbles Mar 3, 2016
d018f38
Updates perseus.
rtibbles Mar 4, 2016
612aed1
Squashed 'kalite/distributed/static/js/distributed/perseus/ke/' chang…
rtibbles Mar 4, 2016
db240f2
Merge commit '612aed1956b44eb48f688b83af1ac624ac1dccf2' into perseus_…
rtibbles Mar 4, 2016
68a92e5
Integrates latest version of Perseus into KA Lite.
rtibbles Mar 4, 2016
f0a3235
Adds font-awesome to fix some font rendering issues.
rtibbles Mar 4, 2016
b6f6f4e
Use glyphicons instead of unicode character for attempt history bar.
rtibbles Mar 4, 2016
2fa722d
Use self.assert* rather than assert.
rtibbles Mar 4, 2016
f7e37b4
Merge pull request #4960 from rtibbles/sidebar_bug_fix
rtibbles Mar 4, 2016
db8229b
Attempts to ensure against inappropriately flagging topics as complete.
rtibbles Mar 3, 2016
d8f7e67
Escapes %s to stop sprintf throwing an error.
rtibbles Mar 3, 2016
62db1e8
Merge branch '0.16.x' into perseus_and_fonts
rtibbles Mar 4, 2016
d771904
Serve new .vtt format subtitles
MCGallaspy Mar 1, 2016
8bb1368
Remove old cruft
MCGallaspy Mar 1, 2016
95a2690
Upgrade to latest video.js
MCGallaspy Mar 1, 2016
33c50bd
Add workaround for lack of native text track support
MCGallaspy Mar 2, 2016
e482fc8
Add subtitle availability test
MCGallaspy Mar 3, 2016
0cb0c8a
Use delete_instance inside database context
MCGallaspy Mar 5, 2016
8325cc7
Merge pull request #4947 from benjaoming/twine
benjaoming Mar 7, 2016
8ce728a
Merge pull request #4963 from rtibbles/sprintf
aronasorman Mar 7, 2016
228755d
Merge pull request #4943 from MCGallaspy/4166-serve-subtitles
rtibbles Mar 7, 2016
145a04d
Reinstates and fixes BACKUP_VIDEO_SOURCE annotation.
rtibbles Mar 7, 2016
1d374fc
Merge branch 'annotate' of https://github.com/rtibbles/ka-lite into p…
kalitebuilder Mar 7, 2016
849be21
Merge remote-tracking branch 'origin/perseus_and_fonts' into prerelea…
kalitebuilder Mar 7, 2016
f158d41
Merge remote-tracking branch 'origin/reinstate_backup' into prereleas…
kalitebuilder Mar 7, 2016
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
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ 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
- [ ] Add an entry to CHANGELOG.rst

## Reviewer guidance

Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ static-updates
# MAC stuff
.DS_Store

# oh-my-zsh
.venv

# SQLite files (should probably specify the path)
*.db
*.sqlite*
Expand All @@ -41,6 +44,7 @@ static-updates
*.patch
*.pid
*.prof
secretkey.txt

# Python compiling
*.pyc
Expand All @@ -59,7 +63,6 @@ static-updates
# Documentation
docs/_build
docs/images/*
docs/kalite.1.gz

# oh-my-zsh convention for automatically
# switching on a venv
Expand All @@ -72,6 +75,9 @@ 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

# Lacks documentation
locale/
node_modules/
Expand Down
17 changes: 11 additions & 6 deletions MANIFEST.in.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,29 @@ include requirements.txt

recursive-include kalite *.html *.txt *.png *.js *.css *.gif *.less *.otf *.svg *.woff *.eot *.ttf *.zip *.json *.handlebars

# Get the empty DBs -- make sure they are properly generated!
recursive-exclude kalite/database *
recursive-include kalite/database/templates *sqlite
recursive-include kalite/database/templates/content_items *sqlite

# This can be a huge problem when creating an sdist from
# a local development environment
recursive-exclude kalite/static *

# Not doing this anymore
# exclude kalite/local_settings.py
# exclude kalite/settings/local_settings.py
# exclude kalite/private_key.pem
# exclude kalite/secrets.py

# 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 *
recursive-exclude data/khan *

# Necessary because it's a data directory so they
# do not get automatically excluded
recursive-exclude python-packages *pyc

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

36 changes: 26 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,25 @@ help:
@echo "assets - build all JS/CSS assets"
@echo "coverage - check code coverage quickly with the default Python"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "release - package and upload a release"
@echo "dist - package locally"
@echo "release - package and upload a release, options: format=[gztar,zip]"
@echo "dist - package locally, options: format=[gztar,zip]"
@echo "install - install the package to the active Python's site-packages"

# 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-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
rm -fr dist-packages/
rm -fr dist-packages-temp/
rm -fr kalite/database/templates
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +

Expand All @@ -45,7 +52,7 @@ lint:
test:
bin/kalite manage test --bdd-only

test-bdd:
test-bdd: docs
bin/kalite manage test --bdd-only

test-nobdd:
Expand Down Expand Up @@ -73,24 +80,33 @@ docs:
# sphinx-apidoc -o docs/ ka-lite-gtk
$(MAKE) -C docs clean
$(MAKE) -C docs html
cli2man bin/kalite -o docs/kalite.1.gz
# open docs/_build/html/index.html


# Runs separately from the docs command for now because of Windows issues
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
mkdir -p kalite/database/templates/
cp kalite/database/data.sqlite kalite/database/templates/
bin/kalite manage retrievecontentpack download en --minimal --foreground --template

release: clean docs assets
python setup.py sdist --formats=gztar,zip upload --sign
python setup.py sdist --formats=gztar,zip upload --sign --static
release: dist man
ls -l dist
echo "uploading above to PyPi, using twine"
twine upload -s dist/*

dist: clean docs assets
python setup.py sdist
python setup.py sdist --static
dist: clean clean-dev-db docs assets
python setup.py sdist --formats=$(format)
python setup.py sdist --formats=$(format) --static
ls -l dist

install: clean
Expand Down
7 changes: 4 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ machine:

dependencies:
cache_directories:
- "content"
- "data"
- "sc-latest-linux"
override:
- pip install -r requirements_test.txt
- pip install -r requirements_sphinx.txt
- pip install -e .
# This cannot be done because pip on Circle doesn't understand our sdist
# - make sdist
Expand All @@ -18,15 +19,15 @@ dependencies:
test:
override:
- make assets
- kalite start --settings=kalite.project.settings.disk_based_cache --traceback -v2
- kalite start --traceback -v2
- kalite status
- kalite stop --traceback -v2
- cd sc-*-linux && ./bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY --tunnel-identifier $CIRCLE_BUILD_NUM-$CIRCLE_NODE_INDEX --readyfile ~/sauce_is_ready > sc_output.txt 2>&1:
background: true
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
- case $CIRCLE_NODE_INDEX in 0) make test-bdd ;; 1) make test-nobdd;; esac:
parallel: true
# TODO: replace below with "make link" when we're pep8
# TODO: replace below with "make lint" when we're pep8
- npm install -g jshint
- jshint kalite/*/static/js/*/
post:
Expand Down
7 changes: 0 additions & 7 deletions data/khan/channel_data.json

This file was deleted.

1 change: 0 additions & 1 deletion data/khan/contents.json

This file was deleted.

1 change: 0 additions & 1 deletion data/khan/exercises.json

This file was deleted.

Binary file removed data/khan/images/learning-image.png
Binary file not shown.
42 changes: 0 additions & 42 deletions data/khan/make_unique_slugs.py

This file was deleted.

1 change: 0 additions & 1 deletion data/khan/topics.json

This file was deleted.

Loading