Skip to content

How to create ufal.udpipe temp

Ajda edited this page Apr 17, 2020 · 1 revision

Currently, we do not use ufal.udpipe package since it does not include wheels instead we use ufal.udpipe-temp which we create ourselves. It needs to be released when ufal.udpipe is released. Here are steps to create a release.

  1. Download ufal.udpipe tar.gz from PyPI

  2. Unzip it

  3. Add MANIFEST.in with the following content in ufal.udpipe directory:

    include udpipe/*
    include Changes
    include examples/*
    include LICENSE
    include test/data/*
    
  4. Open setup.py and make the following changes:

    • Rename package in ufal.udpipe-temp
    • Add following line in the configuration: include_package_data = True,
    • Change the version number to be greater of the current version of ufal.udpipe-temp
  5. Build tar and wheels

    python setup.py sdist
    python setup.py bdist_wheel
    

    The second build must be made with two versions of python

  6. Test tar and wheels

  7. Upload to PyPI.

Clone this wiki locally