build wheels on windows
MODIFY
README.md
README.md
@@ -158,6 +158,8 @@ We assume you have [twine][twine] installed and that you've created your own
fork of [fastavro-feedstock][feedstock].
* Make sure the tests pass
+* Copy the windows build artifacts for the new version from
+ https://ci.appveyor.com/project/scottbelden/fastavro to the `dist` folder
* Run `make publish`
* Note the sha signature emitted at the above
* Switch to feedstock directory and edit `recipe/meta.yaml`

MODIFY
appveyor.yml
appveyor.yml
@@ -12,7 +12,7 @@ environment:
- PYTHON: "C:\\Python36-x64"
install:
- - "%PYTHON%\\python.exe -m pip install pytest flake8 check-manifest Cython"
+ - "%PYTHON%\\python.exe -m pip install pytest flake8 check-manifest Cython wheel"
build: off
@@ -20,3 +20,12 @@ test_script:
- "set PYTHONPATH=%cd%"
- "%PYTHON%\\python.exe setup.py build_ext --inplace"
- "%PYTHON%\\python.exe -m pytest -v tests"
+
+after_test:
+ # If tests are successful, create binary packages for the project.
+ - "%PYTHON%\\python.exe setup.py bdist_wheel"
+ - ps: "ls dist"
+
+artifacts:
+ # Archive the generated packages in the ci.appveyor.com build report.
+ - path: dist\*

MODIFY
publish.sh
publish.sh
pyver=$(python -c 'import sys; print("%s%s" % sys.version_info[:2])')
ver=$(python setup.py --version)
-pkg=fastavro-${ver}-py${pyver}_0.tar.bz2
-
# Fail on 1'st error
set -e
@@ -13,12 +11,10 @@ set -x
make
python setup.py sdist
twine upload dist/fastavro-${ver}.tar.gz
-# TODO: upload fails for some reason
-#conda build .
-#anaconda upload /opt/anaconda3/conda-bld/linux-64/${pkg}
+
git tag -f $(python setup.py --version)
git push
git push --tags
# print sha so we can use it in conda-forge recipe
sha256sum dist/fastavro-${ver}.tar.gz
-rm -fr build dist fastavro.egg-info/
+rm -fr build dist/* fastavro.egg-info/

build wheels on windows