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