summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-25 17:17:59 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-25 17:17:59 -0700
commit1d00cc5ef900998523aa75245daf69f2513205bb (patch)
treea66da5b94e76181d85295b8f357622ef86eb8201
parentdf8fca0122f6d85dcda9e14df8c65907b6e0cd7d (diff)
downloadgrobid_tei_xml-1d00cc5ef900998523aa75245daf69f2513205bb.tar.gz
grobid_tei_xml-1d00cc5ef900998523aa75245daf69f2513205bb.zip
setup.py: fix upload process
-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",
],