Skip to content

Commit

Permalink
add upload section
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulqarnain committed Jun 1, 2020
1 parent 2378bec commit ce4defa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ script:
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down

deploy:
provider: pypi
user: edx
password:
secure: #TODO add encrypted credentials here
distributions: sdist bdist_wheel
on:
tags: true
python: 3.5
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import os
from setuptools import setup

with open('README.md') as a:
long_description = a.read()


def package_data(pkg, roots):
"""Generic function to find package_data.
Expand Down Expand Up @@ -48,6 +51,8 @@ def is_requirement(line):
name='crowdsourcehinter-xblock',
version='0.5',
description='crowdsourcehinter XBlock', # TODO: write a better description.
long_description=long_description,
author='edX',
packages=[
'crowdsourcehinter',
],
Expand All @@ -58,6 +63,7 @@ def is_requirement(line):
]
},
package_data=package_data("crowdsourcehinter", ["static", "public"]),
url='https:/edx/crowdsourcehinter/',
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
Expand Down

0 comments on commit ce4defa

Please sign in to comment.