Add support for pip requirements
Add Makefile to do the above in a controlled fashion
This commit is contained in:
Guillaume Destuynder 2014-03-31 14:52:13 -07:00
Родитель 88c0aa0502
Коммит 1bbe04a415
3 изменённых файлов: 39 добавлений и 0 удалений

10
Makefile Normal file
Просмотреть файл

@ -0,0 +1,10 @@
all:
./setup.py build
install:
./setup.py install
clean:
rm -rf *pyc
rm -rf build
rm -rf __pycache__

2
requirements.txt Normal file
Просмотреть файл

@ -0,0 +1,2 @@
pytz==2014.1
requests-futures==0.9.4

27
setup.py Executable file
Просмотреть файл

@ -0,0 +1,27 @@
#!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "mozdef",
py_modules=['mozdef'],
version = "1.0.0",
author = "Guillaume Destuynder",
author_email = "gdestuynder@mozilla.com",
description = ("A client library to send messages using MozDef"),
license = "MPL",
keywords = "mozdef client library",
url = "https://github.com/gdestuynder/mozdef_lib",
long_description=read('README.rst'),
requires=['requests_futures', 'pytz'],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: System :: Logging",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
],
)