build: Add all necessary files for the build system
All basic files for testing, building and distributing the project are added here. The Makefile can set up the virtual environment and create different package types from the project.
This commit is contained in:
50
setup.py
Normal file
50
setup.py
Normal file
@@ -0,0 +1,50 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Setup-script for revpi-middleware package."""
|
||||
# SPDX-FileCopyrightText: 2025 KUNBUS GmbH <support@kunbus.com>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
from setuptools import find_namespace_packages, setup
|
||||
|
||||
from src.revpi_middleware.__about__ import __version__
|
||||
|
||||
with open("README.md") as fh:
|
||||
# Load long description from readme file
|
||||
long_description = fh.read()
|
||||
|
||||
setup(
|
||||
name="revpi_middleware",
|
||||
version=__version__,
|
||||
packages=find_namespace_packages("src"),
|
||||
package_dir={"": "src"},
|
||||
include_package_data=True,
|
||||
python_requires=">= 3.7",
|
||||
install_requires=[
|
||||
# todo: Set Dependencies of this project
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"revpi-middleware = revpi_middleware.main_application:main",
|
||||
],
|
||||
},
|
||||
platforms=["revolution pi"],
|
||||
url="https://revolutionpi.com/",
|
||||
license="GPLv2",
|
||||
license_files=["LICENSES/*"],
|
||||
author="Sven Sager",
|
||||
author_email="s.sager@kunbus.com",
|
||||
maintainer="KUNBUS GmbH",
|
||||
maintainer_email="support@kunbus.com",
|
||||
description="Example projekt for a python project",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
keywords=["revpi", "revolution pi", "plc", "automation"],
|
||||
classifiers=[
|
||||
# A list of all classifiers: https://pypi.org/pypi?%3Aaction=list_classifiers
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Environment :: Console",
|
||||
"Intended Audience :: Manufacturing",
|
||||
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
|
||||
"Operating System :: POSIX",
|
||||
"Topic :: System :: Operating System",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user