Skip to content

Commit 43f8f33

Browse files
committed
Add contributing doc
1 parent a61c3f1 commit 43f8f33

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CONTRIBUTING.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Publish to pypi
2+
3+
Following the [general guidelines for publishing](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/), and using Mapbox pypi account credentials, we can make new versions of `rio-color` available on pypi. This approach replaces our previous use of TravisCI and Appveyor, both now deprecated with our organization.
4+
5+
### Build packages
6+
7+
```
8+
python3 -m pip install build twine
9+
python3 -m build --sdist
10+
python3 -m build --wheel
11+
```
12+
13+
### Upload packages
14+
Once you've configured `.pypirc` [with the project token](https://pypi.org/help/#apitoken), you can upload the packages to pypi.
15+
16+
```
17+
twine upload dist/* --repository rio-color
18+
```
19+
20+
And confirm the upload at [the project page](https://pypi.org/project/rio-color/#history).

0 commit comments

Comments
 (0)