-
Notifications
You must be signed in to change notification settings - Fork 59
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 #196 from obsidianforensics/issue-192
Split out the requirements into different extras; move to pyproject.toml for packaging
- Loading branch information
Showing
9 changed files
with
85 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish to Test PyPI | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to Test PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: test_pypi | ||
url: https://test.pypi.org/p/dfir-unfurl | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.10' | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: Publish distribution 📦 to Test PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 |
---|---|---|
|
@@ -113,3 +113,7 @@ dmypy.json | |
|
||
# PyCharm | ||
/.idea/ | ||
/venv38/ | ||
/dist/ | ||
/dfir_unfurl.egg-info/ | ||
/build/ |
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,33 @@ | ||
[build-system] | ||
requires = ["setuptools>=61", "setuptools-scm>=8.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "dfir-unfurl" | ||
authors = [{name = "Ryan Benson", email = "[email protected]"}] | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3" | ||
] | ||
dynamic = ["dependencies", "optional-dependencies", "version"] | ||
description = "Unfurl takes a URL and expands (\"unfurls\") it into a directed graph" | ||
keywords=["unfurl", "forensics", "dfir", "reverse-engineering", "security", "osint", "digital forensics"] | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = { file = ["requirements.txt"] } | ||
version = { attr = "unfurl.__version__" } | ||
optional-dependencies.ui = { file = ["requirements-ui.txt"] } | ||
optional-dependencies.lookups = { file = ["requirements-lookups.txt"] } | ||
optional-dependencies.all = { file = ["requirements-all.txt"] } | ||
|
||
[project.scripts] | ||
unfurl = "unfurl.app:cli" | ||
unfurl_app = "unfurl.app:web_app" | ||
|
||
[project.urls] | ||
Home = "https://github.com/obsidianforensics/unfurl" |
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 @@ | ||
dfir-unfurl[ui,lookups] |
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,2 @@ | ||
Requests | ||
maclookup |
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,4 @@ | ||
flask>=3.0.0 | ||
flask-restx>=1.3.0 | ||
flask_cors | ||
Werkzeug>=3.0.0 |
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,15 +1,8 @@ | ||
dnslib | ||
flask == 2.3.3 | ||
flask-restx >= 1.2.0 | ||
flask_cors | ||
maclookup | ||
networkx | ||
protobuf == 4.* | ||
protobuf==4.* | ||
publicsuffix2 | ||
pycountry | ||
pymispwarninglists >= 1.5 | ||
Requests | ||
setuptools | ||
pymispwarninglists>=1.5 | ||
torf | ||
ulid-py | ||
Werkzeug >= 2.3.3 | ||
ulid-py |