diff options
-rw-r--r-- | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,6 @@ +import os +import sys +import shutil import setuptools from grobid_tei_xml import __version__ @@ -21,9 +24,10 @@ class UploadCommand(setuptools.Command): pass def run(self): + here = os.path.abspath(os.path.dirname(__file__)) try: self.status('Removing previous builds...') - rmtree(os.path.join(here, 'dist')) + shutil.rmtree(os.path.join(here, 'dist')) except OSError: pass @@ -50,7 +54,7 @@ with open("README.md", "r") as fh: packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: 7", + "Programming Language :: Python :: 3.7", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], |