File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import os
12from os .path import abspath , dirname , join
2- from os import environ
33from setuptools import setup
44
55__version__ = None
1111 "pytz" ,
1212]
1313
14- tests_require = ["nose" ]
15-
16- if "SAGAN_WITHOUT_SSL" not in environ :
14+ if "SAGAN_WITHOUT_SSL" not in os .environ :
1715 install_requires .append ("cryptography" )
1816
17+ # Allow setup.py to be run from any path
18+ os .chdir (os .path .normpath (os .path .join (os .path .abspath (__file__ ), os .pardir )))
19+
1920# Get proper long description for package
2021current_dir = dirname (abspath (__file__ ))
2122description = open (join (current_dir , "README.rst" )).read ()
3839 maintainer = "The RIPE Atlas Team" ,
3940 maintainer_email = "atlas@ripe.net" ,
4041 install_requires = install_requires ,
41- tests_require = tests_require ,
4242 extras_require = {
4343 "fast" : ["ujson" ],
4444 "doc" : ["sphinx" ]
4545 },
46- test_suite = "nose.collector" ,
4746 classifiers = [
4847 "Operating System :: POSIX" ,
4948 "Operating System :: Unix" ,
Original file line number Diff line number Diff line change 77 pytest
88commands =
99 # flake8 --max-line-length=88 setup.py ripe/atlas/sagan/ tests/
10- pytest -r a {posargs}
10+ pytest {posargs}
You can’t perform that action at this time.
0 commit comments