From 3b1bc1d5c4470f016f5ffc4697e874f0eaad49f8 Mon Sep 17 00:00:00 2001 From: Leon Bohmann Date: Tue, 30 Nov 2021 11:59:45 +0100 Subject: [PATCH 1/4] added setup py for github ci/cd --- setup.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..5c2cec92 --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +import pathlib +from setuptools import setup +import setuptools + + + +# The directory containing this file +HERE = pathlib.Path(__file__).parent + +# The text of the README file +README = (HERE / "README.md").read_text() + +# This call to setup() does all the work +setup( + name="zspotify", + version="0.5.3", + description="A spotify downloader.", + long_description=README, + long_description_content_type="text/markdown", + url="https://github.com/Footsiefat/zspotify.git", + author="logykk", + author_email="logykk@mail.com", + license="GPLv3", + classifiers=[ + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Programming Language :: Python :: 3.9", + ], + packages=['zspotify'], + install_requires=['ffmpy', 'music_tag', 'Pillow', 'protobuf', 'tabulate', 'tqdm', 'git+https://github.com/kokarare1212/librespot-python'], + include_package_data=True, +) \ No newline at end of file From ff0f41335ce08c1e8b00606e6f4cd76934a7144b Mon Sep 17 00:00:00 2001 From: Leon Bohmann Date: Tue, 30 Nov 2021 12:02:56 +0100 Subject: [PATCH 2/4] add publish workflow --- workflows/pypi-publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 workflows/pypi-publish.yml diff --git a/workflows/pypi-publish.yml b/workflows/pypi-publish.yml new file mode 100644 index 00000000..5573db43 --- /dev/null +++ b/workflows/pypi-publish.yml @@ -0,0 +1,31 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: PyPi Upload + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* \ No newline at end of file From 3003e681ef2b86c2caabeb762c8764ebf3676b55 Mon Sep 17 00:00:00 2001 From: Leon Bohmann Date: Tue, 30 Nov 2021 12:06:23 +0100 Subject: [PATCH 3/4] moved workflow file into github folder --- {workflows => .github/workflows}/pypi-publish.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {workflows => .github/workflows}/pypi-publish.yml (100%) diff --git a/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml similarity index 100% rename from workflows/pypi-publish.yml rename to .github/workflows/pypi-publish.yml From 3ec733262cc9a11970c8aa01f5d94e75b1831d2d Mon Sep 17 00:00:00 2001 From: Logykk <35679186+logykk@users.noreply.github.com> Date: Wed, 1 Dec 2021 21:39:25 +1300 Subject: [PATCH 4/4] Update setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5c2cec92..d8c720f6 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( long_description_content_type="text/markdown", url="https://github.com/Footsiefat/zspotify.git", author="logykk", - author_email="logykk@mail.com", + author_email="logyx1@protonmail.com", license="GPLv3", classifiers=[ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", @@ -28,4 +28,4 @@ setup( packages=['zspotify'], install_requires=['ffmpy', 'music_tag', 'Pillow', 'protobuf', 'tabulate', 'tqdm', 'git+https://github.com/kokarare1212/librespot-python'], include_package_data=True, -) \ No newline at end of file +)