Skip to content

Commit

Permalink
chore: update license year, version and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrennand committed May 18, 2024
1 parent 68e8849 commit a8cfaba
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 670 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.1.0

* chore(deps): Update all dependencies.
* chore: update license year.

## 1.0.2

* chore(deps): Update all dependencies.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 dbrennand
Copyright (c) 2024 Daniel Brennand

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1,169 changes: 514 additions & 655 deletions poetry.lock

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "virustotal-python"
version = "1.0.2"
version = "1.1.0"
description = "A Python library to interact with the public VirusTotal v3 and v2 APIs."
authors = ["dbrennand"]
license = "MIT"
Expand All @@ -20,23 +20,27 @@ classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
exclude = [".gitignore"]

[tool.poetry.dependencies]
python = "^3.7"
requests = {version = "^2.26.0", extras = ["socks"]}
python = "^3.12"
requests = { version = "^2.31.0" }
PySocks = { version = "^1.7.1", optional = true }

[tool.poetry.extras]
socks = ["PySocks^1.7.1"]
socks = ["PySocks"]

[tool.poetry.dev-dependencies]
black = "22.3.0"
twine = "^3.5.0"
pytest = "^6.2.5"
pytest-mock = "^3.6.1"
requests-mock = "^1.9.3"
pytest-cov = "^3.0.0"
black = "24.4.2 "
twine = "^5.1.0"
pytest = "^8.2.0"
pytest-mock = "^3.14.0"
requests-mock = "^1.12.1"
pytest-cov = "^5.0.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion virustotal_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

__all__ = ["Virustotal", "VirustotalResponse", "VirustotalError"]
__author__ = "dbrennand"
__version__ = "1.0.2"
__version__ = "1.1.0"
6 changes: 3 additions & 3 deletions virustotal_python/virustotal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
MIT License
Copyright (c) 2023 dbrennand
Copyright (c) 2024 Daniel Brennand
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -267,14 +267,14 @@ def __init__(
self.BASEURL = "https://www.virustotal.com/vtapi/v2/"
self.HEADERS = {
"Accept-Encoding": "gzip, deflate",
"User-Agent": f"gzip, virustotal-python 1.0.2",
"User-Agent": f"gzip, virustotal-python 1.1.0",
}
elif (API_VERSION == "v3") or (API_VERSION == 3):
self.API_VERSION = API_VERSION
self.BASEURL = "https://www.virustotal.com/api/v3/"
self.HEADERS = {
"Accept-Encoding": "gzip, deflate",
"User-Agent": f"gzip, virustotal-python 1.0.2",
"User-Agent": f"gzip, virustotal-python 1.1.0",
"x-apikey": f"{self.API_KEY}",
}
else:
Expand Down

0 comments on commit a8cfaba

Please sign in to comment.