Skip to content

Commit

Permalink
Updated for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
bpabel committed Jan 17, 2020
1 parent a6f4ded commit e1587cf
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to PyPi

on:
release:
types: [created]

jobs:
deploy:
name: Build and publish Python distributions to PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine pep517
- name: Build a binary wheel and source tarball
run: |
python -m pep517.build --source --binary --out-dir dist/ .
- name: Publish distributions to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@ build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "rocketchat"
dist-name = "rocketchat-api"
author = "Brendan Abel"
author-email = "[email protected]"
home-page = "https://github.com/bpabel/rocketchat"
description-file = "README.md"
requires-python = ">=2.7"
requires-python = ">=3.6"
requires = ["requests >=2,<3"]
keywords = "rocketchat,chat"
keywords = "rocketchat,chat,api"
classifiers = [
"License :: OSI Approved :: MIT License",
]

[tool.flit.metadata.requires-extra]
test = [
"pytest",
"mock",
]
test = ["pytest", "mock"]
doc = ["sphinx"]
1 change: 0 additions & 1 deletion rocketchat/rocketchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from pprint import pprint
import inspect
import json
Expand Down

0 comments on commit e1587cf

Please sign in to comment.