Skip to content

Commit

Permalink
chore: migrated to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonKingSwarn committed Jan 31, 2024
1 parent d52dbe5 commit ec911e3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,18 @@ on:
push:
paths:
- "yt_music/__version__.py"
- "pyproject.toml"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checking out repository content
uses: actions/checkout@v2

- name: Setting up Python 3.11
uses: actions/setup-python@v2
- name: Checkout
uses: actions/checkout@v3
with:
python-version: '3.11'

- name: Build the file
run: |
pip install setuptools wheel
python setup.py sdist
- name: Publish a Python distribution to PyPI
fetch-depth: 0
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "yt-music"
version = "0.0.1"
description = "A command line YouTube Music client."
authors = ["DemonKingSwarn <rockingswarn@gmail.com>"]
license = "GPLv3"
readme = "readme.txt"

[tool.poetry.dependencies]
python = "^3.10"
httpx = "0.23.0"
krfzf-py = "^0.0.4"

[tool.poetry.dev-dependencies]

[tool.poetry.scripts]
yt-music = "yt_music.__main__:__ytmusic__"
Empty file added readme.txt
Empty file.
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit ec911e3

Please sign in to comment.