Reorder package to src-layout, switch to GPLv2 license.

Move package to src directory and update project base files for build
process.
This project change the LICENSE from GPLv3 to GPLv2 after approval of
all contributors:
https://github.com/kjkoster
This commit is contained in:
2023-01-21 11:14:55 +01:00
parent f5dc026fbc
commit 76349cf811
45 changed files with 742 additions and 1005 deletions

View File

@@ -1,79 +1,55 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""Setupscript fuer RevPiPyLoad."""
"""Setup script for RevPiPyLoad."""
__author__ = "Sven Sager"
__copyright__ = "Copyright (C) 2018 Sven Sager"
__license__ = "GPLv3"
import distutils.command.install_egg_info
from glob import glob
from distutils.core import setup
__copyright__ = "Copyright (C) 2023 Sven Sager"
__license__ = "GPLv2"
from setuptools import find_namespace_packages, setup
class MyEggInfo(distutils.command.install_egg_info.install_egg_info):
"""Disable egg_info installation, seems pointless for a non-library."""
def run(self):
"""just pass egg_info."""
pass
from src.revpipyload import __version__
setup(
name="revpipyload",
version=__version__,
packages=find_namespace_packages("src"),
package_dir={'': 'src'},
include_package_data=True,
install_requires=[
"paho-mqtt >= 1.4.0",
"revpimodio2 >= 2.6.0rc1",
],
entry_points={
'console_scripts': [
'revpipyloadd = revpipyload.revpipyload:main',
'revpipyload_secure_installation = revpipyload.secure_installation:main',
],
},
platforms=["revolution pi"],
url="https://revpimodio.org/revpipyplc/",
license="GPLv2",
author="Sven Sager",
author_email="akira@narux.de",
url="https://revpimodio.org/revpipyplc/",
maintainer="Sven Sager",
maintainer_email="akira@revpimodio.org",
license="LGPLv3",
name="revpipyload",
version="0.9.8a2",
scripts=[
"data/revpipyload",
"data/revpipyload_secure_installation",
],
packages=[],
install_requires=["revpimodio2 >= 2.5.0"],
python_requires=">=3.2",
data_files=[
("/etc/avahi/services", [
"data/etc/avahi/services/revpipyload.service",
]),
("/etc/revpipyload", [
"data/etc/revpipyload/aclplcslave.conf",
"data/etc/revpipyload/aclxmlrpc.conf",
"data/etc/revpipyload/replace_ios.conf",
"data/etc/revpipyload/revpipyload.conf",
]),
("share/revpipyload", glob("revpipyload/*.*")),
("share/revpipyload/shared", glob("revpipyload/shared/*.*")),
("share/revpipyload/paho", ["lib/paho/__init__.py"]),
("share/revpipyload/paho/mqtt", glob("lib/paho/mqtt/*.*")),
("/var/lib/revpipyload", [
"data/var/lib/revpipyload/.placeholder",
])
],
description="PLC Loader für Python-Projekte auf den RevolutionPi",
long_description=""
"Dieses Programm startet beim Systemstart ein angegebenes Python PLC \n"
"Programm. Es überwacht das Programm und startet es im Fehlerfall neu. \n"
"Bei Absturz kann das gesamte /dev/piControl0 auf 0x00 gesetzt werden. \n"
"Außerdem stellt es einen XML-RPC Server bereit, über den die Software \n"
"auf den RevPi geladen werden kann. Das Prozessabbild kann über ein \n"
"Tool zur Laufzeit überwacht werden.",
long_description="Dieses Programm startet beim Systemstart ein angegebenes Python PLC \n"
"Programm. Es überwacht das Programm und startet es im Fehlerfall neu. \n"
"Bei Absturz kann das gesamte /dev/piControl0 auf 0x00 gesetzt werden. \n"
"Außerdem stellt es einen XML-RPC Server bereit, über den die Software \n"
"auf den RevPi geladen werden kann. Das Prozessabbild kann über ein \n"
"Tool zur Laufzeit überwacht werden.",
keywords=["revpi", "revolution pi", "revpimodio", "plc"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: Manufacturing",
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 (LGPLv3)",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Operating System",
],
cmdclass={"install_egg_info": MyEggInfo},
)