Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ FROM mcr.microsoft.com/vscode/devcontainers/anaconda
LABEL maintainer="Msticpy Dev Team <msticpy@microsoft.com>"

#installing Msticpy requirements and dependencies
COPY ./requirements-all.txt /tmp/
COPY ./requirements-dev.txt /tmp/
RUN pip install --requirement /tmp/requirements-all.txt & \
pip install --requirement /tmp/requirements-dev.txt & \
pip install -e git+https://github.com/microsoft/msticpy
COPY . /tmp/
RUN pip install -e "git+https://github.com/microsoft/msticpy#egg=msticpy[test]"

# Activate ipywidgets extension in the environment that runs the notebook server
RUN jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
Expand Down
45 changes: 12 additions & 33 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,19 @@ jobs:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-all.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements.txt', 'requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('requirements-all.txt') }}
${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements.txt', 'requirements-dev.txt') }}
${{ runner.os }}-pip
- name: Install dependencies
# Installs core install + all extras ("all") + dev/test dependencies ("dev")
# via the combined "test" extra defined in setup.py.
run: |
python -m pip install --upgrade pip wheel setuptools
if [ -f requirements-all.txt ]; then
python -m pip install --use-pep517 -r requirements-all.txt
elif [ -f requirements.txt ]; then
python -m pip install --use-pep517 -r requirements.txt;
fi
python -m pip install -e .
python -m pip install --use-pep517 -e ".[test]"
- name: Install test dependencies
# ToDo - remove pip install xgboost when flaml is fixed
run: |
if [ -f requirements-dev.txt ]; then
python -m pip install -r requirements-dev.txt
else
echo "Missing requirements-dev.txt. Installing minimal requirements for testing."
python -m pip install pytest pytest-cov pytest-xdist pytest-check aiohttp nbconvert jupyter_contrib_nbextensions
python -m pip install Pygments respx pytest-xdist markdown beautifulsoup4 Pillow async-cache lxml
fi
python -m pip install "pandas>=1.3.0" "pygeohash>=1.2.0"
python -m pip install "xgboost"
- name: Prepare test dummy data
Expand Down Expand Up @@ -122,9 +112,9 @@ jobs:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-docs-${{ hashFiles('doc/requirements-all.txt') }}
key: ${{ runner.os }}-pip-docs-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-docs-${{ hashFiles('requirements-all.txt') }}
${{ runner.os }}-pip-docs-${{ hashFiles('docs/requirements.txt') }}
${{ runner.os }}-pip-docs
${{ runner.os }}-pip
- name: Sphinx Read the Docs build
Expand Down Expand Up @@ -159,28 +149,17 @@ jobs:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-lint-${{ hashFiles('requirements-all.txt') }}
key: ${{ runner.os }}-pip-lint-${{ hashFiles('setup.py', 'requirements.txt', 'requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-lint-${{ hashFiles('requirements-all.txt') }}
${{ runner.os }}-pip-lint-${{ hashFiles('setup.py', 'requirements.txt', 'requirements-dev.txt') }}
${{ runner.os }}-pip-lint
${{ runner.os }}-pip
- name: Install dependencies
# Installs core install + all extras ("all") + dev/test dependencies ("dev")
# via the combined "test" extra defined in setup.py.
run: |
python -m pip install --upgrade pip wheel setuptools
if [ -f requirements-all.txt ]; then
python -m pip install -r requirements-all.txt
elif [ -f requirements.txt ]; then
python -m pip install -r requirements.txt;
fi
python -m pip install -e .
- name: Install test dependencies
run: |
if [ -f requirements-dev.txt ]; then
python -m pip install -r requirements-dev.txt
else
echo "Missing requirements-dev.txt. Installing minimal requirements for testing."
python -m pip install bandit mypy types-attrs pyroma
fi
python -m pip install -e ".[test]"
- name: ruff
run: |
ruff check msticpy --ignore PLW0603
Expand Down
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,3 @@ repos:
- id: ruff-format
args:
- msticpy
- repo: local
hooks:
- id: check_reqs_all
name: check_reqs_all
entry: python -m tools.create_reqs_all
pass_filenames: False
language: python
types: [python]
additional_dependencies: ['packaging>=24.0', 'setuptools>=42']
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ include msticpy/msticpyconfig.yaml
include msticpy/resources/*
include requirements.txt
include requirements-dev.txt
include requirements-all.txt
include README.md
recursive-exclude tests *
4 changes: 1 addition & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ stages:
restoreKeys: python
- script: |
python -m pip install --upgrade pip wheel setuptools==56.0.0
python -m pip install -r requirements-all.txt
python -m pip install -e .
python -m pip install -e ".[test]"
displayName: 'Install package and dependencies'
- script: |
mkdir ~/.msticpy
Expand All @@ -94,7 +93,6 @@ stages:
echo Env $MSTICPYCONFIG or %MSTICPYCONFIG%
echo Build source: $(prSource)
echo Env $MSTICPY_BUILD_SOURCE or %MSTICPY_BUILD_SOURCE%
python -m pip install -r requirements-dev.txt
python -m pip install "pandas>=1.3.0"
python -m pip install seaborn
pytest tests --junitxml=junit/test-$(variables.imageName)-$(variables.python.version)-results.xml -n auto --cov=msticpy --cov-report=xml
Expand Down
61 changes: 0 additions & 61 deletions conda/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions conda/conda-reqs-dev-pip.txt

This file was deleted.

30 changes: 0 additions & 30 deletions conda/conda-reqs-dev.txt

This file was deleted.

11 changes: 0 additions & 11 deletions conda/conda-reqs-pip.txt

This file was deleted.

60 changes: 0 additions & 60 deletions conda/conda-reqs.txt

This file was deleted.

2 changes: 1 addition & 1 deletion msticpy/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version file."""

VERSION = "3.0.1"
VERSION = "3.0.2"
72 changes: 0 additions & 72 deletions requirements-all.txt

This file was deleted.

Loading
Loading