Skip to content

Commit

Permalink
Split requirements between the base, those for the web ui (ui), the…
Browse files Browse the repository at this point in the history
… remote lookups (`lookups`), and then all (`all`). Move to pyproject.toml from setup.py to support this.
  • Loading branch information
obsidianforensics committed Jun 25, 2024
1 parent 0d4401e commit 1f1f5a2
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 66 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ dmypy.json

# PyCharm
/.idea/
/venv38/
/dist/
/dfir_unfurl.egg-info/
/build/
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=61", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -19,11 +19,15 @@ keywords=["unfurl", "forensics", "dfir", "reverse-engineering", "security", "osi
[tool.setuptools_scm]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.in"] }
dependencies = { file = ["requirements.txt"] }
version = { attr = "unfurl.__version__" }
optional-dependencies.ui = { file = ["requirements-ui.in"] }
optional-dependencies.lookups = { file = ["requirements-lookups.in"] }
optional-dependencies.all = { file = ["requirements-all.in"] }
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"
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions requirements-ui.in

This file was deleted.

4 changes: 4 additions & 0 deletions requirements-ui.txt
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
8 changes: 0 additions & 8 deletions requirements.in

This file was deleted.

13 changes: 3 additions & 10 deletions requirements.txt
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
39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

0 comments on commit 1f1f5a2

Please sign in to comment.