Skip to content

Commit 086115c

Browse files
committed
Clean up after publishing to PyPI
1 parent 0198bce commit 086115c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# -*- coding: utf-8 -*-
33
import os
44
import re
5+
import shutil
56
import sys
67

78
from setuptools import setup
@@ -55,6 +56,9 @@ def get_package_data(package):
5556
print("You probably want to also tag the version now:")
5657
print(" git tag -a %s -m 'version %s'" % (version, version))
5758
print(" git push --tags")
59+
shutil.rmtree('dist')
60+
shutil.rmtree('build')
61+
shutil.rmtree('djangorestframework.egg-info')
5862
sys.exit()
5963

6064

0 commit comments

Comments
 (0)