Commit a414168e authored by Hilal Ozdemir's avatar Hilal Ozdemir

make beiran_interface_k8s a separate package

parent 5e67a4d0
......@@ -13,6 +13,7 @@ COPY README.md /opt/beiran/README.md
COPY setup.py /opt/beiran/setup.py
COPY plugins/beiran_package_docker /opt/beiran_package_docker/
COPY --from=tar-split-builder /tar-split /opt/beiran_package_docker/beiran_package_docker/tar-split
COPY plugins/beiran_interface_k8s /opt/beiran_interface_k8s/
WORKDIR /opt/beiran
RUN python setup.py install
......@@ -20,6 +21,9 @@ RUN python setup.py install
WORKDIR /opt/beiran_package_docker
RUN python setup.py install
WORKDIR /opt/beiran_interface_k8s
RUN python setup.py install
RUN echo 'alias beiran="python -m beiran.cli"\nalias beirand="python -m beiran.daemon"\n' > /root/.bashrc
ENV PYTHONPATH=/opt/beiran:/opt/beiran/plugins
......
This diff is collapsed.
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
# Beiran Kubernetes Interface Plugin
# Beiran P2P Package Distribution Layer
# Copyright (C) 2019 Rainlab Inc & Creationline, Inc & Beiran Contributors
#
# Rainlab Inc. https://rainlab.co.jp
# Creationline, Inc. https://creationline.com">
# Beiran Contributors https://docs.beiran.io/contributors.html
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""setup.py for packaging beiran"""
from setuptools import setup, find_packages
REQUIREMENTS_PATH = 'requirements.txt'
def read_requirements(path):
"""Read requirements.txt and return a list of requirements."""
with open(path, 'r') as file:
reqs = file.read().splitlines()
return reqs
def read_long_description():
"""Read a file written about long description of the package."""
with open("README.md", "r") as file:
long_description = file.read()
return long_description
def find_beiran_packages():
"""Find beiran package."""
return find_packages(
# exclude=["plugins", "doc", "helpers",]
)
def get_version():
"""
Reads VERSION file
Returns:
(str): plugin version
"""
with open('VERSION', 'r') as file:
version = file.read()
return version
setup(
name="beiran_interface_k8s",
version=get_version(),
author="RainLab",
author_email="info@rainlab.co.jp",
description="Beiran Kubernetes Plugin",
keywords=['beiran', 'kubernetes', 'k8s', 'p2p package manager', 'system tools'],
long_description=read_long_description(),
long_description_content_type="text/markdown",
url="https://beiran.io",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"Topic :: System :: Software Distribution"
"Topic :: System :: Systems Administration",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # ???
"Operating System :: OS Independent",
],
install_requires=read_requirements(REQUIREMENTS_PATH),
python_requires='~=3.6',
packages=find_beiran_packages(),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment