Skip to content

Commit 09a887a

Browse files
authored
Update plugin definitions to use pyproject.toml (#638)
1 parent 9f9d51a commit 09a887a

File tree

4 files changed

+83
-47
lines changed

4 files changed

+83
-47
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is an updated copy of lektor-atom plugin
2+
# which replaces the deprecated Werkzeug's atom with Pelican's feedgenerator.
3+
4+
[build-system]
5+
requires = [
6+
"setuptools==80.7.1",
7+
]
8+
build-backend = "setuptools.build_meta"
9+
10+
[project]
11+
name = "lektor-atom"
12+
version = "0.4.1"
13+
description = ""
14+
readme = "README.md"
15+
license = "MIT"
16+
requires-python = ">= 3.9"
17+
authors = [
18+
{name="A. Jesse Jiryu Davis", email="[email protected]"},
19+
]
20+
maintainers = [
21+
{name="BeeWare Team", email="[email protected]"},
22+
]
23+
classifiers = [
24+
"Environment :: Plugins",
25+
"Environment :: Web Environment",
26+
"Framework :: Lektor",
27+
"Intended Audience :: Developers",
28+
]
29+
keywords = [
30+
"Lektor",
31+
"plugin",
32+
"static-site",
33+
"blog",
34+
"atom",
35+
"rss",
36+
]
37+
dependencies = ["MarkupSafe", "feedgenerator"]
38+
39+
[project.urls]
40+
Source = "https://github.com/nixjdm/lektor-atom"
41+
42+
[project.entry-points."lektor.plugins"]
43+
atom = "lektor_atom:AtomPlugin"
Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
# This is an updated copy of lektor-atom plugin
3-
# which replaces the deprecated Werkzeug's atom with Pelican's feedgenerator.
4-
51
from setuptools import setup
62

7-
setup(
8-
author=u'A. Jesse Jiryu Davis',
9-
author_email='[email protected]',
10-
install_requires=['MarkupSafe', 'feedgenerator'],
11-
keywords='Lektor plugin static-site blog atom rss',
12-
license='MIT',
13-
name='lektor-atom',
14-
py_modules=['lektor_atom'],
15-
url='https://github.com/nixjdm/lektor-atom',
16-
version='0.4.0',
17-
classifiers=[
18-
'Environment :: Plugins',
19-
'Environment :: Web Environment',
20-
'Framework :: Lektor',
21-
'Intended Audience :: Developers',
22-
'License :: OSI Approved :: MIT License',
23-
],
24-
entry_points={
25-
'lektor.plugins': [
26-
'atom = lektor_atom:AtomPlugin',
27-
]
28-
}
29-
)
3+
setup()
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is a custom local plugin to add extra functionality to BeeWare site.
2+
3+
[build-system]
4+
requires = [
5+
"setuptools==80.7.1",
6+
]
7+
build-backend = "setuptools.build_meta"
8+
9+
[project]
10+
name = "lektor-beeware-plugin"
11+
version = "0.2.1"
12+
description = ""
13+
license = "MIT"
14+
requires-python = ">= 3.9"
15+
authors = [
16+
{name="Gonzalo Peña-Castellanos", email="[email protected]"},
17+
]
18+
maintainers = [
19+
{name="BeeWare Team", email="[email protected]"},
20+
]
21+
classifiers = [
22+
"Environment :: Plugins",
23+
"Environment :: Web Environment",
24+
"Framework :: Lektor",
25+
"Intended Audience :: Developers",
26+
]
27+
keywords = [
28+
"Lektor",
29+
"plugin",
30+
"static-site",
31+
]
32+
dependencies = ["Lektor", "MarkupSafe", "Pygments"]
33+
34+
[project.urls]
35+
Source = "https://github.com/beeware/beeware.github.io/tree/lektor/packages/lektor_beeware_plugin"
36+
37+
[project.entry-points."lektor.plugins"]
38+
beeware-plugin = "lektor_beeware_plugin:BeeWarePlugin"
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""This is a custom local plugin to ad extra functionality to BeeWare site."""
3-
4-
# Third party imports
51
from setuptools import setup
62

7-
8-
setup(
9-
name='lektor-beeware-plugin',
10-
author='Gonzalo Peña-Castellanos',
11-
author_email='[email protected]',
12-
url='https://github.com/beeware/beeware.github.io/tree/lektor/packages/lektor_beeware_plugin',
13-
version='0.2',
14-
license='MIT',
15-
py_modules=['lektor_beeware_plugin'],
16-
install_requires=['Lektor', 'MarkupSafe', 'Pygments'],
17-
entry_points={
18-
'lektor.plugins': [
19-
'beeware-plugin = lektor_beeware_plugin:BeeWarePlugin',
20-
]
21-
}
22-
)
3+
setup()

0 commit comments

Comments
 (0)