-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding conda-recipe-manager as a conda-forge feedstock #26371
Merged
BastianZim
merged 10 commits into
conda-forge:main
from
schuylermartin45:smartin_crm_feedstock
May 31, 2024
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
658c9f9
Adding conda-recipe-manager as a conda-forge feedstock
schuylermartin45 3c76730
Adds maintainers...which is me
schuylermartin45 e91f1a5
Not interested in Windows support at the moment for conda-forge infra…
schuylermartin45 759c2ee
Redacts noarch line from linter
schuylermartin45 0be9df9
Redacts version constraints per linter request
schuylermartin45 ac28e2c
Switching back to noarch; will try to add Windows support
schuylermartin45 ce255df
Puts python version contraints on requirements, as indicated in the e…
schuylermartin45 018f8f2
Adds missing entry point, as mentioned in this Issue thread: https://…
schuylermartin45 9abe237
Removes LICENSE file from feedstock
schuylermartin45 6b5a3ca
Merge branch 'main' into smartin_crm_feedstock
schuylermartin45 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2024, conda-incubator | ||
Copyright (c) 2012, Anaconda, Inc. | ||
Copyright (c) 2015-2022, conda-forge | ||
Copyright (c) 2015-2022 The Bioconda team | ||
Copyright (c) 2015-2022, conda-forge contributors | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{% set name = "conda-recipe-manager" %} | ||
{% set version = "0.2.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/conda-incubator/conda-recipe-manager/archive/refs/tags/v{{ version }}.tar.gz | ||
sha256: e26102b317ff6bb2d63040db10cfee4db9d660447c3f1c076ddd524805abd1b2 | ||
|
||
build: | ||
number: 0 | ||
script: pip install . --no-deps --no-build-isolation -vv | ||
noarch: python | ||
entry_points: | ||
- conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager | ||
- crm = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager | ||
|
||
requirements: | ||
host: | ||
- python >=3.11 | ||
- pip | ||
- setuptools | ||
- wheel | ||
run: | ||
- python >=3.11 | ||
- click >=8.1.7 | ||
- conda | ||
- jinja2 | ||
- pyyaml | ||
- jsonschema | ||
- requests | ||
|
||
test: | ||
imports: | ||
- conda_recipe_manager.commands | ||
- conda_recipe_manager.licenses | ||
- conda_recipe_manager.parser | ||
source_files: | ||
- tests/ | ||
requires: | ||
- pip | ||
- pytest | ||
- pytest-xdist | ||
commands: | ||
- pip check | ||
- python -m pytest -n auto tests/ | ||
|
||
about: | ||
home: https://github.com/anaconda/conda-recipe-manager | ||
license: BSD-3-Clause | ||
license_family: BSD | ||
license_file: LICENSE | ||
license_url: https://github.com/anaconda/conda-recipe-manager/blob/main/LICENSE | ||
summary: Helper tool for recipes on aggregate. | ||
description: | | ||
Renders local recipes, provides build orders, find outdated recipes. | ||
doc_url: https://github.com/anaconda/conda-recipe-manager | ||
dev_url: https://github.com/anaconda/conda-recipe-manager | ||
|
||
extra: | ||
recipe-maintainers: | ||
- schuylermartin45 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this file is already in the source distribution you're using so you shouldn't include an additional copy of it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I'm confused then because every piece of documentation I saw says to include it with the recipe file. I thought that was standard practice.
staged-recipes/recipes/example/meta.yaml
Lines 52 to 55 in a504af8
https://conda-forge.org/docs/maintainer/adding_pkgs/#the-staging-process
https://conda-forge.org/docs/maintainer/adding_pkgs/#checklist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify, you are correct that this means that it should be included. Most packages package the license file in the source distribution, the file then just needs to list it in the meta.yaml and it is included. You only need to manually include the license file if it isn't included.
So the difference comes from including the actual file (which is often not necessary) and including the path to the file (which is always necessary).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification! Maybe the docs or linter could be improved to reflect that nuance?
Either way, I just removed the file in the latest commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think there is an issue for that, we just haven't gotten around to it... 😄