Compare commits

...

7 Commits

Author SHA1 Message Date
William Ballenthin
4d03856c26 ci: publish: formatting 2020-08-31 14:35:14 -06:00
William Ballenthin
381e4abd17 ci: publish: tweak event to on published 2020-08-30 02:46:50 -06:00
William Ballenthin
7ab42d9889 ci: publish: trigger on pre-release 2020-08-30 02:32:09 -06:00
William Ballenthin
b3c3c5579b pyinstaller: update spec to account for viv changes 2020-08-30 02:29:56 -06:00
William Ballenthin
2d20fe20c4 ci: publish to pypi upon tag 2020-08-30 02:13:27 -06:00
William Ballenthin
c4e4eb27fb setup: use vivisect from pypi
closes #254
2020-08-30 02:03:15 -06:00
Capa Bot
f9eed2d5b2 Sync capa rules submodule 2020-08-31 19:19:49 +00:00
5 changed files with 37 additions and 8 deletions

View File

@@ -44,7 +44,6 @@ a = Analysis(
hiddenimports=[
# vivisect does manual/runtime importing of its modules,
# so declare the things that could be imported here.
"pycparser",
"vivisect",
"vivisect.analysis",
"vivisect.analysis.amd64",
@@ -92,11 +91,13 @@ a = Analysis(
"vivisect.impapi.windows",
"vivisect.impapi.windows.amd64",
"vivisect.impapi.windows.i386",
"vivisect.impapi.winkern.i386",
"vivisect.impapi.winkern.amd64",
"vivisect.parsers.blob",
"vivisect.parsers.elf",
"vivisect.parsers.ihex",
"vivisect.parsers.macho",
"vivisect.parsers.parse_pe",
"vivisect.parsers.PE",
"vivisect.parsers.utils",
"vivisect.storage",
"vivisect.storage.basicfile",

29
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: publish to pypi
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '2.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*

View File

@@ -34,7 +34,6 @@ We like to use capa to help find the most interesting parts of a program, such a
To install the plugin, you'll need to be running IDA Pro 7.4 or 7.5 with either Python 2 or Python 3.
Next make sure pip commands are run using the Python install that is configured for your IDA install:
1. Only if running Python 2.7, run command `$ pip install https://github.com/williballenthin/vivisect/zipball/master`
2. Run `$ pip install .` from capa root directory
3. Open IDA and navigate to `File > Script file…` or `Alt+F7`
4. Navigate to `<capa_install_dir>\capa\ida\` and choose `ida_capa_explorer.py`
1. Run `$ pip install .` from capa root directory
2. Open IDA and navigate to `File > Script file…` or `Alt+F7`
3. Navigate to `<capa_install_dir>\capa\ida\` and choose `ida_capa_explorer.py`

2
rules

Submodule rules updated: abc6c27155...c8d8c05f59

View File

@@ -20,7 +20,7 @@ if sys.version_info >= (3, 0):
else:
# py2
requirements.append("enum34==1.1.6") # v1.1.6 is needed by halo 0.0.30 / spinners 0.0.24
requirements.append("vivisect @ https://github.com/williballenthin/vivisect/tarball/v0.0.20200804#egg=vivisect")
requirements.append("vivisect==0.1.0rc3")
requirements.append("viv-utils")
requirements.append("networkx==2.2") # v2.2 is last version supported by Python 2.7
requirements.append("backports.functools-lru-cache")