Skip to content

Commit 0bd5180

Browse files
committed
added conda recipe
1 parent 964c261 commit 0bd5180

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 ilastik team <team@ilastik.org>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

conda-recipe/meta.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
{% set data = load_setup_py_data() %}
3+
4+
package:
5+
name: conda-3rdparty
6+
version: {{ data['version'] }}
7+
8+
source:
9+
path: ..
10+
11+
build:
12+
noarch: python
13+
script: python -m pip install --no-deps --ignore-installed .
14+
entry_points:
15+
{% for ep in data['entry_points']['console_scripts'] %}
16+
- {{ ep }}
17+
{% endfor %}
18+
19+
20+
requirements:
21+
build:
22+
- python >=3.7
23+
- pip
24+
run:
25+
- python >=3.7
26+
# dependencies are defined in setup.py
27+
{% for dep in data['install_requires'] %}
28+
- {{ dep.lower() }}
29+
{% endfor %}
30+
31+
test:
32+
imports:
33+
- conda3rdparty
34+
commands:
35+
- conda-3rdparty --version
36+
37+
about:
38+
home: https://github.com/ilastik/conda-3rdparty
39+
license: MIT
40+
summary: Command line tool to summarize 3rd party licenses of conda environments.

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from setuptools import find_packages, setup
2+
3+
setup(
4+
name="conda-3rdparty",
5+
version="0.0.1dev0",
6+
author="ilastik-team",
7+
license="MIT",
8+
license_files=("LICENSE",),
9+
description="Command line tool to summarize 3rd party licenses of conda environments.",
10+
package_dir={"": "src"},
11+
packages=find_packages("./src"),
12+
include_package_data=True,
13+
install_requires=["jinja2"],
14+
entry_points={"console_scripts": ["conda-3rdparty = conda3rdparty.cli:main"]},
15+
)

0 commit comments

Comments
 (0)