summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 7798559..dfe1b2d 100644
--- a/setup.py
+++ b/setup.py
@@ -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",
],