Skip to content

Commit

Permalink
Merge pull request #1101 from jettero/dependabot-alert
Browse files Browse the repository at this point in the history
psf-black + the dependabot alert urllib>=1.26.5
  • Loading branch information
daveed12 authored Jun 14, 2021
2 parents 59bc194 + 58fee7a commit 2262084
Showing 1 changed file with 78 additions and 65 deletions.
143 changes: 78 additions & 65 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,99 +1,112 @@
# pylint: disable=invalid-name

from setuptools import setup, find_packages
import platform

try:
import distro

distro, version, _ = distro.linux_distribution(full_distribution_name=False)
except ImportError:
distro = version = ''
distro = version = ""

platform_name=platform.system()
platform_name = platform.system()

# Default to CentOS7
data_files = [('/usr/lib/systemd/system', ['pkg/source/hubble.service']),
('/etc/hubble', ['conf/hubble']), ]
data_files = [
("/usr/lib/systemd/system", ["pkg/source/hubble.service"]),
("/etc/hubble", ["conf/hubble"]),
]

build_dependencies = [
'distro',
'msgpack',
'pyyaml',
'objgraph',
'pycryptodome',
'cryptography',
'pyopenssl',
'requests>=2.13.0',
'daemon',
'defusedxml',
'pygit2',
'gitpython',
'pyinotify',
'cffi',
'croniter',
'vulners',
'ntplib',
'patch==1.*',
'packaging',
'pyparsing',
'urllib3==1.25.8'
"distro",
"msgpack",
"pyyaml",
"objgraph",
"pycryptodome",
"cryptography",
"pyopenssl",
"requests>=2.13.0",
"daemon",
"pygit2",
"gitpython",
"pyinotify",
"cffi",
"croniter",
"vulners",
"ntplib",
"patch==1.*",
"packaging",
"pyparsing",
"urllib3>=1.26.5",
]

if distro == 'redhat' or distro == 'centos':
if version.startswith('6'):
data_files = [('/etc/init.d', ['pkg/hubble']),
('/etc/hubble', ['conf/hubble']), ]
elif version.startswith('7'):
data_files = [('/usr/lib/systemd/system', ['pkg/source/hubble.service']),
('/etc/hubble', ['conf/hubble']), ]
elif distro == 'Amazon Linux AMI':
data_files = [('/etc/init.d', ['pkg/hubble']),
('/etc/hubble', ['conf/hubble']), ]
if distro == "redhat" or distro == "centos":
if version.startswith("6"):
data_files = [
("/etc/init.d", ["pkg/hubble"]),
("/etc/hubble", ["conf/hubble"]),
]
elif version.startswith("7"):
data_files = [
("/usr/lib/systemd/system", ["pkg/source/hubble.service"]),
("/etc/hubble", ["conf/hubble"]),
]
elif distro == "Amazon Linux AMI":
data_files = [
("/etc/init.d", ["pkg/hubble"]),
("/etc/hubble", ["conf/hubble"]),
]

if platform_name == "Windows":
build_dependencies.remove("pyinotify")

if platform_name == 'Windows':
build_dependencies.remove('pyinotify')

def _hubble_version():
try:
from hubblestack.version import __version__

return __version__
except:
pass
return 'unknown'
return "unknown"


setup(
name='hubblestack',
name="hubblestack",
version=_hubble_version(),
description='Modular, open-source security compliance framework',
author='Colton Myers',
author_email='[email protected]',
maintainer='Colton Myers',
maintainer_email='[email protected]',
url='https://hubblestack.io',
license='Apache 2.0',
description="Modular, open-source security compliance framework",
author="Colton Myers",
author_email="[email protected]",
maintainer="Colton Myers",
maintainer_email="[email protected]",
url="https://hubblestack.io",
license="Apache 2.0",
packages=find_packages(),
entry_points={
'console_scripts': [
'hubble = hubblestack.daemon:run',
"console_scripts": [
"hubble = hubblestack.daemon:run",
],
},
install_requires=build_dependencies,
data_files=data_files,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Security',
'Topic :: System',
'Topic :: System :: Logging',
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Security",
"Topic :: System",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
"Topic :: System :: Systems Administration",
],
)

0 comments on commit 2262084

Please sign in to comment.