github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/cataloger/python/test-fixtures/setup/setup.py (about) 1 from setuptools import setup 2 3 # Sample setup.py from the pytest project with added comments specific 4 # to the cataloger 5 6 INSTALL_REQUIRES = [ 7 "py>=1.5.0", 8 "packaging", 9 "attrs>=17.4.0", 10 "more-itertools>=4.0.0", 11 'atomicwrites>=1.0;sys_platform=="win32"', # sys_platform is ignored 12 'pathlib2>=2.2.0;python_version=="3.6"', # python_version is ignored 13 'pathlib3==2.2.0;python_version<"3.6"', # this is caught 14 'colorama;sys_platform=="win32"', 15 "pluggy>=0.12,<1.0", 16 'importlib-metadata>=0.12;python_version<"3.8"', 17 "wcwidth", 18 ] 19 20 21 def main(): 22 setup( 23 use_scm_version={"write_to": "src/_pytest/_version.py"}, 24 setup_requires=["setuptools-scm", "setuptools>=40.0"], 25 package_dir={"": "src"}, 26 extras_require={ 27 "testing": [ 28 "argcomplete", 29 "hypothesis>=3.56", 30 "mock", 31 "nose", 32 "requests", 33 "xmlschema", 34 ], 35 "checkqa-mypy": [ 36 "mypy==v0.770", # this is caught 37 " mypy1==v0.770", # this is caught 38 " mypy2 == v0.770", ' mypy3== v0.770', # this is caught 39 ], 40 }, 41 install_requires=INSTALL_REQUIRES, 42 ) 43 44 45 if __name__ == "__main__": 46 main()