Skip to content

Commit 87132aa

Browse files
committed
packaging: migrate to latest setuptools standard
Remove setup.cfg, merging all info into pyproject.toml: - https://packaging.python.org/en/latest/specifications/pyproject-toml/ - https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html We follow latest standards, hence the raised minimum setuptools version to support [project.license]. The URL names are also chosen to have max overlap with those supported/visualised on PyPI: - https://docs.pypi.org/project_metadata/ Signed-off-by: MichaIng <[email protected]>
1 parent 6bcfa2e commit 87132aa

File tree

2 files changed

+55
-46
lines changed

2 files changed

+55
-46
lines changed

pyproject.toml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,57 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
5-
]
2+
requires = ["setuptools>=77.0.3"]
63
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "motioneye"
7+
dynamic = ["version"]
8+
dependencies = [
9+
"tornado>=6.5.0",
10+
"jinja2",
11+
"pillow",
12+
"pycurl",
13+
"babel",
14+
"boto3",
15+
]
16+
requires-python = ">=3.7"
17+
authors = [
18+
{name = "Calin Crisan", email = "[email protected]"},
19+
{name = "Jean Michault"},
20+
]
21+
maintainers = [
22+
[name = "MichaIng", email = "[email protected]"},
23+
]
24+
description = "motioneye, a multilingual web interface for motion."
25+
readme = "README.md"
26+
license = "GPL-3.0-or-later"
27+
license-files = ["LICENSE"]
28+
keywords = ["motion", "video", "surveillance", "frontend"]
29+
classifiers = [
30+
"Operating System :: POSIX :: Linux",
31+
"Programming Language :: Python :: 3",
32+
"Topic :: Multimedia :: Video :: Capture",
33+
]
34+
35+
[project.urls]
36+
Homepage = "https://github.com/motioneye-project/motioneye"
37+
Source = "https://github.com/motioneye-project/motioneye"
38+
Changelog = "https://github.com/motioneye-project/motioneye/releases"
39+
Issue = "https://github.com/motioneye-project/motioneye/issues"
40+
41+
[project.scripts]
42+
meyectl = "motioneye.meyectl:main"
43+
motioneye_init = "motioneye.motioneye_init:main"
44+
45+
[tool.setuptools]
46+
packages = ["motioneye"]
47+
include-package-data = false
48+
49+
[tool.setuptools.package-data]
50+
motioneye = ["extra/*", "static/*.*", "static/*/*", "templates/*", "scripts/*", "controls/*", "handlers/*", "utils/*", "locale/*/LC_MESSAGES/*.mo"]
51+
52+
[tool.setuptools.dynamic]
53+
version = {attr = "motioneye.VERSION"}
54+
55+
[tool.codespell]
56+
ignore-words-list = "ot"
57+
skip = "*.html,*.js,*.json,*.po,*.pot"

setup.cfg

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

0 commit comments

Comments
 (0)