From 1d00cc5ef900998523aa75245daf69f2513205bb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 25 Oct 2021 17:17:59 -0700 Subject: setup.py: fix upload process --- setup.py | 8 ++++++-- 1 file 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", ], -- cgit v1.2.3