diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-25 17:17:59 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-25 17:17:59 -0700 |
commit | 1d00cc5ef900998523aa75245daf69f2513205bb (patch) | |
tree | a66da5b94e76181d85295b8f357622ef86eb8201 | |
parent | df8fca0122f6d85dcda9e14df8c65907b6e0cd7d (diff) | |
download | grobid_tei_xml-1d00cc5ef900998523aa75245daf69f2513205bb.tar.gz grobid_tei_xml-1d00cc5ef900998523aa75245daf69f2513205bb.zip |
setup.py: fix upload process
-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", ], |