remove clean files from setup.py, fixes in doc

This commit is contained in:
Grzegorz Bokota
2020-03-07 12:24:15 +01:00
parent 01a7c2d6df
commit d613a8c1a6
4 changed files with 9 additions and 18 deletions
-10
View File
@@ -1,16 +1,6 @@
from setuptools import setup, Extension
import sys, os
# assert that the Python version as written to pythonversion.txt in the CIBW_BEFORE_BUILD step
# is the same one as is currently running.
version_file = 'c:\\pythonversion.txt' if sys.platform == 'win32' else '/tmp/pythonversion.txt'
if os.path.exists(version_file):
os.remove(version_file)
# check that the executable also was written
executable_file = 'c:\\pythonexecutable.txt' if sys.platform == 'win32' else '/tmp/pythonexecutable.txt'
if os.path.exists(executable_file):
os.remove(executable_file)
setup(
name="spam",
+2 -1
View File
@@ -4,8 +4,9 @@ from unittest import TestCase
class TestBeforeTest(TestCase):
def test_version(self):
# assert that the Python version as written to pythonversion.txt in the CIBW_BEFORE_BUILD step
# assert that the Python version as written to pythonversion.txt in the CIBW_BEFORE_TEST step
# is the same one as is currently running.
# because of use symlinks in MacOS run this test is also need
version_file = 'c:\\pythonversion.txt' if sys.platform == 'win32' else '/tmp/pythonversion.txt'
with open(version_file) as f:
stored_version = f.read()