Permalink
Browse files

Added dependency utility scripts

  • Loading branch information...
joachimmetz committed May 14, 2017
1 parent b16d721 commit 6b44bff34a9ac417e935619a04a9db2ff63eb690
Showing with 708 additions and 11 deletions.
  1. +2 −0 .style.yapf
  2. +1 −0 MANIFEST.in
  3. +19 −0 appveyor.yml
  4. +4 −5 config/dpkg/control
  5. +7 −0 dependencies.ini
  6. +3 −3 requirements.txt
  7. +11 −1 run_tests.py
  8. +2 −2 setup.cfg
  9. 0 utils/__init__.py
  10. +397 −0 utils/dependencies.py
  11. +262 −0 utils/update_dependencies.py
@@ -1,2 +1,4 @@
[style]
based_on_style = chromium
COALESCE_BRACKETS = True
SPLIT_BEFORE_FIRST_ARGUMENT = True
@@ -1,4 +1,5 @@
include ACKNOWLEDGEMENTS AUTHORS LICENSE README
include dependencies.ini run_tests.py utils/dependencies.py
exclude .gitignore
exclude *.pyc
recursive-exclude artifacts *.pyc
@@ -0,0 +1,19 @@
environment:
matrix:
- PYTHON: "C:\\Python27"
install:
- cmd: '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /release'
- ps: (new-object net.webclient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', 'C:\Projects\get-pip.py')
- ps: (new-object net.webclient).DownloadFile('https://github.com/log2timeline/l2tbinaries/raw/master/win32/pywin32-220.win32-py2.7.exe', 'C:\Projects\pywin32-220.win32-py2.7.exe')
- ps: (new-object net.webclient).DownloadFile('https://github.com/log2timeline/l2tbinaries/raw/master/win32/WMI-1.4.9.win32.exe', 'C:\Projects\WMI-1.4.9.win32.exe')
- cmd: "%PYTHON%\\python.exe C:\\Projects\\get-pip.py"
- cmd: "%PYTHON%\\Scripts\\easy_install.exe C:\\Projects\\pywin32-220.win32-py2.7.exe"
- cmd: "%PYTHON%\\Scripts\\easy_install.exe C:\\Projects\\WMI-1.4.9.win32.exe"
- cmd: git clone https://github.com/log2timeline/l2tdevtools.git && move l2tdevtools ..\
- cmd: mkdir dependencies && set PYTHONPATH=..\l2tdevtools && "%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type x86 --msi-targetdir "%PYTHON%" PyYAML
build: off
test_script:
- "%PYTHON%\\python.exe run_tests.py"
@@ -2,10 +2,10 @@ Source: artifacts
Section: python
Priority: extra
Maintainer: Forensic artifacts <forensicartifacts@googlegroups.com>
Build-Depends: debhelper (>= 7), python-all (>= 2.7~), python-setuptools, python3-all (>= 3.2~), python3-setuptools
Build-Depends: debhelper (>= 7), python-all (>= 2.7~), python-setuptools, python3-all (>= 3.4~), python3-setuptools
Standards-Version: 3.9.5
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.2
X-Python3-Version: >= 3.4
Homepage: https://github.com/ForensicArtifacts/artifacts
Package: artifacts-data
@@ -17,15 +17,14 @@ Description: Data files for ForensicArtifacts.com Artifact Repository
Package: python-artifacts
Architecture: all
Depends: artifacts-data, python-yaml, ${python:Depends}, ${misc:Depends}
Depends: artifacts-data, python-yaml (>= 3.10), ${python:Depends}, ${misc:Depends}
Description: Python bindings for ForensicArtifacts.com Artifact Repository
A free, community-sourced, machine-readable knowledge base of forensic
artifacts that the world can use both as an information source and within other tools.
Package: python3-artifacts
Architecture: all
Depends: artifacts-data, python3-yaml, ${python3:Depends}, ${misc:Depends}
Depends: artifacts-data, python3-yaml (>= 3.10), ${python3:Depends}, ${misc:Depends}
Description: Python bindings for ForensicArtifacts.com Artifact Repository
A free, community-sourced, machine-readable knowledge base of forensic
artifacts that the world can use both as an information source and within other tools.
@@ -0,0 +1,7 @@
[yaml]
dpkg_name: python-yaml
l2tbinaries_name: PyYAML
minimum_version: 3.10
pypi_name: PyYAML
rpm_name: PyYAML
version_property: __version__
@@ -1,3 +1,3 @@
PyYAML==3.11
yapf==0.10.0
pip >= 7.0.0
yapf
PyYAML >= 3.10
@@ -2,11 +2,21 @@
# -*- coding: utf-8 -*-
"""Script to run the tests."""
import unittest
import sys
import unittest
# Change PYTHONPATH to include dependencies.
sys.path.insert(0, u'.')
import utils.dependencies # pylint: disable=wrong-import-position
if __name__ == '__main__':
dependency_helper = utils.dependencies.DependencyHelper()
if not dependency_helper.CheckTestDependencies():
sys.exit(1)
test_suite = unittest.TestLoader().discover('tests', pattern='*.py')
test_results = unittest.TextTestRunner(verbosity=2).run(test_suite)
if not test_results.wasSuccessful():
@@ -1,9 +1,9 @@
[bdist_rpm]
release = 1
packager = The ForensicArtifacts.com Artifact Repository project <forensicartifacts@googlegroups.com>
packager = Forensic artifacts <forensicartifacts@googlegroups.com>
doc_files = ACKNOWLEDGEMENTS
AUTHORS
LICENSE
README
build_requires = python-setuptools
requires = PyYAML
requires = PyYAML >= 3.10
No changes.
Oops, something went wrong.

0 comments on commit 6b44bff

Please sign in to comment.