Skip to content

Commit

Permalink
Publish to pip via github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Feb 1, 2023
1 parent 95c7ac3 commit 984d731
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
with open("README.md", "r") as f:
long_description = f.read()

with open('requirements.txt') as f:
requirements = f.read().splitlines()

setup(
name="speedport-api",
version="0.4.4",
Expand All @@ -22,7 +19,7 @@
packages=["speedport"],
include_package_data=True,
python_requires=">=3.8",
install_requires=requirements,
install_requires=["aiohttp", "pycryptodome"],
entry_points={
'console_scripts': [
'speedport = speedport.__main__:start',
Expand Down

0 comments on commit 984d731

Please sign in to comment.