From 9f0e5c211401fbf7cc918e9b735b7704c12cc33a Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Fri, 30 May 2014 14:01:24 +0200 Subject: [PATCH 1/2] Add a setup.py With that, users can install this package with a `python setup.py install`. It will also help to package this for Debian. --- setup.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..85fe732 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +# Copyright © 2014 Martin Ueding +# Licensed under The Lesser GNU Public License Version 2 (or later) + +from setuptools import setup, find_packages + +setup( + author="David Pine", + description="Least squares linear fit for numpy library of Python", + license="LGPL2", + name="linfit", + packages=find_packages(), + install_requires=[ + 'numpy', + ], + url="https://github.com/djpine/linfit", + download_url="https://github.com/djpine/linfit", + version="2013.11.29", +) From b27187daab0cd5f975e224264e3a10c5c5702fa9 Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Fri, 30 May 2014 14:15:12 +0200 Subject: [PATCH 2/2] Move file into a directory, making it a package --- linfit.py => linfit/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename linfit.py => linfit/__init__.py (100%) diff --git a/linfit.py b/linfit/__init__.py similarity index 100% rename from linfit.py rename to linfit/__init__.py