|
| 1 | +# EMACS settings: -*- coding: utf-8; tab-width: 2; indent-tabs-mode: t -*- |
| 2 | +# vim: tabstop=2:shiftwidth=2:noexpandtab |
| 3 | +# kate: tab-width 2; replace-tabs off; indent-width 2; |
| 4 | +# ============================================================================= |
| 5 | +# Authors: Patrick Lehmann |
| 6 | +# |
| 7 | +# Package installer: A modified version of sphinx.ext.inheritance_diagram |
| 8 | +# |
| 9 | +# |
| 10 | +# License: |
| 11 | +# ============================================================================ |
| 12 | +# Copyright 2017-2019 Patrick Lehmann - Bötzingen, Germany |
| 13 | +# Copyright (c) 2007-2019 by the Sphinx team (see AUTHORS file). |
| 14 | +# All rights reserved. |
| 15 | + |
| 16 | +# Redistribution and use in source and binary forms, with or without |
| 17 | +# modification, are permitted provided that the following conditions are |
| 18 | +# met: |
| 19 | +# * Redistributions of source code must retain the above copyright |
| 20 | +# notice, this list of conditions and the following disclaimer. |
| 21 | +# * Redistributions in binary form must reproduce the above copyright |
| 22 | +# notice, this list of conditions and the following disclaimer in the |
| 23 | +# documentation and/or other materials provided with the distribution. |
| 24 | + |
| 25 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 26 | +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 27 | +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 28 | +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 29 | +# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 30 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 31 | +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 32 | +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 33 | +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 34 | +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 35 | +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 | +# |
| 37 | +# SPDX-License-Identifier: BSD-2-Clause |
| 38 | +# ============================================================================ |
| 39 | +# |
| 40 | +import setuptools |
| 41 | + |
| 42 | +with open("README.md", "r") as file: |
| 43 | + long_description = file.read() |
| 44 | + |
| 45 | +requirements = [] |
| 46 | +with open("requirements.txt") as file: |
| 47 | + for line in file.readlines(): |
| 48 | + requirements.append(line) |
| 49 | + |
| 50 | +projectName = "sphinx.inheritance_diagram" |
| 51 | +projectNameWithPrefix = "btd." + projectName |
| 52 | +version = "2.3.1.dev1" |
| 53 | + |
| 54 | +github_url = "https://github.com/buildthedocs/" + projectName |
| 55 | +rtd_url = "https://" + projectNameWithPrefix.replace(".", "-") + ".readthedocs.io/en/latest/" |
| 56 | + |
| 57 | +setuptools.setup( |
| 58 | + name=projectNameWithPrefix, |
| 59 | + version=version, |
| 60 | + |
| 61 | + author="Sphinx team, Patrick Lehmann", |
| 62 | + |
| 63 | + # maintainer="Patrick Lehmann", |
| 64 | + # maintainer_email="[email protected]", |
| 65 | + |
| 66 | + description="Embedding diagrams rendered with inheritance_diagram.", |
| 67 | + long_description=long_description, |
| 68 | + long_description_content_type="text/markdown", |
| 69 | + |
| 70 | + url=github_url, |
| 71 | + project_urls={ |
| 72 | + 'Documentation': rtd_url, |
| 73 | + 'Source Code': github_url, |
| 74 | + 'Issue Tracker': github_url + "/issues" |
| 75 | + }, |
| 76 | + # download_url="https://github.com/buildthedocs/sphinx.inheritance_diagram/tarball/0.1.0", |
| 77 | + |
| 78 | + packages=setuptools.find_namespace_packages(), |
| 79 | + classifiers=[ |
| 80 | + "License :: OSI Approved :: BSD License", |
| 81 | + "Operating System :: OS Independent", |
| 82 | + "Programming Language :: Python :: 3 :: Only", |
| 83 | + "Programming Language :: Python :: 3.4", |
| 84 | + "Programming Language :: Python :: 3.5", |
| 85 | + "Programming Language :: Python :: 3.6", |
| 86 | + "Programming Language :: Python :: 3.7", |
| 87 | + "Programming Language :: Python :: 3.8", |
| 88 | + "Development Status :: 5 - Production/Stable", |
| 89 | + "Intended Audience :: Developers", |
| 90 | + "Topic :: Documentation :: Sphinx", |
| 91 | + "Framework :: Sphinx :: Extension" |
| 92 | + ], |
| 93 | + keywords="Sphinx Documentation Inheritance Diagram Graphviz", |
| 94 | + |
| 95 | + python_requires='>=3.4', |
| 96 | + install_requires=requirements, |
| 97 | + # provides= |
| 98 | + # obsoletes= |
| 99 | +) |
0 commit comments