subvertpy icon indicating copy to clipboard operation
subvertpy copied to clipboard

publish wheels on pypi

Open douardda opened this issue 6 years ago • 11 comments

it would be great to have python wheels published on pypi along the source package. Would help CI kind of tasks (especially tests in tox and the like).

douardda avatar Oct 31 '18 08:10 douardda

+1 If you're interested in working on this, help would be great.

jelmer avatar Oct 31 '18 18:10 jelmer

I think the easiest way to do this is to update the appveyor file to install the right dependencies; we already have it set up to build and publish msi and wheel files.

To a large extent, this means adding the steps documented in section E (Building the Latest Source under Windows) in appveyor.yml.

jelmer avatar May 22 '20 14:05 jelmer

So i setup up the environment. After some struggle. I am getting the following syntax error for the subvertpy-upstream-0.10.1 at util.c at lines image

Any idea how to resolve this? From my understanding it is assigment to existings variables. So i guess a hopefull guess that .<varible_name> = value, should only be value,.

k10blogger avatar May 22 '20 20:05 k10blogger

Yeah, some fairly recent versions of MSVC don't support C99 style struct member assignments. Feel free to replace with ordered member values. Note that you can't just drop the ".foo = " bit, you'll need to make sure that they're in the right order as well and that any intermediate member variables are initialized.

jelmer avatar May 22 '20 20:05 jelmer

I did that now i am stuck at the linking part seems some library mismatch can you help me with that. From the picture below: I could not find neon library in the 1.8.17 dev folder. or any 1.8.17 folder. I removed the libintl completely image

From image further below 1 - I am able to find these libraries 2 - Removed the intl as not needed and optional 3 - found these in the VC for Python SDK folder But i cannot find the zlibstat library. Do you know where to look for? image

k10blogger avatar May 22 '20 21:05 k10blogger

FWIW that's in the bit of code I have removed from subvertpy, because it's too crufty. I don't think it's useful to try and build subvertpy that way - I'd recommend just building subversion using their instructions and once you've done that, then try and build subvertpy.

jelmer avatar May 22 '20 22:05 jelmer

FWIW I've been moving my projects over to GitHub actions from appveyor/travis.

The .github/workflows/pythonpackage.yml code has the beginnings of this for subvertpy.

jelmer avatar May 23 '20 18:05 jelmer

Thanks for the information. I am still stuck at building subversion on windows. Reading up on that.

k10blogger avatar May 23 '20 20:05 k10blogger

There is some progress towards this - now merged into master.

The github action will actually build subvertpy on Windows. The modules load, but the testsuite currently crashes.

Once that's addressed, we could potentially use the github actions to publish a wheel on Windows.

jelmer avatar Nov 10 '20 00:11 jelmer

Hi It seems from the build history https://github.com/jelmer/subvertpy/runs/1377423910?check_suite_focus=true

It fails at this action https://github.com/jelmer/subvertpy/actions/runs/355021529/workflow#L110

msbuild needs a build package like the following on the system like this one https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

Need to read up on how to get it in the actions or the machine.

k10blogger avatar Nov 13 '20 20:11 k10blogger

Hmm, odd - that used to work - I've added the missing action to install msbuild.

jelmer avatar Nov 13 '20 21:11 jelmer