forked from Yelp/osxcollector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (31 loc) · 1.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
import re
from setuptools import setup
with open('README.md', 'r') as f:
long_description = f.read()
with open('osxcollector/osxcollector.py', 'r') as f:
# This is done to avoid loading the entire module which may cause import errors
version_regex = re.compile(r'__version__\s*=\s*[\'"]([0-9\.]+)[\'"]')
version_line = next(l for l in f if version_regex.search(l))
__version__ = version_regex.search(version_line).group(1)
setup(
name='osxcollector',
version=__version__,
author='Yelp Security',
author_email='[email protected]',
description="A tool for answering \"How'd that malware get there?\"",
long_description=long_description,
long_description_content_type='text/markdown',
license='GNU General Public License',
url='https://github.com/Yelp/osxcollector',
setup_requires='setuptools',
packages=['osxcollector'],
install_requires=[
'macholib>=1.7',
'pyobjc>=3.0.4',
'xattr>=0.8.0',
],
entry_points={
'console_scripts': ['osxcollector=osxcollector.osxcollector:main'],
},
)