Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Update setup.py and make it available on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Aug 8, 2015
1 parent 2ff6f06 commit 8542107
Show file tree
Hide file tree
Showing 7 changed files with 716 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ logs/*
# coverage
htmlcov
.coverage
build

build
dist
671 changes: 671 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include DESCRIPTION.rst

recursive-include ubcpi/static *
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ workbench:
DJANGO_SETTINGS_MODULE=settings.dev python manage.py syncdb --migrate -v 0
@echo "Starting server..."
DJANGO_SETTINGS_MODULE=settings.dev python manage.py runserver_plus

release:
pandoc --from=markdown --to=rst README.md -o README.rst
python setup.py bdist_egg upload
python setup.py sdist upload
rm README.rst
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Run tests:

## Changelog

### [0.4.0](https://github.com/ubc/ubcpi/issues?q=milestone%3A0.4+is%3Aclosed)
1. Added unit and acceptance tests with 100% coverage
2. Disabled chart generation when there is not enough response
3. Improved accessibility
4. A lot of code refactoring

### [0.3.0](https://github.com/ubc/ubcpi/issues?q=milestone%3A0.3+is%3Aclosed)

1. Added the 'random' algorithm which allows a student to see a completely random selection of others' answers
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
32 changes: 25 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Setup for ubcpi XBlock."""

import os
from setuptools import setup
from setuptools import setup, find_packages


def package_data(pkg, roots):
Expand All @@ -20,21 +20,39 @@ def package_data(pkg, roots):
return {pkg: data}


def readme():
with open('README.rst') as f:
return f.read()


setup(
name='ubcpi-xblock',
version='0.1',
description='ubcpi XBlock', # TODO: write a better description.
packages=[
'ubcpi',
],
version='0.4.1',
description='UBC Peer Instruction XBlock',
long_description=readme(),
license='Affero GNU General Public License v3 (GPLv3)',
url="https://github.com/ubc/ubcpi",
author="UBC CTLT",
author_email="[email protected]",
packages=find_packages(),
install_requires=[
'XBlock',
'edx-submissions',
],
entry_points={
'xblock.v1': [
'ubcpi = ubcpi.ubcpi:PeerInstructionXBlock',
]
},
package_data=package_data("ubcpi", ["static", "public"]),
keywords=['edx', 'peer instruction', 'ubc'],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Plugins",
"Framework :: Django",
"Intended Audience :: Education",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: JavaScript",
"Topic :: Education",
],
)

0 comments on commit 8542107

Please sign in to comment.