-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use defusedxml to prevent external entity exploits (#94)
* Use defusedxml to prevent external entity exploits Fixes #93
- Loading branch information
Showing
8 changed files
with
87 additions
and
16 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
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 @@ | ||
include README.md |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -4,14 +4,19 @@ version = "1.2.0" | |
description = "Converts XML to Python objects" | ||
authors = ["Christian Stefanescu <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
defusedxml = "^0.7.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^7.1.2" | ||
flake8 = "^4.0.1" | ||
black = "^22.6.0" | ||
build = "^0.8.0" | ||
setuptools = "^62.6.0" | ||
wheel = "^0.37.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.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 |
---|---|---|
|
@@ -3,19 +3,24 @@ | |
|
||
import untangle | ||
|
||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
from pathlib import Path | ||
|
||
long_description = (Path(__file__).parent / "README.md").read_text() | ||
|
||
setup( | ||
name="untangle", | ||
packages=find_packages(), | ||
version=untangle.__version__, | ||
description="Convert XML documents into Python objects", | ||
long_description_content_type="text/markdown", | ||
long_description=(Path(__file__).parent / "README.md").read_text(), | ||
long_description=long_description, | ||
author="Christian Stefanescu", | ||
author_email="[email protected]", | ||
url="http://github.com/stchris//untangle", | ||
py_modules=["untangle"], | ||
install_requires=["defusedxml"], | ||
include_package_data=True, | ||
license="MIT", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
|
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