File size: 2,141 Bytes
d439dc1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | # For maintainers only
## Responsibilities
Please go through this link [Maintainer Responsibility](https://gist.github.com/abperiasamy/f4d9b31d3186bbd26522)
### Setup your minio-py Github Repository
Fork [minio-py upstream](https://github.com/minio/minio-py/fork) source repository to your own personal repository.
```sh
$ git clone git@github.com:minio/minio-py
$ cd minio-py
$ pip install urllib3 certifi pytz pyflakes faker twine
```
### Modify package version
```sh
$ cat minio/__init__.py
...
...
__version__ = '2.2.5'
...
...
```
### Build and verify
Run `./tests/unit_test.sh` and `./tests/functional_test.sh` to verify the SDK.
```sh
$ ./tests/unit_test.sh
$ ./tests/functional_test.sh all
$ python setup.py sdist bdist bdist_wheel
```
### Publishing new packages
#### Setup your pypirc
Create a new `pypirc`
```sh
$ cat >> $HOME/.pypirc << EOF
[distutils]
index-servers =
pypi
[pypi]
username:minio
password:**REDACTED**
EOF
```
#### Sign
Sign the release artifacts, this step requires you to have access to MinIO's trusted private key.
```sh
$ export GNUPGHOME=/media/${USER}/minio/trusted
$ gpg --detach-sign -a dist/minio-2.2.5.tar.gz
$ gpg --detach-sign -a dist/minio-2.2.5.linux-x86_64.tar.gz
$ gpg --detach-sign -a dist/minio-2.2.5-py2.py3-none-any.whl
```
#### Upload to pypi
Upload the signed release artifacts, please install twine v1.8.0+ for following steps to work properly.
```sh
$ twine upload dist/*
```
### Tag
Tag and sign your release commit, additionally this step requires you to have access to MinIO's trusted private key.
```
$ export GNUPGHOME=/media/${USER}/minio/trusted
$ git tag -s 2.2.5
$ git push
$ git push --tags
```
### Announce
Announce new release by adding release notes at https://github.com/minio/minio-py/releases from `trusted@min.io` account. Release notes requires two sections `highlights` and `changelog`. Highlights is a bulleted list of salient features in this release and Changelog contains list of all commits since the last release.
To generate `changelog`
```sh
git log --no-color --pretty=format:'-%d %s (%cr) <%an>' <last_release_tag>..<latest_release_tag>
```
|