Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move package data to pyproject.toml #4

Merged
merged 4 commits into from
Nov 14, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/lint_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.10
python-version: 3.10.15

- name: Install Python dependencies
run: pip install black flake8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.10
python-version: 3.10.15

- name: Install Python dependencies
run: pip install -U pip pytest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The Codescanner detects machine code in files and identifies the cpu architecture, endianness, and bitness.
It can be used against data files (pdf, jpgs, unknown binary files).

Version: 1.3.0
Last changed: 10. May 2022
Version: 1.3.1
Last changed: 02. Nov 2024

## What this contains

Expand Down
21 changes: 15 additions & 6 deletions codescanner_analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from codescanner_analysis import utils
from codescanner_analysis.byte_plot import BytePlot
from codescanner_analysis.codescan_interface import CodescanInterface
from codescanner_analysis.codescanner_analysis import CodescannerAnalysisData
Expand All @@ -10,10 +9,20 @@


# major, minor, micro, release, serial
__VERSION_INFO__ = (1, 3, 0, 'final', 0)
__VERSION__ = '%d.%d' % (__VERSION_INFO__[0], __VERSION_INFO__[1])
__VERSION_INFO__ = (1, 3, 1, "final", 0)
__VERSION__ = "%d.%d.%d" % (
__VERSION_INFO__[0],
__VERSION_INFO__[1],
__VERSION_INFO__[2],
)
__all__ = [
__VERSION__,
CodescannerAnalysisData,
ComparisonAnalysis,
"__VERSION__",
"CodescannerAnalysisData",
"ComparisonAnalysis",
"ColorMap",
"file_header_parser",
"OverlayPlot",
"PlotBase",
"BytePlot",
"CodescanInterface",
]
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build-system]
requires = ["setuptools >= 61.0", "matplotlib"]
build-backend = "setuptools.build_meta"

[project]
name = "codescanner_analysis"
description = "Analysis module to classify regions of arbitrary binaries"
authors = [
{name = "Fraunhofer FKIE CA&D"},
{name = "Viviane Zwanger", email = "[email protected]"},
{name = "Henning Braun", email = "[email protected]"},
]
dynamic = ["version"]
keywords = ["codescanner", "code regions"]
license = {text = "Fraunhofer non-commercial License 'Codescanner'"}
dependencies = ["matplotlib", "numpy"]
requires-python = ">=3.8"


[project.urls]
repository = "https://github.com/fkie-cad/Codescanner"

[tool.setuptools]
packages = ["codescanner_analysis", "codescanner_analysis.utils"]

[tool.setuptools.dynamic]
version = {attr = "codescanner_analysis.__VERSION__"}

[tool.setuptools.package-data]
codescanner_analysis = ["res/lib/codescan", "res/lib/*.so", "res/lib/languages/*.lang"]

23 changes: 0 additions & 23 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

Loading