mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
'setup.py test' prints message about tox
closes ticket:2799
This commit is contained in:
parent
ecc2080372
commit
3aac5aa577
11
setup.py
11
setup.py
@ -223,6 +223,16 @@ Warning: no version information found. This may cause tests to fail.
|
||||
|
||||
return versions.get("normalized", None)
|
||||
|
||||
class PleaseUseTox(Command):
|
||||
user_options = []
|
||||
def initialize_options(self):
|
||||
pass
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
print "ERROR: Please use 'tox' to run the test suite."
|
||||
sys.exit(1)
|
||||
|
||||
setup_args = {}
|
||||
if version:
|
||||
@ -236,6 +246,7 @@ setup(name="tahoe-lafs", # also set in __init__.py
|
||||
url='https://tahoe-lafs.org/',
|
||||
license='GNU GPL', # see README.rst -- there is an alternative licence
|
||||
cmdclass={"update_version": UpdateVersion,
|
||||
"test": PleaseUseTox,
|
||||
},
|
||||
package_dir = {'':'src'},
|
||||
packages=['allmydata',
|
||||
|
Loading…
Reference in New Issue
Block a user