[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2903: appveyor "artifacts" aren't correctly named

Tahoe-LAFS trac at tahoe-lafs.org
Thu Feb 8 18:27:47 UTC 2018


#2903: appveyor "artifacts" aren't correctly named
-----------------------+----------------------------
 Reporter:  warner     |          Owner:  daira
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:  eventually
Component:  packaging  |        Version:  1.12.1
 Keywords:  windows    |  Launchpad Bug:
-----------------------+----------------------------
 We use Appveyor.com (like Travis-CI but just for Windows) to run tests and
 produce binary wheels for Tahoe-LAFS and its dependencies. However
 something is misconfigured, because the "artifacts" page only lists a
 single downloadable `dist.zip` file, instead of several separate `.whl` or
 `.zip` files.

 One example is here: https://ci.appveyor.com/project/tahoe-lafs/tahoe-
 lafs/build/1.0.1033/job/aymf87t0b5e4c6ev/artifacts

 The most relevant settings are in the `.appveyor.yml` file in the source
 tree, towards the bottom:

 {{{
 after_test:
   # This builds the main tahoe wheel, and wheels for all dependencies.
   # Again, you only need build.cmd if you're building C extensions for
   # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
   # interpreter
   - |
     rd /s /q _trial_temp
     %PYTHON%\python.exe setup.py bdist_wheel
     %PYTHON%\python.exe -m pip wheel -w dist .

 artifacts:
   # bdist_wheel puts your built wheel in the dist directory
   # "pip wheel -w dist ." puts all the dependency wheels there too
   # this gives us a zipfile with everything
   - path: dist
 }}}

 I was hoping that `dist` would mean to make separate artifacts for every
 file in the `dist/` directory, but obviously I've got the syntax wrong (if
 it's even possible to express what I wanted).

 On a different project (Magic-Wormhole), I used `- path: dist\*`, but it
 then produced an artifact with an embedded backslash in the name:
 `dist\magic_wormhole-0.10.4-py2.py3-none-any.whl`. When I use `wget` to
 save this to disk, I wind up with a literal percent character in the
 filename: `dist%2Fmagic_wormhole-0.10.4-py2.py3-none-any.whl`.

 I have the same backslash problem on zfec, since I copied the
 `.appveyor.yml` from magic-wormhole. We don't yet have appveyor set up on
 pycryptopp, but it'd be similarly nice to produce the correct artifacts.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2903>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list