Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish package to PyPi

on:
release:
types: [published]

jobs:

push:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install pip
run: pip install pip

- name: Install Dependencies
run: pip install setuptools wheel

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
9 changes: 5 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
# make upgrade
#
appdirs==1.4.4 # via fs
fs==2.4.11 # via xblock
fs==2.4.12 # via xblock
lxml==4.6.2 # via xblock
markupsafe==1.1.1 # via xblock
python-dateutil==2.8.1 # via xblock
pytz==2020.5 # via fs, xblock
pytz==2021.1 # via fs, xblock
pyyaml==5.3.1 # via xblock
six==1.15.0 # via fs, python-dateutil, xblock
web-fragments==0.3.2 # via xblock
webob==1.8.6 # via xblock
typing==3.7.4.3 # via fs
web-fragments==1.0.0 # via xblock
webob==1.8.7 # via xblock
xblock==1.4.0 # via -r requirements/base.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def load_requirements(*requirements_paths):
return list(requirements)


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


def is_requirement(line):
"""
Return True if the requirement line is a package requirement;
Expand All @@ -41,7 +45,7 @@ def is_requirement(line):

setup(
name='done-xblock',
version='2.0.3',
version='2.0.4',
description='done XBlock', # TODO: write a better description.
classifiers=[
'Programming Language :: Python :: 2',
Expand All @@ -57,4 +61,6 @@ def is_requirement(line):
]
},
package_data=package_data("done", "static"),
long_description=long_description,
long_description_content_type='text/markdown'
)