@@ -27,12 +27,13 @@ To create the package for pypi.
...
@@ -27,12 +27,13 @@ To create the package for pypi.
3. Unpin specific versions from setup.py that use a git install.
3. Unpin specific versions from setup.py that use a git install.
4. Commit these changes with the message: "Release: <VERSION>" and push.
4. Checkout the release branch (v<RELEASE>-release, for example v4.19-release), and commit these changes with the
message: "Release: <VERSION>" and push.
5. Wait for the tests on main to be completed and be green (otherwise revert and fix bugs)
5. Wait for the tests on main to be completed and be green (otherwise revert and fix bugs)
6. Add a tag in git to mark the release: "git tag v<VERSION> -m 'Adds tag v<VERSION> for pypi' "
6. Add a tag in git to mark the release: "git tag v<VERSION> -m 'Adds tag v<VERSION> for pypi' "
Push the tag to git: git push --tags origin main
Push the tag to git: git push --tags origin v<RELEASE>-release
7. Build both the sources and the wheel. Do not change anything in setup.py between
7. Build both the sources and the wheel. Do not change anything in setup.py between
creating the wheel and the source distribution (obviously).
creating the wheel and the source distribution (obviously).
...
@@ -137,7 +138,7 @@ _deps = [
...
@@ -137,7 +138,7 @@ _deps = [
"pytest",
"pytest",
"pytest-timeout",
"pytest-timeout",
"pytest-xdist",
"pytest-xdist",
"python>=3.6.0",
"python>=3.7.0",
"ray[tune]",
"ray[tune]",
"regex!=2019.12.17",
"regex!=2019.12.17",
"requests",
"requests",
...
@@ -391,7 +392,7 @@ install_requires = [
...
@@ -391,7 +392,7 @@ install_requires = [
setup(
setup(
name="transformers",
name="transformers",
version="4.19.0.dev0",# expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
version="4.20.0.dev0",# expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)",
author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)",
author_email="transformers@huggingface.co",
author_email="transformers@huggingface.co",
description="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow",
description="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow",