-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
491 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,5 @@ | ||
* text=auto | ||
|
||
meta.yaml text eol=lf | ||
build.sh text eol=lf | ||
bld.bat text eol=crlf |
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,3 @@ | ||
*.pyc | ||
|
||
build_artefacts |
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,37 @@ | ||
# This file was generated automatically from conda-smithy. To update this configuration, | ||
# update the conda-forge.yml and/or the recipe/meta.yaml. | ||
|
||
language: generic | ||
|
||
os: osx | ||
osx_image: beta-xcode6.1 | ||
|
||
env: | ||
global: | ||
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml. | ||
- secure: "0Mv4qYp2mnpS8Ap4rHRtsUeAxaI/5a3AiUSKtN/jpH2MRselPn3YOYLhDFt/ZqvKy+NZvQWrBe7v3qjJeed6n3y+jshScMvK+4YaiEXH0w8cSVP53QenC1S5PX8HxdsSpym6us7B5ooogB2YoIe5YgcZ5l2RwzgZS4ZvNhHTHa6IeReGtfF350oFjpnGhRVbvnIDEaa9KJ1ju+3e/wDgAMSm6c3x33tNQoGD65S8Tj7WWm4UpeSTbn4oGTsOw2vHAkUwVHFkR9YDa+JgtUtfzUZlZFcshK97HIzFPQULJHDyw1flMmU00N2bxtE1v3cJIeNIWXXCNXX35YQ52s4PI2TKhGFPUqArEqWDKwJIIaxdsvosHJtNfbogncSPmZL0jjSD92c2IAIFRS2zEJ47iJ2XG1a5+3Goz/apIzVe/hQ+AZxMUraokc9hg0NK/yDTv5Ngu+NsE2BH4J19VAw7xMVYl5WPenb4BG9tyjMCOhJU9p3qd5LHj8Zn7Lad7nuKOftxgWiSatRGHathdZbK5QE+ee7t0qZtU0PpR0OtoXU4tDKLaU8ZN/MLoJZWFbd3aBZSV/IXDjHBeBpo8yMVELviih7liNMJiWezrFMJDCV69BcZOoAI0KJMetqLkukkLC54ZDWKndOOu3lDxe5VRZPCEadfphZB8yyC9kEWs7M=" | ||
|
||
|
||
before_install: | ||
# Remove homebrew. | ||
- brew remove --force $(brew list) | ||
- brew cleanup -s | ||
- rm -rf $(brew --cache) | ||
|
||
install: | ||
- | | ||
MINICONDA_URL="https://repo.continuum.io/miniconda" | ||
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh" | ||
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" | ||
bash $MINICONDA_FILE -b | ||
source /Users/travis/miniconda3/bin/activate root | ||
conda config --add channels conda-forge | ||
conda config --set show_channel_urls true | ||
conda install --yes --quiet conda-forge-build-setup | ||
source run_conda_forge_build_setup | ||
script: | ||
- conda build ./recipe | ||
|
||
- upload_or_check_non_existence ./recipe conda-forge --channel=main |
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,13 @@ | ||
BSD 3-clause license | ||
Copyright (c) conda-forge | ||
All rights reserved. | ||
|
||
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,103 @@ | ||
About sqlite | ||
============ | ||
|
||
Home: http://www.sqlite.org/ | ||
|
||
Package license: Public-Domain (http://www.sqlite.org/copyright.html) | ||
|
||
Feedstock license: BSD 3-Clause | ||
|
||
Summary: Implements a self-contained, zero-configuration, SQL database engine. | ||
|
||
|
||
|
||
Current build status | ||
==================== | ||
|
||
Linux: [](https://circleci.com/gh/conda-forge/sqlite-feedstock) | ||
OSX: [](https://travis-ci.org/conda-forge/sqlite-feedstock) | ||
Windows: [](https://ci.appveyor.com/project/conda-forge/sqlite-feedstock/branch/master) | ||
|
||
Current release info | ||
==================== | ||
Version: [](https://anaconda.org/conda-forge/sqlite) | ||
Downloads: [](https://anaconda.org/conda-forge/sqlite) | ||
|
||
Installing sqlite | ||
================= | ||
|
||
Installing `sqlite` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: | ||
|
||
``` | ||
conda config --add channels conda-forge | ||
``` | ||
|
||
Once the `conda-forge` channel has been enabled, `sqlite` can be installed with: | ||
|
||
``` | ||
conda install sqlite | ||
``` | ||
|
||
It is possible to list all of the versions of `sqlite` available on your platform with: | ||
|
||
``` | ||
conda search sqlite --channel conda-forge | ||
``` | ||
|
||
|
||
About conda-forge | ||
================= | ||
|
||
conda-forge is a community-led conda channel of installable packages. | ||
In order to provide high-quality builds, the process has been automated into the | ||
conda-forge GitHub organization. The conda-forge organization contains one repository | ||
for each of the installable packages. Such a repository is known as a *feedstock*. | ||
|
||
A feedstock is made up of a conda recipe (the instructions on what and how to build | ||
the package) and the necessary configurations for automatic building using freely | ||
available continuous integration services. Thanks to the awesome service provided by | ||
[CircleCI](https://circleci.com/), [AppVeyor](http://www.appveyor.com/) | ||
and [TravisCI](https://travis-ci.org/) it is possible to build and upload installable | ||
packages to the [conda-forge](https://anaconda.org/conda-forge) | ||
[Anaconda-Cloud](http://docs.anaconda.org/) channel for Linux, Windows and OSX respectively. | ||
|
||
To manage the continuous integration and simplify feedstock maintenance | ||
[conda-smithy](http://github.com/conda-forge/conda-smithy) has been developed. | ||
Using the ``conda-forge.yml`` within this repository, it is possible to re-render all of | ||
this feedstock's supporting files (e.g. the CI configuration files) with ``conda smithy rerender``. | ||
|
||
|
||
Terminology | ||
=========== | ||
|
||
**feedstock** - the conda recipe (raw material), supporting scripts and CI configuration. | ||
|
||
**conda-smithy** - the tool which helps orchestrate the feedstock. | ||
Its primary use is in the construction of the CI ``.yml`` files | ||
and simplify the management of *many* feedstocks. | ||
|
||
**conda-forge** - the place where the feedstock and smithy live and work to | ||
produce the finished article (built conda distributions) | ||
|
||
|
||
Updating sqlite-feedstock | ||
========================= | ||
|
||
If you would like to improve the sqlite recipe or build a new | ||
package version, please fork this repository and submit a PR. Upon submission, | ||
your changes will be run on the appropriate platforms to give the reviewer an | ||
opportunity to confirm that the changes result in a successful build. Once | ||
merged, the recipe will be re-built and uploaded automatically to the | ||
`conda-forge` channel, whereupon the built conda packages will be available for | ||
everybody to install and use from the `conda-forge` channel. | ||
Note that all branches in the conda-forge/sqlite-feedstock are | ||
immediately built and any created packages are uploaded, so PRs should be based | ||
on branches in forks and branches in the main repository should only be used to | ||
build distinct package versions. | ||
|
||
In order to produce a uniquely identifiable distribution: | ||
* If the version of a package **is not** being increased, please add or increase | ||
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string). | ||
* If the version of a package **is** being increased, please remember to return | ||
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string) | ||
back to 0. |
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,88 @@ | ||
# This file was automatically generated by conda-smithy. To update a component of this | ||
# file, make changes to conda-forge.yml and/or recipe/meta.yaml, and run | ||
# "conda smithy rerender". | ||
|
||
environment: | ||
|
||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the | ||
# /E:ON and /V:ON options are not enabled in the batch script intepreter | ||
# See: http://stackoverflow.com/a/13751649/163740 | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" | ||
|
||
BINSTAR_TOKEN: | ||
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml. | ||
secure: MP4hZYylDyUWEsrt3u3cod2sbFeRwUziH02mvQOdbjsTO/l1yIxDkP/76rSIjcGC | ||
|
||
matrix: | ||
- TARGET_ARCH: x86 | ||
CONDA_PY: 27 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 27 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda-x64 | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 34 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda3 | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 34 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda3-x64 | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 35 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda35 | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 35 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64 | ||
|
||
|
||
# We always use a 64-bit machine, but can build x86 distributions | ||
# with the TARGET_ARCH variable. | ||
platform: | ||
- x64 | ||
|
||
install: | ||
# If there is a newer build queued for the same PR, cancel this one. | ||
# The AppVeyor 'rollout builds' option is supposed to serve the same | ||
# purpose but it is problematic because it tends to cancel builds pushed | ||
# directly to master instead of just PR builds (or the converse). | ||
# credits: JuliaLang developers. | ||
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` | ||
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` | ||
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` | ||
throw "There are newer queued builds for this pull request, failing early." } | ||
|
||
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.) | ||
- cmd: rmdir C:\cygwin /s /q | ||
|
||
# Add our channels. | ||
- cmd: set "OLDPATH=%PATH%" | ||
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%" | ||
- cmd: conda config --set show_channel_urls true | ||
- cmd: conda config --add channels conda-forge | ||
|
||
# Add a hack to switch to `conda` version `4.1.12` before activating. | ||
# This is required to handle a long path activation issue. | ||
# Please see PR ( https://github.com/conda/conda/pull/3349 ). | ||
- cmd: conda install --yes --quiet conda=4.1.12 | ||
- cmd: set "PATH=%OLDPATH%" | ||
- cmd: set "OLDPATH=" | ||
|
||
# Actually activate `conda`. | ||
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
- cmd: set PYTHONUNBUFFERED=1 | ||
|
||
- cmd: conda install -n root --quiet --yes obvious-ci | ||
- cmd: conda install -n root --quiet --yes conda-forge-build-setup | ||
- cmd: run_conda_forge_build_setup | ||
|
||
# Skip .NET project specific build phase. | ||
build: off | ||
|
||
test_script: | ||
- "%CMD_IN_ENV% conda build recipe --quiet" | ||
deploy_script: | ||
- cmd: upload_or_check_non_existence .\recipe conda-forge --channel=main |
27 changes: 27 additions & 0 deletions
27
recipes/sqlite-feedstock/ci_support/checkout_merge_commit.sh
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,27 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Update PR refs for testing. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/head:pr/${CIRCLE_PR_NUMBER}/head" | ||
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/${CIRCLE_PR_NUMBER}/merge" | ||
fi | ||
|
||
# Retrieve the refs. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git fetch -u origin ${FETCH_REFS} | ||
fi | ||
|
||
# Checkout the PR merge ref. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git checkout -qf "pr/${CIRCLE_PR_NUMBER}/merge" | ||
fi | ||
|
||
# Check for merge conflicts. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git branch --merged | grep "pr/${CIRCLE_PR_NUMBER}/head" > /dev/null | ||
fi |
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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
# PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here | ||
# will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent | ||
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also | ||
# benefit from the improvement. | ||
|
||
FEEDSTOCK_ROOT=$(cd "$(dirname "$0")/.."; pwd;) | ||
RECIPE_ROOT=$FEEDSTOCK_ROOT/recipe | ||
|
||
docker info | ||
|
||
config=$(cat <<CONDARC | ||
channels: | ||
- conda-forge | ||
- defaults # As we need conda-build | ||
conda-build: | ||
root-dir: /feedstock_root/build_artefacts | ||
show_channel_urls: true | ||
CONDARC | ||
) | ||
|
||
cat << EOF | docker run -i \ | ||
-v ${RECIPE_ROOT}:/recipe_root \ | ||
-v ${FEEDSTOCK_ROOT}:/feedstock_root \ | ||
-a stdin -a stdout -a stderr \ | ||
condaforge/linux-anvil \ | ||
bash || exit $? | ||
export BINSTAR_TOKEN=${BINSTAR_TOKEN} | ||
export PYTHONUNBUFFERED=1 | ||
echo "$config" > ~/.condarc | ||
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artefacts. | ||
conda clean --lock | ||
conda install --yes --quiet conda-forge-build-setup | ||
source run_conda_forge_build_setup | ||
# Embarking on 1 case(s). | ||
conda build /recipe_root --quiet || exit 1 | ||
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1 | ||
EOF |
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,18 @@ | ||
checkout: | ||
post: | ||
- ./ci_support/checkout_merge_commit.sh | ||
|
||
machine: | ||
services: | ||
- docker | ||
|
||
dependencies: | ||
# Note, we used to use the naive caching of docker images, but found that it was quicker | ||
# just to pull each time. #rollondockercaching | ||
override: | ||
- docker pull condaforge/linux-anvil | ||
|
||
test: | ||
override: | ||
# Run, test and (if we have a BINSTAR_TOKEN) upload the distributions. | ||
- ./ci_support/run_docker_build.sh |
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,6 @@ | ||
travis: | ||
secure: | ||
BINSTAR_TOKEN: 0Mv4qYp2mnpS8Ap4rHRtsUeAxaI/5a3AiUSKtN/jpH2MRselPn3YOYLhDFt/ZqvKy+NZvQWrBe7v3qjJeed6n3y+jshScMvK+4YaiEXH0w8cSVP53QenC1S5PX8HxdsSpym6us7B5ooogB2YoIe5YgcZ5l2RwzgZS4ZvNhHTHa6IeReGtfF350oFjpnGhRVbvnIDEaa9KJ1ju+3e/wDgAMSm6c3x33tNQoGD65S8Tj7WWm4UpeSTbn4oGTsOw2vHAkUwVHFkR9YDa+JgtUtfzUZlZFcshK97HIzFPQULJHDyw1flMmU00N2bxtE1v3cJIeNIWXXCNXX35YQ52s4PI2TKhGFPUqArEqWDKwJIIaxdsvosHJtNfbogncSPmZL0jjSD92c2IAIFRS2zEJ47iJ2XG1a5+3Goz/apIzVe/hQ+AZxMUraokc9hg0NK/yDTv5Ngu+NsE2BH4J19VAw7xMVYl5WPenb4BG9tyjMCOhJU9p3qd5LHj8Zn7Lad7nuKOftxgWiSatRGHathdZbK5QE+ee7t0qZtU0PpR0OtoXU4tDKLaU8ZN/MLoJZWFbd3aBZSV/IXDjHBeBpo8yMVELviih7liNMJiWezrFMJDCV69BcZOoAI0KJMetqLkukkLC54ZDWKndOOu3lDxe5VRZPCEadfphZB8yyC9kEWs7M= | ||
appveyor: | ||
secure: | ||
BINSTAR_TOKEN: MP4hZYylDyUWEsrt3u3cod2sbFeRwUziH02mvQOdbjsTO/l1yIxDkP/76rSIjcGC |
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,28 @@ | ||
diff --git sqlite3.c sqlite3.c | ||
index 123c65e..7b22843 100644 | ||
--- sqlite3.c | ||
+++ sqlite3.c | ||
@@ -258,6 +258,8 @@ | ||
extern "C" { | ||
#endif | ||
|
||
+// Always dll export, providing only a shared lib for sqlite. | ||
+#define SQLITE_API __declspec( dllexport ) | ||
|
||
/* | ||
** Provide the ability to override linkage features of the interface. | ||
diff --git sqlite3.h sqlite3.h | ||
index 37d1024..abeca23 100644 | ||
--- sqlite3.h | ||
+++ sqlite3.h | ||
@@ -41,6 +41,10 @@ | ||
extern "C" { | ||
#endif | ||
|
||
+#ifndef SQLITE_EXPORTS | ||
+// Always dll import, providing only a shared lib for sqlite. | ||
+#define SQLITE_API __declspec( dllimport ) | ||
+#endif | ||
|
||
/* | ||
** Provide the ability to override linkage features of the interface. |
Oops, something went wrong.