Skip to content

Commit 437c936

Browse files
Merge pull request #95 from edx/pypi-release
Release to pypi
2 parents babbe78 + 6f77bcb commit 437c936

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

.github/workflows/pypi-release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish package to PyPi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
9+
push:
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: setup python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.5
19+
20+
- name: Install pip
21+
run: pip install pip
22+
23+
- name: Install Dependencies
24+
run: pip install setuptools wheel
25+
26+
- name: Build package
27+
run: python setup.py sdist bdist_wheel
28+
29+
- name: Publish to PyPi
30+
uses: pypa/gh-action-pypi-publish@master
31+
with:
32+
user: __token__
33+
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}

setup.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,26 @@
22

33
from setuptools import setup
44

5+
with open('README.rst') as readme:
6+
long_description = readme.read()
7+
58
setup(
69
name="codejail",
7-
version="3.1.3",
10+
version="3.1.4",
11+
license='Apache',
12+
description='CodeJail manages execution of untrusted code in secure sandboxes. It is designed primarily for '
13+
'Python execution, but can be used for other languages as well.',
14+
long_description=long_description,
15+
keywords='edx codejail',
16+
author='edX',
17+
author_email="[email protected]",
18+
url='https://github.com/edx/codejail',
819
packages=['codejail'],
920
install_requires=['six'],
1021
zip_safe=False,
1122
classifiers=[
1223
"License :: OSI Approved :: Apache Software License",
13-
"Operating System :: POSIX :: Ubuntu",
24+
"Operating System :: POSIX :: Linux",
1425
"Development Status :: 5 - Production/Stable",
1526
"Intended Audience :: Developers",
1627
'Programming Language :: Python',

0 commit comments

Comments
 (0)