|
44 | 44 | For the sources, run: "python setup.py sdist" |
45 | 45 | You should now have a /dist directory with both .whl and .tar.gz source versions. |
46 | 46 |
|
| 47 | + Long story cut short, you need to run both before you can upload the distribution to the |
| 48 | + test pypi and the actual pypi servers: |
| 49 | + |
| 50 | + python setup.py bdist_wheel && python setup.py sdist |
| 51 | +
|
47 | 52 | 8. Check that everything looks correct by uploading the package to the pypi test server: |
48 | 53 |
|
49 | 54 | twine upload dist/* -r pypitest |
|
54 | 59 | Check that you can install it in a virtualenv by running: |
55 | 60 | pip install -i https://testpypi.python.org/pypi diffusers |
56 | 61 |
|
| 62 | + If you are testing from a Colab Notebook, for instance, then do: |
| 63 | + pip install diffusers && pip uninstall diffusers |
| 64 | + pip install -i https://testpypi.python.org/pypi diffusers |
| 65 | +
|
57 | 66 | Check you can run the following commands: |
58 | | - python -c "from diffusers import pipeline; classifier = pipeline('text-classification'); print(classifier('What a nice release'))" |
| 67 | + python -c "python -c "from diffusers import __version__; print(__version__)" |
| 68 | + python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('fusing/unet-ldm-dummy-update'); pipe()" |
| 69 | + python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('hf-internal-testing/tiny-stable-diffusion-pipe', safety_checker=None); pipe('ah suh du')" |
59 | 70 | python -c "from diffusers import *" |
60 | 71 |
|
61 | 72 | 9. Upload the final version to actual pypi: |
62 | 73 | twine upload dist/* -r pypi |
63 | 74 |
|
64 | | -10. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory. |
| 75 | +10. Prepare the release notes and publish them on github once everything is looking hunky-dory. |
65 | 76 |
|
66 | 77 | 11. Run `make post-release` (or, for a patch release, `make post-patch`). If you were on a branch for the release, |
67 | 78 | you need to go back to main before executing this. |
@@ -234,10 +245,10 @@ def run(self): |
234 | 245 | setup( |
235 | 246 | name="diffusers", |
236 | 247 | version="0.21.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) |
237 | | - description="Diffusers", |
| 248 | + description="State-of-the-art diffusion in PyTorch and JAX.", |
238 | 249 | long_description=open("README.md", "r", encoding="utf-8").read(), |
239 | 250 | long_description_content_type="text/markdown", |
240 | | - keywords="deep learning", |
| 251 | + keywords="deep learning diffusion jax pytorch stable diffusion audioldm", |
241 | 252 | license="Apache", |
242 | 253 | author="The HuggingFace team", |
243 | 254 | |
|
0 commit comments