Skip to content

Commit

Permalink
Merge pull request #58 from sahmed95/conda-pack
Browse files Browse the repository at this point in the history
new release 1.2
  • Loading branch information
quantshah authored May 15, 2018
2 parents af42323 + de8dbee commit 0d86eac
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 24 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ before_install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
Expand Down
2 changes: 2 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt
if errorlevel 1 exit 1
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$PYTHON setup.py install --single-version-externally-managed --record=record.txt # Python command to install the script.
4 changes: 0 additions & 4 deletions dist/README.md

This file was deleted.

Binary file removed dist/piqs-1.2.0.tar.gz
Binary file not shown.
Binary file removed dist/piqs-1.2.0.zip
Binary file not shown.
64 changes: 52 additions & 12 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,65 @@
# 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.
{% set name = "piqs" %}
{% set version = "1.2.0" %}
{% set sha256 = "13c814410228d598dddc28f842ddbea2429f821f059a8ef1695731abb02afffd" %}
# sha256 is the prefered 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``

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

source:
git_rev: v0.1.1
git_url: https://github.com/nathanshammah/piqs.git
url: https://github.com/nathanshammah/piqs/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}

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/meta.html#building-noarch-packages 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 --no-deps --ignore-installed .

requirements:
build:
- python
- python>=3
- setuptools
- numpy
- cython
- numpy>=1.8
- cython>=0.21

run:
- python
- numpy
- cython
- scipy
- qutip
- python>=3
- numpy>=1.8
- cython>=0.21
- scipy>=0.15
- qutip>=4.2

test:
imports:
- piqs
- piqs.tests

about:
home: https://github.com/nathanshammah/piqs
license: BSD
license_file: LICENSE
summary: 'Efficient numerical simulation of Lindblad dynamics using permutational invariance'

# The remaining entries in this section are optional, but recommended
doc_url: http://piqs.readthedocs.io/
dev_url: https://github.com/nathanshammah/piqs

extra:
recipe-maintainers:
# GitHub IDs for maintainers of the recipe.
# Always check with the people listed below if they are OK becoming maintainers of the recipe. (There will be spam!)
- sahmed95
- nathanshammah
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
from Cython.Distutils import build_ext

MAJOR = 1
MINOR = 1
MINOR = 2
MICRO = 0
ISRELEASED = False
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
REQUIRES = ['numpy (>=1.8)', 'scipy (>=0.15)', 'cython (>=0.21)', 'qutip (>=4.2)']
INSTALL_REQUIRES = ['numpy>=1.8', 'scipy>=0.15', 'cython>=0.21', 'qutip>=4.2']
PACKAGES = ['piqs', 'piqs/cy']
PACKAGES = ['piqs', 'piqs/cy', 'piqs/tests']
PACKAGE_DATA = {
'piqs': ['configspec.ini'],
'piqs/tests': ['*.ini'],
Expand Down

0 comments on commit 0d86eac

Please sign in to comment.