-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2127 to implement Poetry, pytest, and tox
Closes #2111 as its feature branch was the base of this PR's branch Closes #2133 as no longer necessary Closes #2147 as no longer necessary
- Loading branch information
Showing
34 changed files
with
478 additions
and
758 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,11 +1,15 @@ | ||
### REPOSITORY | ||
/.github/CODEOWNERS @sdushantha | ||
./github/FUNDING.yml @sdushantha | ||
/LICENSE @sdushantha | ||
|
||
### PACKAGING | ||
# Changes made to these items without code owner approval may negatively | ||
# impact packaging pipelines. Code owners may need time to verify or adapt. | ||
# impact packaging pipelines. | ||
/pyproject.toml @ppfeister @sdushantha | ||
/setup.cfg @ppfeister @sdushantha | ||
/setup.py @ppfeister | ||
/*.spec @ppfeister | ||
|
||
### REGRESSION | ||
/.github/workflows/regression.yml @ppfeister | ||
/tox.ini @ppfeister | ||
/pytest.ini @ppfeister | ||
/tests/ @ppfeister |
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 @@ | ||
github: [ sdushantha, ppfeister, matheusfelipeog ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
name: Regression Testing | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
tox-matrix: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # We want to know what version it fails on | ||
matrix: | ||
os: [ | ||
ubuntu-latest, | ||
windows-latest, | ||
macos-latest, | ||
] | ||
python-version: [ | ||
'3.8', | ||
'3.9', | ||
'3.10', | ||
'3.11', | ||
'3.12', | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up environment ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tox and related dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
pip install tox-gh-actions | ||
- name: Run tox | ||
run: tox |
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
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,48 +1,59 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ "poetry-core>=1.2.0" ] | ||
build-backend = "poetry.core.masonry.api" | ||
# poetry-core 1.8 not available in .fc39. Can upgrade to 1.8.0 at .fc39 EOL | ||
|
||
[project.scripts] | ||
sherlock = "sherlock:main" | ||
[tool.poetry-version-plugin] | ||
source = "init" | ||
|
||
[project.urls] | ||
Homepage = "http://sherlock-project.github.io/" | ||
Repository = "https://github.com/sherlock-project/sherlock.git" | ||
Issues = "https://github.com/sherlock-project/sherlock/issues" | ||
|
||
[project] | ||
[tool.poetry] | ||
name = "sherlock-project" | ||
# single source of truth for version is __init__.py | ||
version = "0" | ||
description = "Hunt down social media accounts by username across social networks" | ||
license = "MIT" | ||
authors = [ | ||
{ name = "Siddharth Dushantha" } | ||
"Siddharth Dushantha <[email protected]>" | ||
] | ||
maintainers = [ | ||
{ name = "Matheus Felipe" }, | ||
{ name = "Sondre Karlsen Dyrnes" }, | ||
{ name = "Paul Pfeister" } | ||
"Paul Pfeister <[email protected]>", | ||
"Matheus Felipe <[email protected]>", | ||
"Sondre Karlsen Dyrnes <[email protected]>" | ||
] | ||
description = "Hunt down social media accounts by username across social networks" | ||
readme = "docs/pyproj/README.md" | ||
# Do not set license to file. Causes issues with rpm packaging for some reason. | ||
license = {text = "MIT"} | ||
dynamic = ["dependencies", "version"] | ||
packages = [ { include = "sherlock"} ] | ||
keywords = [ "osint", "reconnaissance", "information gathering" ] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Security" | ||
] | ||
homepage = "https://sherlock-project.github.io/" | ||
repository = "https://github.com/sherlock-project/sherlock" | ||
|
||
|
||
[tool.poetry.urls] | ||
"Bug Tracker" = "https://github.com/sherlock-project/sherlock/issues" | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = { file = [ "requirements.txt" ] } | ||
version = { attr = "sherlock.__version__" } | ||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
certifi = ">=2019.6.16" | ||
colorama = "^0.4.1" | ||
PySocks = "^1.7.0" | ||
requests = "^2.22.0" | ||
requests-futures = "^1.0.0" | ||
stem = "^1.8.0" | ||
torrequest = "^0.1.0" | ||
# pandas can likely be bumped up to ^2.0.0 after fc39 EOL | ||
pandas = ">=1.0.0,<3.0.0" | ||
openpyxl = "^3.0.10" | ||
|
||
[tool.setuptools] | ||
package-dir = {"" = "sherlock"} | ||
[tool.poetry.group.dev.dependencies] | ||
jsonschema = "^4.0.0" | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.json"] | ||
[tool.poetry.scripts] | ||
sherlock = 'sherlock.sherlock:main' |
Oops, something went wrong.