diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..c956b233 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +/** +!/qiling/ +!/poetry.lock +!/pyproject.toml +!/ql* +!/README.md diff --git a/.gitignore b/.gitignore index 07ebbc03..766e541d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,19 +2,10 @@ .DS_Store .vscode .idea -*.pyc *.cache *.cache2 .*.swp *.raw -.venv - -# cache and misc -qiling.egg-info/ -__pycache__/ -*.py[cod] -build -dist # test and logs tests/mac_test_elf.sh @@ -38,3 +29,44 @@ core tests/output.txt tests/testtest_* +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# Distribution / packaging +build/ +develop-eggs/ +dist/ +eggs/ +sdist/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# Environments +.env +.venv +venv/ + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + +# ruff +.ruff_cache/ + +# LSP config files +pyrightconfig.json diff --git a/Dockerfile b/Dockerfile index 3b9a463a..dd0f49e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,8 @@ COPY pyproject.toml poetry.lock ./ RUN pip3 install --no-cache-dir poetry \ && poetry install --no-root --no-directory -COPY qiling/ tests/ examples/ ./ -RUN poetry install --no-dev && poetry build --format=wheel +COPY . . +RUN poetry install --only main && poetry build --format=wheel FROM base diff --git a/pyproject.toml b/pyproject.toml index 55abb643..e1820d90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,30 @@ [tool.poetry] +urls = { homepage = "https://qiling.io" } name = "qiling" version = "1.4.7" description = "Qiling is an advanced binary emulation framework that cross-platform-architecture" authors = ["KaiJern Lau (xwings) "] license = "GPLv2" readme = "README.md" +classifiers = [ + "Development Status :: 5 - Production/Stable", + + "Intended Audience :: Developers", + + "Topic :: Software Development :: Disassemblers", + "Topic :: System :: Emulators", + "Topic :: System :: Operating System", + "Topic :: Security", +] +keywords = [ + "qiling", + "QEMU", + "binary", + "emulator", + "malware analysis", + "UEFI", + "IoT", +] [tool.poetry.dependencies] python = "^3.8"