Skip to content

Commit

Permalink
fix: setup.py version and install requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
deoktr committed Nov 29, 2024
1 parent 4c3d963 commit c37558d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion pof/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

from pof.main import BaseObfuscator, Obfuscator

__version__ = "1.4.1"
try:
from importlib.metadata import version

__version__ = version("python-obfuscation-framework")
except Exception:
__version__ = "0.0.0"

__all__ = ("BaseObfuscator", "Obfuscator", "__version__")
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

long_description = (root / "README.md").read_text()

with Path("requirements.txt").open() as f:
install_requires = f.read().splitlines()

setup(
name="python-obfuscation-framework",
version="1.4.1",
version="1.5.0",
author="deoktr",
author_email="",
description="Python Obfuscation Framework.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -36,9 +38,12 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Security",
],
packages=find_packages(include=["pof", "pof.*"]),
install_requires=install_requires,
python_requires=">=3.5",
entry_points={
"console_scripts": [
Expand Down

0 comments on commit c37558d

Please sign in to comment.