-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from quarkslab/relax_dependencies
Switch to pyproject.toml and relax dependencies
- Loading branch information
Showing
8 changed files
with
132 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,51 @@ | ||
build*/ | ||
third_party/idasdk*/ | ||
quokka.pb.h | ||
ci/ida*/ | ||
.eggs/* | ||
site/ | ||
.pytest_cache/ | ||
dist/ | ||
docs/reference/python/ | ||
doxygen_current.cfg | ||
doxygen_current.cfg | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Distribution / packaging | ||
.Python | ||
build*/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[build-system] | ||
requires = ["setuptools", "protobuf_distutils"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "quokka-project" | ||
description = "Quokka: A Fast and Accurate Binary Exporter" | ||
authors = [{ name = "Quarkslab", email = "[email protected]" }] | ||
license = { text = "Apache Software License (Apache License, Version 2)" } | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
requires-python = ">=3.8" | ||
dependencies = ["capstone>=4.0.2", "networkx>=2.4", "protobuf>=3.12.2"] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/quarkslab/quokka/" | ||
Repository = "https://github.com/quarkslab/quokka/" | ||
Documentation = "https://quarkslab.github.io/quokka/" | ||
"Bug Tracker" = "https://github.com/quarkslab/quokka/issues" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"pytest-mock", | ||
"pytest-cov", | ||
"coverage[toml]", | ||
"pypcode>=1.1.1", | ||
] | ||
pypcode = ["pypcode>=1.1.1"] | ||
doc = [ | ||
"mkdocs", | ||
"mkdocs-material", | ||
"mkdocstrings", | ||
"mkdocstrings-python", | ||
"mkdocs-literate-nav", | ||
"mkdocs-git-revision-date-localized-plugin", | ||
"mkdocs-gen-files", | ||
"mkdocs-simple-hooks", | ||
] | ||
dev = [ | ||
"black", | ||
"ipython", | ||
"flake8", | ||
"flake8-black", | ||
"mypy", | ||
"mypy-protobuf", | ||
"nox", | ||
"pypcode>=1.1.1", | ||
] | ||
|
||
[tool.setuptools] | ||
packages = ["quokka", "quokka.analysis", "quokka.backends"] | ||
package-dir = { "" = "bindings/python/" } | ||
package-data = { "quokka" = ["*.pyi", "*.typed"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,73 +17,17 @@ | |
from setuptools import setup | ||
from os.path import normpath | ||
|
||
with open("README.md", "r") as fd: | ||
readme = fd.read() | ||
|
||
main_ns = {} | ||
ver_path = normpath('bindings/python/quokka/version.py') | ||
ver_path = normpath("bindings/python/quokka/version.py") | ||
with open(ver_path) as ver_file: | ||
exec(ver_file.read(), main_ns) | ||
|
||
setup( | ||
name="quokka-project", | ||
version=main_ns['__version__'], | ||
author="Alexis <dm> Challande", | ||
author_email="[email protected]", | ||
url="https://github.com/quarkslab/quokka", | ||
project_urls={ | ||
"Documentation": "https://quarkslab.github.io/quokka/", | ||
"Bug Tracker": "https://github.com/quarkslab/quokka/issues", | ||
"Source": "https://github.com/quarkslab/quokka/", | ||
}, | ||
description="Quokka : A Fast and Accurate Binary Exporter", | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
python_requires=">=3.8", | ||
packages=["quokka", "quokka.analysis", "quokka.backends"], | ||
package_dir={"": "bindings/python/"}, | ||
package_data={"quokka": ["*.pyi", "*.typed"]}, | ||
setup_requires=[ | ||
"protobuf_distutils", | ||
], | ||
license="Apache-2", | ||
version=main_ns["__version__"], | ||
options={ | ||
"generate_py_protobufs": { | ||
"source_dir": "proto", | ||
"output_dir": "bindings/python/quokka", | ||
}, | ||
}, | ||
install_requires=[ | ||
"capstone>=4.0.2,<5", | ||
"networkx>=2.4,<3", | ||
"protobuf>=3.12.2,<4", | ||
"pypcode>=1.1.1,<2", | ||
], | ||
extras_require={ | ||
"test": [ | ||
"pytest", | ||
"pytest-mock", | ||
"pytest-cov", | ||
"coverage[toml]", | ||
], | ||
"doc": [ | ||
"mkdocs", | ||
"mkdocs-material", | ||
"mkdocstrings", | ||
"mkdocstrings-python", | ||
"mkdocs-literate-nav", | ||
"mkdocs-git-revision-date-localized-plugin", | ||
"mkdocs-gen-files", | ||
"mkdocs-simple-hooks", | ||
], | ||
"dev": [ | ||
"black", | ||
"ipython", | ||
"flake8", | ||
"flake8-black", | ||
"mypy", | ||
"mypy-protobuf", | ||
"nox", | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters