diff options
author | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:27:59 +0530 |
---|---|---|
committer | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-01 01:27:59 +0530 |
commit | ec911e39b920dddf42be1c6622c0a22b711de238 (patch) | |
tree | f42b80181163592ec87003738e76e6b0098419d8 | |
parent | d52dbe5006b12ddfef8317ff472cc8120799687c (diff) | |
download | yt-music-ec911e39b920dddf42be1c6622c0a22b711de238.zip yt-music-ec911e39b920dddf42be1c6622c0a22b711de238.tar.gz |
chore: migrated to pyproject
-rw-r--r-- | .github/workflows/pypi.yml | 19 | ||||
-rw-r--r-- | pyproject.toml | 21 | ||||
-rw-r--r-- | readme.txt | 0 | ||||
-rw-r--r-- | requirements.txt | 2 |
4 files changed, 27 insertions, 15 deletions
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 <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__" diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/readme.txt 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 |