Skip to content

Commit 43deb14

Browse files
celiaoclaude
andcommitted
Migrate to pyproject.toml (PEP 517/518 compliance)
- Replace setup.py with pyproject.toml using setuptools backend - Update publish workflow to use 'python -m build' instead of 'python setup.py sdist bdist_wheel' Closes #65 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 34ccb42 commit 43deb14

3 files changed

Lines changed: 32 additions & 37 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install setuptools wheel twine
25+
pip install build twine
2626
- name: Build and publish to PyPI
2727
env:
2828
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2929
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3030
run: |
31-
python setup.py sdist bdist_wheel
31+
python -m build
3232
twine upload dist/*
3333
- name: Create GitHub Release
3434
env:

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "tmdbsimple"
7+
version = "2.9.5"
8+
authors = [
9+
{ name = "Celia Oakley", email = "[email protected]" },
10+
]
11+
description = "A Python wrapper for The Movie Database API v3"
12+
readme = "README.md"
13+
requires-python = ">=3.9"
14+
license = { text = "GPLv3" }
15+
keywords = ["movie", "the movie database", "movie database", "tmdb",
16+
"wrapper", "database", "themoviedb", "moviedb", "api"]
17+
dependencies = ["requests"]
18+
classifiers = [
19+
"Development Status :: 5 - Production/Stable",
20+
"Intended Audience :: Developers",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Topic :: Utilities",
27+
]
28+
29+
[project.urls]
30+
Homepage = "https://github.com/celiao/tmdbsimple"

setup.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)