mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 06:10:12 +01:00
Add PyPI release
This commit is contained in:
parent
ff0bc1aa4c
commit
7bc877a20d
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -58,18 +58,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SHA2: ${{ hashFiles('youtube-dlc') }}
|
SHA2: ${{ hashFiles('youtube-dlc') }}
|
||||||
run: echo "::set-output name=sha2_unix::$SHA2"
|
run: echo "::set-output name=sha2_unix::$SHA2"
|
||||||
# - name: Install dependencies for pypi
|
- name: Install dependencies for pypi
|
||||||
# run: |
|
run: |
|
||||||
# python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
# pip install setuptools wheel twine
|
pip install setuptools wheel twine
|
||||||
# - name: Build and publish
|
- name: Build and publish on pypi
|
||||||
# env:
|
env:
|
||||||
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
TWINE_USERNAME: __token__
|
||||||
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
# run: |
|
run: |
|
||||||
# rm -rf dist/*
|
rm -rf dist/*
|
||||||
# python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
# twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
build_windows:
|
build_windows:
|
||||||
|
|
||||||
|
|
33
.github/workflows/python-publish.yml.disable
vendored
33
.github/workflows/python-publish.yml.disable
vendored
|
@ -1,33 +0,0 @@
|
||||||
# This workflows 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: Upload Python Package
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- release
|
|
||||||
|
|
||||||
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: |
|
|
||||||
rm -rf dist/*
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
twine upload dist/*
|
|
13
README.md
13
README.md
|
@ -75,15 +75,14 @@ # NEW FEATURES
|
||||||
|
|
||||||
# INSTALLATION
|
# INSTALLATION
|
||||||
|
|
||||||
To use the latest version, simply download and run the [latest release](https://github.com/pukkandan/yt-dlp/releases/latest).
|
You can install yt-dlp using one of the following methods:
|
||||||
Currently, there is no support for any package managers.
|
* Use [PyPI package](https://pypi.org/project/yt-dlp/): `python -m pip install --upgrade yt-dlp`
|
||||||
|
* Download the binary from the [latest release](https://github.com/pukkandan/yt-dlp/releases/latest)
|
||||||
If you want to install the current master branch
|
* Use pip+git: `python -m pip install --upgrade git+https://github.com/pukkandan/yt-dlp.git@release`
|
||||||
|
* Install master branch: `python -m pip install --upgrade git+https://github.com/pukkandan/yt-dlp`
|
||||||
python -m pip install git+https://github.com/pukkandan/yt-dlp
|
|
||||||
|
|
||||||
### UPDATE
|
### UPDATE
|
||||||
**DO NOT UPDATE using `-U` !** instead download binaries again
|
`-U` does not work. Simply repeat the install process to update.
|
||||||
|
|
||||||
### COMPILE
|
### COMPILE
|
||||||
|
|
||||||
|
|
26
setup.py
26
setup.py
|
@ -11,8 +11,12 @@
|
||||||
exec(compile(open('youtube_dlc/version.py').read(),
|
exec(compile(open('youtube_dlc/version.py').read(),
|
||||||
'youtube_dlc/version.py', 'exec'))
|
'youtube_dlc/version.py', 'exec'))
|
||||||
|
|
||||||
DESCRIPTION = 'Media downloader supporting various sites such as youtube'
|
DESCRIPTION = 'Command-line program to download videos from YouTube.com and many other other video platforms.'
|
||||||
LONG_DESCRIPTION = 'Command-line program to download videos from YouTube.com and other video sites. Based on a more active community fork.'
|
|
||||||
|
LONG_DESCRIPTION = '\n\n'.join((
|
||||||
|
'Official repository: <https://github.com/pukkandan/yt-dlp>',
|
||||||
|
'**PS**: Many links in this document will not work since this is a copy of the README.md from Github',
|
||||||
|
open("README.md", "r", encoding="utf-8").read()))
|
||||||
|
|
||||||
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
||||||
print("inv")
|
print("inv")
|
||||||
|
@ -59,19 +63,21 @@ def run(self):
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="youtube_dlc",
|
name="yt-dlp",
|
||||||
version=__version__,
|
version=__version__,
|
||||||
maintainer="Tom-Oliver Heidel",
|
maintainer="pukkandan",
|
||||||
maintainer_email="theidel@uni-bremen.de",
|
maintainer_email="pukkandan@gmail.com",
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
# long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/pukkandan/yt-dlp",
|
url="https://github.com/pukkandan/yt-dlp",
|
||||||
packages=find_packages(exclude=("youtube_dl","test",)),
|
packages=find_packages(exclude=("youtube_dl","test",)),
|
||||||
#packages=[
|
project_urls={
|
||||||
# 'youtube_dlc',
|
'Documentation': 'https://github.com/pukkandan/yt-dlp#yt-dlp',
|
||||||
# 'youtube_dlc.extractor', 'youtube_dlc.downloader',
|
'Source': 'https://github.com/pukkandan/yt-dlp',
|
||||||
# 'youtube_dlc.postprocessor'],
|
'Tracker': 'https://github.com/pukkandan/yt-dlp/issues',
|
||||||
|
#'Funding': 'https://donate.pypi.org',
|
||||||
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Topic :: Multimedia :: Video",
|
"Topic :: Multimedia :: Video",
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user