Add workflow for testing python setup
This commit is contained in:
parent
18312707fe
commit
67ddca1d9c
33 changed files with 495 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
from setuptools import setup
|
||||
|
||||
# has fake Trove classifier to fool Python extractor to believe this is Python 3 for sure
|
||||
|
||||
# Programming Language :: Python :: 3.7
|
||||
|
||||
setup(
|
||||
name="example-setup.py",
|
||||
install_requires=[],
|
||||
extras_require={"all": ["requests==1.2.3"]}
|
||||
)
|
||||
1
python-setup/tests/setup_py/invalid-file/setup.py
Normal file
1
python-setup/tests/setup_py/invalid-file/setup.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
raise Exception("some kind of error")
|
||||
6
python-setup/tests/setup_py/invalid-version/setup.py
Normal file
6
python-setup/tests/setup_py/invalid-version/setup.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="example-setup.py",
|
||||
install_requires=["requests==10000"],
|
||||
)
|
||||
12
python-setup/tests/setup_py/requests-2/setup.py
Normal file
12
python-setup/tests/setup_py/requests-2/setup.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from setuptools import setup
|
||||
|
||||
# has fake Trove classifier to fool Python extractor to believe this is Python 2 for sure
|
||||
|
||||
# Programming Language :: Python :: 2.7
|
||||
|
||||
|
||||
setup(
|
||||
name="example-setup.py",
|
||||
install_requires=["requests==1.2.3"],
|
||||
python_requires=">=2.7, <3",
|
||||
)
|
||||
12
python-setup/tests/setup_py/requests-3/setup.py
Normal file
12
python-setup/tests/setup_py/requests-3/setup.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from setuptools import setup
|
||||
|
||||
# has fake Trove classifier to fool Python extractor to believe this is Python 3 for sure
|
||||
|
||||
# Programming Language :: Python :: 3.7
|
||||
|
||||
|
||||
setup(
|
||||
name="example-setup.py",
|
||||
install_requires=["requests==1.2.3"],
|
||||
python_requires='>=3.5',
|
||||
)
|
||||
12
python-setup/tests/setup_py/wrong-python-version/setup.py
Normal file
12
python-setup/tests/setup_py/wrong-python-version/setup.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from setuptools import setup
|
||||
|
||||
# has fake Trove classifier to fool Python extractor to believe this is Python 3 for sure
|
||||
|
||||
# Programming Language :: Python :: 3.7
|
||||
|
||||
|
||||
setup(
|
||||
name="example-setup.py",
|
||||
install_requires=["requests==1.2.3"],
|
||||
python_requires=">=2.7, <3",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue