Skip to content
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

Add python-constraint to avoid conda-forge dependencies. #61

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
dist: xenial
env:
- PACKAGE=misc/magic
- stage: "No dependencies"
os: linux
dist: xenial
env:
- PACKAGE=misc/python-constraint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should, probably, go to litex-conda-misc, but since it's a direct dependency of vtr-optimized, I don't think it's a big problem to have it here


# EDA Tools - Bitstream Tools
# Linux
Expand Down Expand Up @@ -183,7 +188,7 @@ jobs:
dist: xenial
env:
- PACKAGE=pnr/vtr-gui
- stage: "No dependencies"
- stage: "Has first level dependencies"
litghost marked this conversation as resolved.
Show resolved Hide resolved
os: linux
dist: xenial
env:
Expand Down
51 changes: 51 additions & 0 deletions misc/python-constraint/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% set name = "python-constraint" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file autogenerated with something like conda skeleton pypi {packagename}? I actually never used it before, but if this is the result, then it's pretty good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but I had to edit a bit, and change from .gz to .bz2.

{% set version = "1.4.0" %}

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

source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.bz2"
sha256: 501d6f17afe0032dfc6ea6c0f8acc12e44f992733f00e8538961031ef27ccb8e

build:
# number: 201803050325
number: {{ environ.get('DATE_NUM') }}
# string: 20180305_0325
string: {{ environ.get('DATE_STR') }}
script_env:
- CI
- TRAVIS
- CONDA_OUT
- TEST_PACKAGE
script: "{{ PYTHON }} -m pip install . -vv"

requirements:
host:
- pip
- python
run:
- python

test:
imports:
- constraint
- examples
- examples.abc
- examples.coins
- examples.crosswords
- examples.einstein
- examples.queens
- examples.rooks
- examples.studentdesks
- examples.sudoku
- examples.wordmath
- examples.xsum

about:
home: "https://github.com/python-constraint/python-constraint"
license: BSD
license_family: BSD
license_file: LICENSE
summary: "python-constraint is a module implementing support for handling CSPs (Constraint Solving Problems) over finite domain"
2 changes: 0 additions & 2 deletions pnr/vtr-optimized/condarc

This file was deleted.