Skip to content

Commit

Permalink
Merge pull request #63 from glensc/publish-pip
Browse files Browse the repository at this point in the history
Add workflows/pypi workflow
  • Loading branch information
glensc authored Feb 15, 2024
2 parents 8a259c7 + bf2c43e commit ac5c4fa
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
workflow_dispatch: ~
release:
types: [published]
push:
tags:
- '*.*.*'

permissions:
contents: read

env:
DEFAULT_PYTHON: 3.11

jobs:
deploy:
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/plex-fuse
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.DEFAULT_PYTHON }}

- name: Install dependencies and build
env:
APP_VERSION: ${{ steps.vars.outputs.version }}
run: |
set -x
python -m pip install --upgrade build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

# vim:ts=2:sw=2:et
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[project]
name = "plex-fuse"
version = "0.3.0"

description = "Plex FUSE Filesystem - Mount Remote Plex Media Server contents as local filesystem"
license = { file = "LICENSE" }
readme = "README.md"
keywords = ["fuse", "filesystem", "fs", "plex", "fuse-filesystem", "user-space"]
authors = [
{ name = "Elan Ruusamäe", email = "glen@pld-linux.org" },
]

requires-python = ">= 3.11"
dependencies = [
"fuse-python",
"plexapi>=4.15",
"requests-cache>=1.1",
]

classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: End Users/Desktop",
"Topic :: System :: Filesystems",
"Topic :: Multimedia :: Video :: Display",
# Pick your license as you wish (see also "license" above)
"License :: OSI Approved :: BSD License",
# Specify the Python versions you support here.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.urls]
Homepage = "https://github.com/glensc/plex-fuse"
Documentation = "https://github.com/glensc/plex-fuse#plex-fuse-filesystem"
Repository = "https://github.com/glensc/plex-fuse"
Issues = "https://github.com/glensc/plex-fuse/issues"
Changelog = "https://github.com/glensc/plex-fuse/releases"

[project.scripts]
plex-fuse = "plexfuse.fs.main:main"

[tool.setuptools.packages.find]
where = ["plexfuse"]

0 comments on commit ac5c4fa

Please sign in to comment.