linkedin / detext

DeText: A Deep Neural Text Understanding Framework for Ranking and Classification Tasks
BSD 2-Clause "Simplified" License
1.26k stars 134 forks source link

Automatic versioning with bump2version, and simplify pypi package releasing #48

Closed xwli-chelsea closed 4 years ago

xwli-chelsea commented 4 years ago

Description

Automating the pypi release process by 1) automate versioning for releases with bump2version (https://github.com/c4urself/bump2version), 2) also publishes LI internal use packages to li-detext.

For new releases, dev team need to 1) run the pypi_release.sh script. 2) merge the updated version into master It'll publish two packages to detext (public use) and li-detext (LI internal use without dependencies). See RELEASING.md for more info.

Fixes # (issue) Having to manually versioning and releasing internal/external packages separately.

Type of change

Please delete options that are not relevant.

List all changes

Please list all changes in the commit.

Testing

Tested both the public package pip install detext==2.0.8 and python setup.py develop Verified li-detext==2.0.8 does not include the dependencies and can be imported to LI internally.

Test Configuration:

Checklist

xwli-chelsea commented 4 years ago

Hi @zhoutong-fu @StarWang could you please help review the new changes when you get a chance? I added bump2version support for automatic versioning when publishing. Thanks!