From 12a6e8a1f9337eeb663733b83d4589570a6cc255 Mon Sep 17 00:00:00 2001 From: Peter Bull Date: Thu, 22 Mar 2018 17:39:34 -0700 Subject: [PATCH] Create and install src as Python package --- {{ cookiecutter.repo_name }}/requirements.txt | 4 ++++ {{ cookiecutter.repo_name }}/setup.py | 10 ++++++++++ {{ cookiecutter.repo_name }}/src/data/__init__.py | 0 {{ cookiecutter.repo_name }}/src/features/__init__.py | 0 {{ cookiecutter.repo_name }}/src/models/__init__.py | 0 .../src/visualization/__init__.py | 0 6 files changed, 14 insertions(+) create mode 100644 {{ cookiecutter.repo_name }}/setup.py create mode 100644 {{ cookiecutter.repo_name }}/src/data/__init__.py create mode 100644 {{ cookiecutter.repo_name }}/src/features/__init__.py create mode 100644 {{ cookiecutter.repo_name }}/src/models/__init__.py create mode 100644 {{ cookiecutter.repo_name }}/src/visualization/__init__.py diff --git a/{{ cookiecutter.repo_name }}/requirements.txt b/{{ cookiecutter.repo_name }}/requirements.txt index 724e3fa..d4f7d11 100644 --- a/{{ cookiecutter.repo_name }}/requirements.txt +++ b/{{ cookiecutter.repo_name }}/requirements.txt @@ -1,3 +1,7 @@ +# local package +-e . + +# external requirements click Sphinx coverage diff --git a/{{ cookiecutter.repo_name }}/setup.py b/{{ cookiecutter.repo_name }}/setup.py new file mode 100644 index 0000000..3358cc2 --- /dev/null +++ b/{{ cookiecutter.repo_name }}/setup.py @@ -0,0 +1,10 @@ +from setuptools import find_packages, setup + +setup( + name='src', + packages=find_packages(), + version='0.0.1', + description='{{ cookiecutter.description }}', + author='{{ cookiecutter.author_name }}', + license='{% if cookiecutter.open_source_license == 'MIT' %}MIT{% elif cookiecutter.open_source_license == 'BSD-3-Clause' %}BSD-3{% endif %}', +) diff --git a/{{ cookiecutter.repo_name }}/src/data/__init__.py b/{{ cookiecutter.repo_name }}/src/data/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/{{ cookiecutter.repo_name }}/src/features/__init__.py b/{{ cookiecutter.repo_name }}/src/features/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/{{ cookiecutter.repo_name }}/src/models/__init__.py b/{{ cookiecutter.repo_name }}/src/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/{{ cookiecutter.repo_name }}/src/visualization/__init__.py b/{{ cookiecutter.repo_name }}/src/visualization/__init__.py new file mode 100644 index 0000000..e69de29