Skip to content

Commit

Permalink
Make sure files are properly closed in setup.py.
Browse files Browse the repository at this point in the history
Even though I am unsure this can actually lead to issues, this was
flagged by CodeQL. Implementing a proper workaround instead of
continously whitelisting these instances.
  • Loading branch information
bbannier committed Jan 10, 2023
1 parent 3bb0df7 commit 2b0f8e7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import pathlib
from setuptools import setup

install_requires = ["gitpython", "semantic_version", "btest"]


def version():
return pathlib.Path("VERSION").read_text().replace("-", ".dev", 1).strip()


def long_description():
return pathlib.Path("README").read_text()


setup(
name="zkg",
version=open("VERSION").read().replace("-", ".dev", 1).strip(),
version=version(),
description="The Zeek Package Manager",
long_description=open("README").read(),
long_description=long_description(),
license="University of Illinois/NCSA Open Source License",
keywords="zeek zeekctl zeekcontrol package manager scripts plugins security",
maintainer="The Zeek Project",
Expand Down

0 comments on commit 2b0f8e7

Please sign in to comment.