Packaging

This commit is contained in:
Jason Solomon 2021-10-19 15:10:58 +11:00
parent 2be9dceb27
commit dca7ec4ff7
7 changed files with 57 additions and 6 deletions

10
AUTHORS Normal file
View file

@ -0,0 +1,10 @@
dfDewey
https://github.com/google/dfdewey/
dfDewey is developed by (in alphabetical order):
* Google Inc. (*@google.com)
* Jason Solomon (solomonjason@gmail.com)
To reach the authors, please use the dfDewey development mailing list
<dfdewey-dev@googlegroups.com>.

8
MANIFEST.in Normal file
View file

@ -0,0 +1,8 @@
include AUTHORS LICENSE README.md
include requirements.txt dfvfs_requirements.txt
exclude run_tests.py
exclude .gitignore
exclude *.pyc
recursive-exclude dfdewey *_test.py
recursive-exclude dfdewey *.pyc
recursive-exclude test_data *

View file

@ -12,6 +12,9 @@
# 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 Package."""
"""dfDewey Package.
__version__ = '20201113'
dfDewey is a digital forensics string extraction, indexing, and searching tool.
"""
__version__ = '20211019'

View file

@ -1,5 +1,4 @@
elasticsearch
psycopg2-binary
pytsk3
six
tabulate

6
setup.cfg Normal file
View file

@ -0,0 +1,6 @@
[metadata]
license_file = LICENSE
[sdist]
template = MANIFEST.in
manifest = MANIFEST

View file

@ -17,11 +17,25 @@
import sys
from setuptools import find_packages
from setuptools import setup
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
import dfdewey
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)
sys.path.insert(0, '.')
DFDEWEY_DESCRIPTION = (
@ -36,13 +50,24 @@ setup(
version=dfdewey.__version__,
description=DFDEWEY_DESCRIPTION,
license='Apache License, Version 2.0',
url='https://github.com/google/dfdewey',
maintainer='dfDewey development team',
maintainer_email='dfdewey-dev@googlegroups.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
packages=find_packages(),
include_package_data=True,
data_files=[
('share/doc/dfdewey', ['AUTHORS', 'LICENSE', 'README.md']),
],
install_requires=requirements,
extras_require={
'dev': ['mock', 'nose', 'yapf', 'coverage']
},
entry_points={'console_scripts': ['dfdewey=dfdewey.dfdcli:main']}
entry_points={'console_scripts': ['dfdewey=dfdewey.dfdcli:main']},
python_requires='>=3.6',
)