1
- ## Release process - ` plotly-geo ` package
1
+ ## Release process for ` plotly-geo ` package
2
2
3
3
The ` plotly-geo ` package contains the shape file resources used by plotly.py.
4
4
These files are relatively large and change infrequently so it is useful
@@ -7,41 +7,40 @@ to release them in a separate package.
7
7
### Update version
8
8
9
9
Update the version of the ` plotly-geo ` package in
10
- ` packages/python/plotly-geo/ setup.py` .
10
+ ` setup.py ` .
11
11
12
12
This version is not intended to match the version of plotly.py.
13
13
14
14
### Update CHANGELOG
15
15
16
- Add a new entry to the CHANGELOG at ` packages/python/plotly-geo/ CHANGELOG.md`
16
+ Add a new entry to the CHANGELOG at ` CHANGELOG.md `
17
17
and commit the changes.
18
18
19
19
### Tag Release
20
20
21
- Create a new tag for the release
21
+ Create a new tag for the release:
22
22
23
23
``` bash
24
- (plotly_dev) $ git checkout master
24
+ (plotly_dev) $ git checkout main
25
25
(plotly_dev) $ git stash
26
- (plotly_dev) $ git pull origin master
27
- (plotly_dev) $ git tag plotly-geo- vX.Y.Z
28
- (plotly_dev) $ git push origin plotly-geo- vX.Y.Z
26
+ (plotly_dev) $ git pull origin main
27
+ (plotly_dev) $ git tag vX.Y.Z
28
+ (plotly_dev) $ git push origin vX.Y.Z
29
29
```
30
30
31
31
### Publishing to PYPI
32
32
33
- Publish the final version to PyPI
33
+ Publish the final version to PyPI:
34
34
35
35
``` bash
36
- (plotly_dev) $ cd packages/python/plotly-geo
37
36
(plotly_dev) $ python setup.py sdist bdist_wheel
38
- (plotly_dev) $ twine upload dist/plotly-geo -X.Y.Z.tar.gz
37
+ (plotly_dev) $ twine upload dist/plotly_geo -X.Y.Z.tar.gz
39
38
(plotly_dev) $ twine upload dist/plotly_geo-X.Y.Z-py3-none-any.whl
40
39
```
41
40
42
41
### Publish to plotly anaconda channel
43
42
44
- From ` packages/python/plotly-geo ` , build the conda package
43
+ From the repository's root directory , build the conda package:
45
44
``` bash
46
45
(plotly_dev) $ conda build recipe/
47
46
```
0 commit comments