xref: /aosp_15_r20/external/crosvm/third_party/minijail/setup.py (revision 4b9c6d91573e8b3a96609339b46361b5476dd0f9)
1*4b9c6d91SCole Faust#!/usr/bin/env python3
2*4b9c6d91SCole Faust# -*- coding: utf-8 -*-
3*4b9c6d91SCole Faust#
4*4b9c6d91SCole Faust# Copyright (C) 2020 The Android Open Source Project
5*4b9c6d91SCole Faust#
6*4b9c6d91SCole Faust# Licensed under the Apache License, Version 2.0 (the "License");
7*4b9c6d91SCole Faust# you may not use this file except in compliance with the License.
8*4b9c6d91SCole Faust# You may obtain a copy of the License at
9*4b9c6d91SCole Faust#
10*4b9c6d91SCole Faust#      http://www.apache.org/licenses/LICENSE-2.0
11*4b9c6d91SCole Faust#
12*4b9c6d91SCole Faust# Unless required by applicable law or agreed to in writing, software
13*4b9c6d91SCole Faust# distributed under the License is distributed on an "AS IS" BASIS,
14*4b9c6d91SCole Faust# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*4b9c6d91SCole Faust# See the License for the specific language governing permissions and
16*4b9c6d91SCole Faust# limitations under the License.
17*4b9c6d91SCole Faust"""A file that specifies how to install minijail's python-based tool(s)."""
18*4b9c6d91SCole Faust
19*4b9c6d91SCole Faustimport os
20*4b9c6d91SCole Faustfrom setuptools import setup
21*4b9c6d91SCole Faust
22*4b9c6d91SCole Faust
23*4b9c6d91SCole Faustthis_directory = os.path.abspath(os.path.dirname(__file__))
24*4b9c6d91SCole Faustwith open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
25*4b9c6d91SCole Faust    long_description = f.read()
26*4b9c6d91SCole Faust
27*4b9c6d91SCole Faustsetup(name='minijail',
28*4b9c6d91SCole Faust      version='0.12',
29*4b9c6d91SCole Faust      description='A set of tools for Minijail',
30*4b9c6d91SCole Faust      classifiers=[
31*4b9c6d91SCole Faust          'Programming Language :: Python :: 3',
32*4b9c6d91SCole Faust          'License :: OSI Approved :: Apache Software License',
33*4b9c6d91SCole Faust          'Operating System :: Linux',
34*4b9c6d91SCole Faust      ],
35*4b9c6d91SCole Faust      python_requires='>=3.6',
36*4b9c6d91SCole Faust      license='Apache License 2.0',
37*4b9c6d91SCole Faust      long_description=long_description,
38*4b9c6d91SCole Faust      long_description_content_type='text/markdown',
39*4b9c6d91SCole Faust      author='Minijail Developers',
40*4b9c6d91SCole Faust      author_email='[email protected]',
41*4b9c6d91SCole Faust      url='https://google.github.io/minijail/',
42*4b9c6d91SCole Faust      packages=['minijail'],
43*4b9c6d91SCole Faust      package_dir={'minijail': 'tools'},
44*4b9c6d91SCole Faust      entry_points={
45*4b9c6d91SCole Faust          'console_scripts': [
46*4b9c6d91SCole Faust              'compile_seccomp_policy = minijail.compile_seccomp_policy:main',
47*4b9c6d91SCole Faust              'generate_seccomp_policy = minijail.generate_seccomp_policy:main',
48*4b9c6d91SCole Faust              'generate_constants_json = minijail.generate_constants_json:main',
49*4b9c6d91SCole Faust          ],
50*4b9c6d91SCole Faust      },
51*4b9c6d91SCole Faust)
52