forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mat333sp15/add-matching-recipe
Add matching recipe
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
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,83 @@ | ||
# Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe | ||
|
||
# Jinja variables help maintain the recipe as you'll update the version only here. | ||
# Using the name variable with the URL in line 14 is convenient | ||
# when copying and pasting from another recipe, but not really needed. | ||
{% set name = "matching" %} | ||
{% set version = "1.4" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz | ||
# If getting the source from GitHub, remove the line above, | ||
# uncomment the line below, and modify as needed. Use releases if available: | ||
# url: https://github.com/simplejson/simplejson/releases/download/{{ version }}/simplejson-{{ version }}.tar.gz | ||
# and otherwise fall back to archive: | ||
# url: https://github.com/simplejson/simplejson/archive/v{{ version }}.tar.gz | ||
sha256: 62fa1c2dc1b36f2ea70584d5ca776b3af02e9516140ee4c0c88123c7abe66896 | ||
# sha256 is the preferred checksum -- you can get it for a file with: | ||
# `openssl sha256 <file name>`. | ||
# You may need the openssl package, available on conda-forge: | ||
# `conda install openssl -c conda-forge`` | ||
|
||
build: | ||
# Uncomment the following line if the package is pure Python and the recipe is exactly the same for all platforms. | ||
# It is okay if the dependencies are not built for all platforms/versions, although selectors are still not allowed. | ||
# See https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-python for more details. | ||
# noarch: python | ||
number: 0 | ||
# If the installation is complex, or different between Unix and Windows, use separate bld.bat and build.sh files instead of this key. | ||
# By default, the package will be built for the Python versions supported by conda-forge and for all major OSs. | ||
# Add the line "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or "skip: True # [not win]" to limit to Windows. | ||
|
||
script: "{{ PYTHON }} -m pip install . -vv" | ||
|
||
requirements: | ||
build: | ||
# If your project compiles code (such as a C extension) then add the required compilers as separate entries here. | ||
# Compilers are named 'c', 'cxx' and 'fortran'. | ||
- {{ compiler('c') }} | ||
host: | ||
- python | ||
- pip | ||
run: | ||
- python | ||
|
||
test: | ||
# Some packages might need a `test/commands` key to check CLI. | ||
# List all the packages/modules that `run_test.py` imports. | ||
imports: | ||
- matching | ||
# For python packages, it is useful to run pip check. However, sometimes the | ||
# metadata used by pip is out of date. Thus this section is optional if it is | ||
# failing. | ||
requires: | ||
- pip | ||
commands: | ||
- pip check | ||
|
||
about: | ||
home: https://github.com/daffidwilde/matching | ||
# Remember to specify the license variants for BSD, Apache, GPL, and LGPL. | ||
# Use the SPDX identifier, e.g: GPL-2.0-only instead of GNU General Public License version 2.0 | ||
# See https://spdx.org/licenses/ | ||
license: MIT | ||
# The license_family, i.e. "BSD" if license is "BSD-3-Clause". (optional) | ||
license_family: MIT | ||
# It is strongly encouraged to include a license file in the package, | ||
# (even if the license doesn't require it) using the license_file entry. | ||
# See https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#license-file | ||
license_file: LICENSE | ||
summary: 'A package for solving matching games.' | ||
# The remaining entries in this section are optional, but recommended. | ||
description: | | ||
Matching games allow for the allocation of resources and partnerships | ||
in a fair way. Typically, a matching game is defined by two sets of players | ||
that each have preferences over at least some of the elements of the | ||
other set. The objective of the game is then to find a mapping between the | ||
sets of players in which everyone is happy enough with their match. | ||
doc_url: https://matching.readthedocs.io/ | ||
dev_url: https://github.com/daffidwilde/matching |