Skip to content

Commit

Permalink
Merge pull request #7871 from maxhully/master
Browse files Browse the repository at this point in the history
Add gerrychain recipe
  • Loading branch information
ocefpaf authored Mar 20, 2019
2 parents c123284 + 0bdb291 commit 7edd68e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
28 changes: 28 additions & 0 deletions recipes/gerrychain/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
3-Clause BSD License

Copyright (c) 2019 Metric Geometry and Gerrymandering Group

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.
50 changes: 50 additions & 0 deletions recipes/gerrychain/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% set name = "gerrychain" %}
{% set version = "0.2.8" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 2d3dc1ff35c6f6c1670918f30e8be4c00faed1178b19501e38bfef09c2f023b5

build:
noarch: python
number: 0
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
host:
- pip
- python >=3.6
run:
- geopandas
- networkx
- pandas
- python >=3.6
- shapely

test:
imports:
- gerrychain
- gerrychain.constraints
- gerrychain.graph
- gerrychain.partition
- gerrychain.proposals
- gerrychain.updaters
- gerrychain.vendor
- gerrychain.vendor.utm

about:
home: https://github.com/mggg/GerryChain
license: BSD 3-clause
license_family: BSD
license_file: LICENSE
summary: Use Markov chain Monte Carlo to analyze districting plans and gerrymanders
doc_url: https://gerrychain.readthedocs.io/
dev_url: https://github.com/mggg/GerryChain

extra:
recipe-maintainers:
- maxhully

0 comments on commit 7edd68e

Please sign in to comment.