-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
PYPI_TOKEN = credentials('pypi_token') | ||
} | ||
|
||
stages { | ||
stage('Checkout'){ | ||
steps { | ||
checkout scm | ||
} | ||
} | ||
stage('Build and publish pypi package') { | ||
when { expression { sh([returnStdout: true, script: "git tag -l --contains $GIT_COMMIT | grep '^v' || true"]) } } | ||
steps { | ||
sh ''' | ||
# If we are within docker, we need to hack around to get the volume mount path on the host system for our docker runs down below | ||
if docker inspect `hostname` 2>/dev/null; then | ||
DOCKER_VOLUME_ROOT=$(docker inspect `hostname` | jq -r '.[0].Mounts | .[] | select(.Destination=="/home/jenkins") | .Source') | ||
REAL_PWD=$(echo $PWD | sed "s|/home/jenkins|$DOCKER_VOLUME_ROOT|") | ||
else | ||
REAL_PWD=$PWD | ||
fi | ||
docker run --rm -v $REAL_PWD:/app -w /app python:3.10-slim-buster bash -c "pip install poetry && poetry build -f sdist && poetry publish -n -u __token__ -p $PYPI_TOKEN" | ||
''' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[tool.poetry] | ||
name = "ydl-podcast" | ||
version = "1.0.0" | ||
description = "A simple tool to generate Podcast-like RSS feeds from youtube (or other youtube-dl supported services) channels, using youtube-dl" | ||
license = "MIT" | ||
authors = ["nbr23 <[email protected]>"] | ||
homepage = "https://github.com/nbr23/ydl-podcast" | ||
repository = "https://github.com/nbr23/ydl-podcast" | ||
keywords = ["podcast", "youtube-dl"] | ||
readme = "README.md" | ||
|
||
packages = [ | ||
{ include = "ydl_podcast" } | ||
] | ||
|
||
[tool.poetry.scripts] | ||
ydl-podcast = 'ydl_podcast.__main__:main' | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
youtube-dl = ">=2021.12.17" | ||
PyYAML = "6.0" | ||
Jinja2 = "^3.1.2" | ||
MarkupSafe = "^2.1.1" | ||
yt-dlp = { version = ">=2022.10.4", optional = true } | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
yt-dlp = ["yt-dlp"] | ||
youtube-dl = ["youtube-dl"] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.