From ec911e39b920dddf42be1c6622c0a22b711de238 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Thu, 1 Feb 2024 01:27:59 +0530 Subject: chore: migrated to pyproject --- .github/workflows/pypi.yml | 19 ++++++------------- pyproject.toml | 21 +++++++++++++++++++++ readme.txt | 0 requirements.txt | 2 -- 4 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 pyproject.toml create mode 100644 readme.txt delete mode 100644 requirements.txt diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index ffeb5c2..e880118 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8218a02 --- /dev/null +++ b/pyproject.toml @@ -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 "] +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__" diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index ad3416e..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -httpx -krfzf-py -- cgit v1.1