Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to pyproject.toml and bump minimum Python version to 3.9 #1459

Merged
merged 8 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# W605: invalid escape sequence
[flake8]
ignore=E128,E701,E702,E731,W503,W605
exclude=compat.py,venv
exclude=compat.py,venv,.venv
per-file-ignores =
tests/payloads.py:E501
max-complexity = -1
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ body:
id: python
attributes:
label: Python Version
placeholder: eg. 3.8.17
placeholder: eg. 3.9.20
validations:
required: true
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
CACHE_VERSION: 1
DEFAULT_PYTHON: 3.8
DEFAULT_PYTHON: 3.9

jobs:
lint-flake8:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [published]

env:
DEFAULT_PYTHON: 3.8
DEFAULT_PYTHON: 3.9

jobs:
build:
Expand All @@ -27,9 +27,8 @@ jobs:
- name: Install dependencies and build
run: |
pip install -U pip
pip install -r requirements.txt
pip install setuptools twine wheel
python setup.py sdist bdist_wheel
pip install build twine
python -m build

- name: Verify README
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pip-selfcheck.json
pyvenv.cfg
MANIFEST
venv/
.venv/

# path for the test lib.
plex/
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"

sphinx:
configuration: docs/conf.py
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include README.rst
include requirements.txt
recursive-exclude tests *
5 changes: 0 additions & 5 deletions package.json

This file was deleted.

39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[project]
name = "PlexAPI"
authors = [
{ name = "Michael Shepanski", email = "michael.shepanski@gmail.com" }
]
description = "Python bindings for the Plex API."
readme = "README.rst"
requires-python = ">=3.9"
keywords = ["plex", "api"]
license = {file = "LICENSE.txt"}
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
]
dependencies = ["requests"]
dynamic = ["version"]

[project.optional-dependencies]
alert = ["websocket-client>=1.3.3"]

[project.urls]
Homepage = "https://github.com/pkkid/python-plexapi"
Documentation = "https://python-plexapi.readthedocs.io"

[tool.setuptools.dynamic]
version = {attr = "plexapi.const.__version__"}

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
markers = [
"client: this is a client test.",
"req_client: require a client to run this test.",
"anonymously: test plexapi anonymously.",
"authenticated: test plexapi authenticated.",
]
6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

3 changes: 1 addition & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
# PlexAPI requirements to run py.test.
# pip install -r requirements_dev.txt
#---------------------------------------------------------
coveralls==4.0.1
flake8==7.1.1
pillow==10.4.0
pytest==8.3.3
pytest==8.3.2
pytest-cache==1.0
pytest-cov==5.0.0
pytest-mock==3.14.0
Expand Down
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

Loading