dfdewey/setup.py

75 lines
2.2 KiB
Python
Raw Normal View History

2020-11-13 04:56:31 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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
#
# https://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.
"""DFDewey setup file."""
import sys
2021-10-19 04:10:58 +00:00
try:
from setuptools import find_packages, setup
except ImportError:
from distutils.core import find_packages, setup
try:
from setuptools.commands.sdist import sdist
except ImportError:
from distutils.command.sdist import sdist
2020-11-13 04:56:31 +00:00
2020-11-16 03:30:34 +00:00
import dfdewey
2021-10-19 04:10:58 +00:00
version_tuple = (sys.version_info[0], sys.version_info[1])
if version_tuple < (3, 6):
print((
'Unsupported Python version: {0:s}, version 3.6 or higher '
'required.').format(sys.version))
sys.exit(1)
2020-11-13 04:56:31 +00:00
sys.path.insert(0, '.')
2020-11-16 03:30:34 +00:00
DFDEWEY_DESCRIPTION = (
'dfDewey is a digital forensics string extraction, indexing, and searching '
'tool.')
2020-11-13 04:56:31 +00:00
requirements = []
with open('requirements.txt','r') as f:
requirements = f.read().splitlines()
setup(
name='dfDewey',
version=dfdewey.__version__,
2020-11-16 03:30:34 +00:00
description=DFDEWEY_DESCRIPTION,
long_description=DFDEWEY_DESCRIPTION,
2020-11-13 04:56:31 +00:00
license='Apache License, Version 2.0',
2021-10-19 04:10:58 +00:00
url='https://github.com/google/dfdewey',
2020-11-13 04:56:31 +00:00
maintainer='dfDewey development team',
maintainer_email='dfdewey-dev@googlegroups.com',
2021-10-19 04:10:58 +00:00
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
2020-11-13 04:56:31 +00:00
packages=find_packages(),
include_package_data=True,
2021-10-19 04:10:58 +00:00
data_files=[
('share/doc/dfdewey', ['AUTHORS', 'LICENSE', 'README.md']),
],
2020-11-13 04:56:31 +00:00
install_requires=requirements,
extras_require={
2020-11-16 03:30:34 +00:00
'dev': ['mock', 'nose', 'yapf', 'coverage']
2021-09-08 04:35:57 +00:00
},
2021-10-19 04:10:58 +00:00
entry_points={'console_scripts': ['dfdewey=dfdewey.dfdcli:main']},
python_requires='>=3.6',
2020-11-13 04:56:31 +00:00
)