Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 8bab1ab

Browse files
committed
setup.py: add some release docs, for next person (hi future me).
1 parent 69d7b22 commit 8bab1ab

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

setup.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,40 @@
33
import os
44
import pypandoc
55

6+
# Notes for the not-an-everyday-python-dev for package distribution on pypi
7+
#
8+
# Build the package using `setuptools`:
9+
#
10+
# python setup.py sdist bdist_wheel
11+
#
12+
# Make sure you have ~/.pypirc correctly populated, as of today should look something like:
13+
#
14+
# [distutils]
15+
# index-servers =
16+
# pypi
17+
# testpypi
18+
#
19+
# [pypi]
20+
# username: username-here
21+
# password: password-here
22+
#
23+
# [testpypi]
24+
# repository: https://test.pypi.org/legacy/
25+
# username: username-here (not necessarily same as real pypi)
26+
# password: password-here (not necessarily same as real pypi)
27+
#
28+
# Then upload using twine to testpypi first:
29+
#
30+
# twine upload -r testpypi dist/*
31+
#
32+
# If all looks good go ahead and tag the repo, push to GH, and then push to real
33+
# pypi:
34+
#
35+
# twine upload dist/*
36+
#
37+
# Congratulations to me, I've just condensed so many webpages into 30 lines,
38+
# :raised_hands:!
39+
640
try:
741
from setuptools import setup
842
except ImportError:

0 commit comments

Comments
 (0)