plutopluto

git clone https://git.ce9e.org/plutopluto.git

commit
a3be8b2a35f4c17e59104fe98ae11076cd3627df
parent
596595f84cdccb06fb5f07064c1a1e685958dd07
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-21 10:19
switch to pyproject.toml

Diffstat

D MANIFEST.in 9 ---------
A pyproject.toml 42 ++++++++++++++++++++++++++++++++++++++++++
D setup.py 42 ------------------------------------------

3 files changed, 42 insertions, 51 deletions


diff --git a/MANIFEST.in b/MANIFEST.in

@@ -1,9 +0,0 @@
    1    -1 include README.rst
    2    -1 include example.cfg
    3    -1 include plutopluto/index.html
    4    -1 include plutopluto/static/color.css
    5    -1 include plutopluto/static/favicon.ico
    6    -1 include plutopluto/static/jqlite.js
    7    -1 include plutopluto/static/mustache.js
    8    -1 include plutopluto/static/plutopluto.css
    9    -1 include plutopluto/static/plutopluto.js

diff --git a/pyproject.toml b/pyproject.toml

@@ -0,0 +1,42 @@
   -1     1 [build-system]
   -1     2 requires = ["setuptools"]
   -1     3 build-backend = "setuptools.build_meta"
   -1     4 
   -1     5 [project]
   -1     6 name = "plutopluto"
   -1     7 description = "simple feed aggregator"
   -1     8 readme = "README.md"
   -1     9 authors = [{name = "Tobias Bengfort", email = "tobias.bengfort@posteo.de"}]
   -1    10 license = {text = "GPLv2+"}
   -1    11 classifiers = [
   -1    12     "Environment :: Web Environment",
   -1    13     "Intended Audience :: End Users/Desktop",
   -1    14     "Operating System :: OS Independent",
   -1    15     "Programming Language :: Python",
   -1    16     "Programming Language :: JavaScript",
   -1    17     "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
   -1    18     "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary",
   -1    19 ]
   -1    20 urls = {Homepage = "https://github.com/xi/plutopluto"}
   -1    21 dependencies = [
   -1    22     "aiohttp",
   -1    23     "feedparser",
   -1    24 ]
   -1    25 dynamic = ["version"]
   -1    26 
   -1    27 [project.scripts]
   -1    28 plutopluto = "plutopluto:main"
   -1    29 
   -1    30 [tool.setuptools]
   -1    31 packages = ["plutopluto"]
   -1    32 
   -1    33 [tool.setuptools.dynamic]
   -1    34 version = {attr = "plutopluto.__version__"}
   -1    35 
   -1    36 [tool.setuptools.package-data]
   -1    37 plutopluto = [
   -1    38     "index.html",
   -1    39     "static/favicon.ico",
   -1    40     "static/*.css",
   -1    41     "static/*.js",
   -1    42 ]

diff --git a/setup.py b/setup.py

@@ -1,42 +0,0 @@
    1    -1 #!/usr/bin/env python
    2    -1 
    3    -1 import os
    4    -1 import re
    5    -1 from setuptools import setup
    6    -1 
    7    -1 DIRNAME = os.path.abspath(os.path.dirname(__file__))
    8    -1 rel = lambda *parts: os.path.abspath(os.path.join(DIRNAME, *parts))
    9    -1 
   10    -1 README = open(rel('README.md')).read()
   11    -1 INIT = open(rel('plutopluto', '__init__.py')).read()
   12    -1 VERSION = re.search("__version__ = '([^']+)'", INIT).group(1)
   13    -1 
   14    -1 
   15    -1 setup(
   16    -1     name='plutopluto',
   17    -1     version=VERSION,
   18    -1     description="simple feed aggregator",
   19    -1     long_description=README,
   20    -1     url='https://github.com/xi/plutopluto',
   21    -1     author='Tobias Bengfort',
   22    -1     author_email='tobias.bengfort@posteo.de',
   23    -1     packages=['plutopluto'],
   24    -1     include_package_data=True,
   25    -1     install_requires=[
   26    -1         'aiohttp',
   27    -1         'feedparser',
   28    -1     ],
   29    -1     entry_points={'console_scripts': [
   30    -1         'plutopluto=plutopluto:main',
   31    -1     ]},
   32    -1     license='GPLv2+',
   33    -1     classifiers=[
   34    -1         'Environment :: Web Environment',
   35    -1         'Intended Audience :: End Users/Desktop',
   36    -1         'Operating System :: OS Independent',
   37    -1         'Programming Language :: Python',
   38    -1         'Programming Language :: JavaScript',
   39    -1         'License :: OSI Approved :: GNU General Public License v2 or later '
   40    -1             '(GPLv2+)',
   41    -1         'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary',
   42    -1     ])