From 894bb7e46caaa416ac9456b4434d084759f37ed1 Mon Sep 17 00:00:00 2001 From: Bastien Abadie Date: Mon, 29 Aug 2016 17:21:25 +0200 Subject: [PATCH] Support Pypi. --- .gitignore | 4 +++- MANIFEST.in | 6 ++++++ VERSION | 1 + setup.cfg | 2 ++ setup.py | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 VERSION create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index c4c04c0..820693b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .coverage htmlcov/ config.ini -.ipynb_checkpoints/ \ No newline at end of file +.ipynb_checkpoints/ +dist +libmozdata.egg-info diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..33f48e2 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include VERSION +include requirements.txt +include libmozdata/*.json + +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b88034e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3efa7ea --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +from __future__ import absolute_import + +import os + +from setuptools import find_packages, setup + + +here = os.path.dirname(__file__) + +with open(os.path.join(here, 'VERSION')) as f: + version = f.read().strip() + +with open(os.path.join(here, 'requirements.txt')) as f: + install_requires = f.read().strip().split('\n') + + +setup( + name='libmozdata', + version=version, + description='Tool to find out some clues after crashes in using data from Socorro, Bugzilla and mercurial', + author='Mozilla Release Management', + author_email='release-mgmt@mozilla.com', + url='https://github.com/mozilla/libmozdata', + install_requires=install_requires, + packages=find_packages(), + include_package_data=True, + zip_safe=False, + license='MPL2', +)