You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/04/05 10:04:34 UTC

[buildstream-plugins] 19/49: setup.py: Adding initial setup.py

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/buildstream-plugins.git

commit 0071b707705fc71075ac3f5c075808b92659d989
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Sat Mar 19 14:44:39 2022 +0900

    setup.py: Adding initial setup.py
---
 setup.py | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)

diff --git a/setup.py b/setup.py
new file mode 100755
index 0000000..a988e40
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,86 @@
+#!/usr/bin/env python3
+#
+#  Copyright (C) 2022 Codethink Limited
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+import os
+import sys
+
+try:
+    from setuptools import setup, find_packages
+except ImportError:
+    print(
+        "BuildStream requires setuptools in order to locate plugins. Install "
+        "it using your package manager (usually python3-setuptools) or via "
+        "pip (pip3 install setuptools)."
+    )
+    sys.exit(1)
+
+###############################################################################
+#                             Parse README                                    #
+###############################################################################
+with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "README.rst"), encoding="utf-8",) as readme:
+    long_description = readme.read()
+
+
+setup(
+    name="buildstream-plugins",
+    version="1.91.0",
+    author="BuildStream Developers",
+    author_email="dev@buildstream.apache.org",
+    classifiers=[
+        "Environment :: Console",
+        "Intended Audience :: Developers",
+        "License :: OSI Approved :: Apache Software License",
+        "Operating System :: POSIX",
+        "Programming Language :: Python :: 3",
+        "Programming Language :: Python :: 3.7",
+        "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
+        "Topic :: Software Development :: Build Tools",
+    ],
+    description="A collection of plugins for BuildStream.",
+    long_description=long_description,
+    long_description_content_type="text/x-rst; charset=UTF-8",
+    license="Apache License Version 2.0",
+    url="https://buildstream.build",
+    project_urls={"Documentation": "https://docs.buildstream.build/",},
+    package_dir={"": "src"},
+    packages=find_packages(where="src"),
+    include_package_data=True,
+    entry_points={
+        "buildstream.plugins.elements": [
+            "autotools = buildstream_plugins.elements.autotools",
+            "cmake = buildstream_plugins.elements.cmake",
+            "make = buildstream_plugins.elements.make",
+            "meson = buildstream_plugins.elements.meson",
+            "pip = buildstream_plugins.elements.pip",
+            "setuptools = buildstream_plugins.elements.setuptools",
+        ],
+        "buildstream.plugins.sources": [
+            "bzr = buildstream_plugins.sources.bzr",
+            "cargo = buildstream_plugins.sources.cargo",
+            "docker = buildstream_plugins.sources.docker",
+            "git = buildstream_plugins.sources.git",
+            "patch = buildstream_plugins.sources.patch",
+            "pip = buildstream_plugins.sources.pip",
+            "zip = buildstream_plugins.sources.zip",
+        ],
+    },
+    extras_require={"cargo": ["toml"],},
+    zip_safe=False,
+)
+# eof setup()