| All platforms: |
@@ -72,7 +70,7 @@ A feedstock is made up of a conda recipe (the instructions on what and how to bu
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](https://www.appveyor.com/)
-and [TravisCI](https://travis-ci.org/) it is possible to build and upload installable
+and [TravisCI](https://travis-ci.com/) it is possible to build and upload installable
packages to the [conda-forge](https://anaconda.org/conda-forge)
[Anaconda-Cloud](https://anaconda.org/) channel for Linux, Windows and OSX respectively.
@@ -122,4 +120,5 @@ Feedstock Maintainers
=====================
* [@dwhswenson](https://github.com/dwhswenson/)
+* [@sroet](https://github.com/sroet/)
diff --git a/build-locally.py b/build-locally.py
new file mode 100755
index 0000000..8f7ecca
--- /dev/null
+++ b/build-locally.py
@@ -0,0 +1,63 @@
+#!/usr/bin/env python3
+#
+# This file has been generated by conda-smithy in order to build the recipe
+# locally.
+#
+import os
+import glob
+import subprocess
+from argparse import ArgumentParser
+
+
+def setup_environment(ns):
+ os.environ["CONFIG"] = ns.config
+ os.environ["UPLOAD_PACKAGES"] = "False"
+
+
+def run_docker_build(ns):
+ script = ".scripts/run_docker_build.sh"
+ subprocess.check_call([script])
+
+
+def verify_config(ns):
+ valid_configs = {
+ os.path.basename(f)[:-5] for f in glob.glob(".ci_support/*.yaml")
+ }
+ print(f"valid configs are {valid_configs}")
+ if ns.config in valid_configs:
+ print("Using " + ns.config + " configuration")
+ return
+ elif len(valid_configs) == 1:
+ ns.config = valid_configs.pop()
+ print("Found " + ns.config + " configuration")
+ elif ns.config is None:
+ print("config not selected, please choose from the following:\n")
+ selections = list(enumerate(sorted(valid_configs), 1))
+ for i, c in selections:
+ print(f"{i}. {c}")
+ s = input("\n> ")
+ idx = int(s) - 1
+ ns.config = selections[idx][1]
+ print(f"selected {ns.config}")
+ else:
+ raise ValueError("config " + ns.config + " is not valid")
+ # Remove the following, as implemented
+ if not ns.config.startswith("linux"):
+ raise ValueError(
+ f"only Linux configs currently supported, got {ns.config}"
+ )
+
+
+def main(args=None):
+ p = ArgumentParser("build-locally")
+ p.add_argument("config", default=None, nargs="?")
+
+ ns = p.parse_args(args=args)
+ verify_config(ns)
+ setup_environment(ns)
+
+ run_docker_build(ns)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/recipe/meta.yaml b/recipe/meta.yaml
index 51094ce..615df95 100644
--- a/recipe/meta.yaml
+++ b/recipe/meta.yaml
@@ -1,6 +1,6 @@
{% set name = "contact_map" %}
-{% set version = "0.4.0" %}
-{% set sha256 = "775a7a5c1dbcbb19adefeaec2c3d11ff6274ce3329ed3b42bd42fda453ab542e" %}
+{% set version = "0.5.0" %}
+{% set sha256 = "b3bc031947d571edc164c9fe90f0168aac5eb835eee32e13c69e7a83ebee05eb" %}
package:
name: {{ name|lower }}
@@ -14,7 +14,7 @@ source:
build:
noarch: python
number: 0
- script: python -m pip install --no-deps --ignore-installed .
+ script: {{ PYTHON }} -m pip install . --no-deps -vv
requirements:
build:
@@ -48,3 +48,4 @@ about:
extra:
recipe-maintainers:
- dwhswenson
+ - sroet
|