Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit f845cc7

Browse files
committed
Clean up after publishing to PyPI
1 parent 5b2ec24 commit f845cc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import os
55
import re
6+
import shutil
67
import sys
78

89
from setuptools import setup
@@ -72,6 +73,9 @@ def get_package_data(package):
7273
sys.exit()
7374
os.system('python setup.py sdist bdist_wheel')
7475
os.system('twine upload dist/*')
76+
shutil.rmtree('dist')
77+
shutil.rmtree('build')
78+
shutil.rmtree('djangorestframework_jwt.egg-info')
7579
print('You probably want to also tag the version now:')
7680
print(" git tag -a {0} -m 'version {0}'".format(version))
7781
print(' git push --tags')

0 commit comments

Comments
 (0)