blob: 752d660c724fd056eccc48485e4aa8b674f61692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from subprocess import call
import os
if os.environ.get("TOXENV"):
# normal tox run, lets jsut have tox do its job
import tox
tox.cmdline()
elif os.environ.get("SELFINSTALL"):
# self install testing needs some clarity
# so its being executed without any other tools running
call("python setup.py sdist", shell=True)
call("easy_install dist/*", shell=True)
import pkg_resources
dist = pkg_resources.get_distribution("setuptools_scm")
import setuptools_scm
assert dist.version == setuptools_scm.get_version(), dist.version
|