From b2b28ca3e252c19ac6f5d0223131ab4f42b870f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Sat, 26 Dec 2015 13:40:50 +0100 Subject: [PATCH 1/3] Remove __init__.py from tests folder See https://pytest.org/latest/goodpractises.html. --- .gitignore | 1 + src/pyfme/utils/tests/__init__.py | 0 2 files changed, 1 insertion(+) delete mode 100644 src/pyfme/utils/tests/__init__.py diff --git a/.gitignore b/.gitignore index 4bc8df2..d6e81d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ .cache +.idea *.py[cod] diff --git a/src/pyfme/utils/tests/__init__.py b/src/pyfme/utils/tests/__init__.py deleted file mode 100644 index e69de29..0000000 From d210df88cf44f68f1ea2c34c731a742d0f61f4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Sat, 26 Dec 2015 13:58:32 +0100 Subject: [PATCH 2/3] Add minimal setup.py, fix #12 * Project name * Project version (development), PEP 440 compliant * Packages * Package dir, see https://docs.python.org/3/distutils/setupscript.html#listing-whole-packages --- .gitignore | 2 ++ setup.py | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index d6e81d1..3c62907 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ __pycache__ .idea *.py[cod] + +*.egg-info diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d3d3f90 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# coding: utf-8 + +from distutils.core import setup + +setup( + name="PyFME", + version="0.1.dev0", + packages=['pyfme'], + package_dir={'': 'src'}, +) From 17eda225247164678e14f42cfe029c5845f88173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Sat, 26 Dec 2015 14:01:54 +0100 Subject: [PATCH 3/3] Add installation instructions to README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a00fc5f..5584d9e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # PyFME Python Flight Mechanics Engine + +## How to run the tests + +Install in editable mode and call `py.test`: + + $ pip install -e . + $ py.test