tl;dr:
How do you exclude folders from being packaged by conda build
?
Context
I am building my first packages with conda build
.
My meta.yaml file looks like this:
package:
name: 'some_name'
version: {{ load_setup_py_data().get('version') }}
source:
path: ./
build:
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
run:
- python >=3.6
- pandas >=0.2
- numpy >=1.12
# Packages that must be installed
# in the user's conda environment
# to run this package.
build:
# Packages used by setup.py
# to install this package.
# May also install compilers
# for non-python code.
- python
- setuptools
And my root directory (where lies the setup.py & meta.yaml files) looks like this:
$ ls
README.md __pycache__ input isi_classif meta.yaml
notebooks output scripts setup.py version.py
Some folders are only there because they were useful during the prototyping but I don't want to delete them from the repo.
How do I exclude a folder (like input
or notebooks
here) and its content from the package that conda builds ?
For info, I build with the following command:
$ conda build some_folder_name