"Fossies" - the Fresh Open Source Software Archive

Member "ospd-2.0.1/setup.py" (12 May 2020, 4245 Bytes) of package /linux/misc/openvas/ospd-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "setup.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 # Copyright (C) 2014-2019 Greenbone Networks GmbH
    2 #
    3 # SPDX-License-Identifier: GPL-2.0-or-later
    4 #
    5 # This program is free software; you can redistribute it and/or
    6 # modify it under the terms of the GNU General Public License
    7 # as published by the Free Software Foundation; either version 2
    8 # of the License, or (at your option) any later version.
    9 #
   10 # This program is distributed in the hope that it will be useful,
   11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 # GNU General Public License for more details.
   14 #
   15 # You should have received a copy of the GNU General Public License
   16 # along with this program; if not, write to the Free Software
   17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   18 
   19 """ Setup configuration and management for module ospd
   20 
   21 Standard Python setup configuration, including support for PyPI.
   22 """
   23 
   24 from setuptools import setup, find_packages # Always prefer setuptools over distutils
   25 from codecs import open # To use a consistent encoding
   26 from os import path
   27 
   28 from ospd import __version__
   29 
   30 here = path.abspath(path.dirname(__file__))
   31 
   32 # Get the long description from the relevant file
   33 with open(path.join(here, 'README.md'), encoding='utf-8') as f:
   34     long_description = f.read()
   35 
   36 setup(
   37     name='ospd',
   38 
   39     # Versions should comply with PEP440. For a discussion on single-sourcing
   40     # the version across setup.py and the project code, see
   41     # http://packaging.python.org/en/latest/tutorial.html#version
   42     version=__version__,
   43 
   44     description=('OSPD is a base for scanner wrappers which share the '
   45                  'same communication protocol: OSP (Open Scanner '
   46                  'Protocol)'),
   47     long_description=long_description,
   48     long_description_content_type='text/markdown',
   49 
   50     # The project's main homepage.
   51     url='http://www.openvas.org',
   52 
   53     # Author
   54     author='Greenbone Networks GmbH',
   55     author_email='info@greenbone.net',
   56 
   57     # License
   58     license='GPLv2+',
   59 
   60     # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
   61     classifiers=[
   62         # How mature is this project? Common values are
   63         # 3 - Alpha
   64         # 4 - Beta
   65         # 5 - Production/Stable
   66         'Development Status :: 5 - Production/Stable',
   67 
   68         # Indicate who your project is intended for
   69         'Intended Audience :: Developers',
   70         'Topic :: Software Development :: Build Tools',
   71 
   72         # Pick your license as you wish (should match "license" above)
   73         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
   74 
   75         # Specify the Python versions you support here. In particular, ensure
   76         # that you indicate whether you support Python 2, Python 3 or both.
   77         'Programming Language :: Python :: 3.5',
   78     ],
   79 
   80     # What does your project relate to?
   81     keywords=['Greenbone Vulnerability Manager OSP'],
   82 
   83     python_requires='>=3.5',
   84 
   85     # List run-time dependencies here. These will be installed by pip when your
   86     # project is installed. For an analysis of "install_requires" vs pip's
   87     # requirements files see:
   88     # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
   89     install_requires=[
   90         'paramiko',
   91         'defusedxml',
   92         'lxml',
   93     ],
   94 
   95     # You can just specify the packages manually here if your project is
   96     # simple. Or you can use find_packages().
   97     packages=find_packages(exclude=['tests']),
   98 
   99     # If there are data files included in your packages that need to be
  100     # installed, specify them here.
  101     include_package_data = True,
  102     package_data={'': []},
  103 
  104     # Scripts. Define scripts here which should be installed in the
  105     # sys.prefix/bin directory. You can define an alternative place for
  106     # installation by setting the --install-scripts option of setup.py
  107     # scripts = [''],
  108 
  109     # To provide executable scripts, use entry points in preference to the
  110     # "scripts" keyword. Entry points provide cross-platform support and allow
  111     # pip to create the appropriate form of executable for the target platform.
  112     #entry_points={
  113     #    'console_scripts': [
  114     #        'sample=sample:main',
  115     #    ],
  116     #},
  117 
  118     test_suite="tests",
  119 )