Commit 16f51b10 by Jeremy Bowman

PLAT-1861 Support pyfilesystem2

parent 0e744b39
language: python
sudo: false
install:
- echo "Nothing to install"
script:
- echo "TODO: add tests"
deploy:
provider: pypi
user: edx
password:
secure: ""
distributions: sdist bdist_wheel
on:
tags: true
......@@ -6,7 +6,8 @@ problem. The resources are recommended, edited, and voted by students.
For each resource, we show its title, link, short summary, preview
screenshot, and votes:
![Recommender screenshot](recommender_xblock.png)
.. image:: recommender_xblock.png
:alt: Recommender screenshot
This is an module where students can share useful resources/hints and rate
them. This crowdsourcing mechanism allows a scalable solution to fulfill
......@@ -16,7 +17,7 @@ students with varying learning needs.
de-endorse resource
* Discussion around each resource
* Better interface for adding varying types of resource (e.g., specific timestamps
in the video or specific elements in a learning sequence)1
in the video or specific elements in a learning sequence)
* Better user help/documentation
* Tag/categorize resources around specific misconceptions
......
......@@ -550,7 +550,7 @@ class RecommenderXBlock(HelperXBlock):
try:
content = request.POST['file'].file.read()
file_id = hashlib.md5(content).hexdigest()
file_name = (file_id + '.' + result)
file_name = u'{}.{}'.format(file_id, result)
fhwrite = self.fs.open(file_name, "wb")
fhwrite.write(content)
......
......@@ -5,6 +5,9 @@ import subprocess
from setuptools.command.install import install as _install
from setuptools import setup
base_path = os.path.dirname(__file__)
README = open(os.path.join(base_path, "README.rst")).read()
class XBlockInstall(_install):
"""Custom XBlock install command."""
......@@ -43,11 +46,16 @@ def package_data(pkg, root_list):
setup(
name='recommender-xblock',
version='1.2',
version='1.3',
description='recommender XBlock', # TODO: write a better description.
long_description=README,
author='edX',
author_email='oscm@edx.org',
url='https://github.com/edx/RecommenderXBlock',
packages=[
'recommender',
],
license='AGPL 3.0',
entry_points={
'xblock.v1': [
'recommender = recommender:RecommenderXBlock',
......@@ -57,4 +65,18 @@ setup(
cmdclass={
'install': XBlockInstall,
},
keywords="Django edx",
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Framework :: Django :: 1.10",
"Framework :: Django :: 1.11",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment