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

modified meta.yaml for Windows build using msys2 #34

Closed
wants to merge 4 commits 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
53 changes: 53 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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:

BINSTAR_TOKEN:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
secure: tumuXLL8PU75WMnRDemRy02ruEq2RpNxeK3dz0MjFssnosPm2v4EFjfNB4PTotA1

matrix:
- CONFIG: win_c_compilervs2015python3.6
CONDA_INSTALL_LOCN: C:\Miniconda36-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.
- cmd: |
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
del ff_ci_pr_build.py

# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q

# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda.exe update --yes --quiet conda

- cmd: set PYTHONUNBUFFERED=1

# Add our channels.
- cmd: conda.exe config --set show_channel_urls true
- cmd: conda.exe config --remove channels defaults
- cmd: conda.exe config --add channels defaults
- cmd: conda.exe config --add channels conda-forge

# Configure the VM.
- cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=1
- cmd: run_conda_forge_build_setup

# Skip .NET project specific build phase.
build: off

test_script:
- conda.exe build recipe -m .ci_support\%CONFIG%.yaml --quiet
deploy_script:
- cmd: upload_or_check_non_existence .\recipe conda-forge --channel=main -m .ci_support\%CONFIG%.yaml
2 changes: 1 addition & 1 deletion .ci_support/linux_python3.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ pin_run_as_build:
libiconv:
max_pin: x.x
python:
max_pin: x.x
min_pin: x.x
max_pin: x.x
zlib:
max_pin: x.x
python:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_python3.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ pin_run_as_build:
libiconv:
max_pin: x.x
python:
max_pin: x.x
min_pin: x.x
max_pin: x.x
zlib:
max_pin: x.x
python:
Expand Down
19 changes: 19 additions & 0 deletions .ci_support/win_c_compilervs2015python3.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
c_compiler:
- vs2015
libiconv:
- '1.15'
pin_run_as_build:
libiconv:
max_pin: x.x
python:
min_pin: x.x
max_pin: x.x
zlib:
max_pin: x.x
python:
- '3.6'
zip_keys:
- - python
- c_compiler
zlib:
- '1.2'
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Checklist
* [ ] Used a fork of the feedstock to propose changes
* [ ] Bumped the build number (if the version is unchanged)
* [ ] Reset the build number to `0` (if the version changed)
* [ ] [Re-rendered]( https://conda-forge.org/docs/conda_smithy.html#how-to-re-render ) with the latest `conda-smithy` (`@conda-forge-admin, please rerender`)
* [ ] [Re-rendered]( https://conda-forge.org/docs/conda_smithy.html#how-to-re-render ) with the latest `conda-smithy` (Use the phrase <code>@<space/>conda-forge-admin, please rerender</code> in a comment in this PR for automated rerendering)
* [ ] Ensured the license file is being packaged.

<!--
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Current build status

[![Linux](https://img.shields.io/circleci/project/github/conda-forge/glib-feedstock/master.svg?label=Linux)](https://circleci.com/gh/conda-forge/glib-feedstock)
[![OSX](https://img.shields.io/travis/conda-forge/glib-feedstock/master.svg?label=macOS)](https://travis-ci.org/conda-forge/glib-feedstock)
![Windows disabled](https://img.shields.io/badge/Windows-disabled-lightgrey.svg)
[![Windows](https://img.shields.io/appveyor/ci/conda-forge/glib-feedstock/master.svg?label=Windows)](https://ci.appveyor.com/project/conda-forge/glib-feedstock/branch/master)

Current release info
====================
Expand Down Expand Up @@ -58,13 +58,13 @@ 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/)
[CircleCI](https://circleci.com/), [AppVeyor](https://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.
[Anaconda-Cloud](https://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.
[conda-smithy](https://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``.

Expand Down Expand Up @@ -100,7 +100,7 @@ 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).
the [``build/number``](https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.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.
the [``build/number``](https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#build-number-and-string)
back to 0.
18 changes: 11 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,28 @@ source:
- no_fileutils_test.patch

build:
number: 2
skip: True # [win or not py36]
number: 3
skip: True # [not py36]
detect_binary_files_with_prefix: True

requirements:
build:
- pkg-config
- pkg-config # [not win]
- {{ compiler('c') }}
host:
- python
- libffi
- gettext
- libffi # [not win]
- m2-libffi # [win]
- gettext # [not win]
- m2-gettext # [win]
- zlib
- pcre
- libiconv
run:
- libffi
- gettext
- libffi # [not win]
- m2-libffi # [win]
- gettext # [not win]
- m2-gettext # [win]
- zlib
- pcre
- libiconv
Expand Down