move most setuptools parameters over to setup.cfg
This commit is contained in:
parent
d4351ac5a2
commit
7855284ef7
26
setup.cfg
26
setup.cfg
|
@ -3,10 +3,16 @@
|
||||||
name = pytest
|
name = pytest
|
||||||
description = pytest: simple powerful testing with Python
|
description = pytest: simple powerful testing with Python
|
||||||
long_description = file: README.rst
|
long_description = file: README.rst
|
||||||
|
url = "https://docs.pytest.org/en/latest/"
|
||||||
|
project_urls =
|
||||||
|
Source=https://github.com/pytest-dev/pytest
|
||||||
|
Tracker=https://github.com/pytest-dev/pytest/issues
|
||||||
|
|
||||||
|
author = Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others
|
||||||
|
|
||||||
|
license = MIT license
|
||||||
license_file = LICENSE
|
license_file = LICENSE
|
||||||
|
keywords = test, unittest
|
||||||
classifiers =
|
classifiers =
|
||||||
Development Status :: 6 - Mature
|
Development Status :: 6 - Mature
|
||||||
Intended Audience :: Developers
|
Intended Audience :: Developers
|
||||||
|
@ -24,7 +30,25 @@ classifiers =
|
||||||
Programming Language :: Python :: 3.5
|
Programming Language :: Python :: 3.5
|
||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
|
platforms = unix, linux, osx, cygwin, win32
|
||||||
|
|
||||||
|
[options]
|
||||||
|
zip_safe = no
|
||||||
|
packages =
|
||||||
|
_pytest
|
||||||
|
_pytest.assertion
|
||||||
|
_pytest._code
|
||||||
|
_pytest.mark
|
||||||
|
_pytest.config
|
||||||
|
|
||||||
|
py_modules = pytest
|
||||||
|
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
|
||||||
|
|
||||||
|
|
||||||
|
[options.entry_points]
|
||||||
|
console_scripts =
|
||||||
|
pytest=pytest:main
|
||||||
|
py.test=pytest:main
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/en/
|
source-dir = doc/en/
|
||||||
|
|
65
setup.py
65
setup.py
|
@ -2,52 +2,33 @@ import os
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def main():
|
# TODO: if py gets upgrade to >=1.6,
|
||||||
install_requires = [
|
# remove _width_of_current_line in terminal.py
|
||||||
"py>=1.5.0", # if py gets upgrade to >=1.6, remove _width_of_current_line in terminal.py
|
INSTALL_REQUIRES = [
|
||||||
"six>=1.10.0",
|
"py>=1.5.0",
|
||||||
"setuptools",
|
"six>=1.10.0",
|
||||||
"attrs>=17.4.0",
|
"setuptools",
|
||||||
"more-itertools>=4.0.0",
|
"attrs>=17.4.0",
|
||||||
"atomicwrites>=1.0",
|
"more-itertools>=4.0.0",
|
||||||
'funcsigs;python_version<"3.0"',
|
"atomicwrites>=1.0",
|
||||||
'pathlib2>=2.2.0;python_version<"3.6"',
|
'funcsigs;python_version<"3.0"',
|
||||||
'colorama;sys_platform=="win32"',
|
'pathlib2>=2.2.0;python_version<"3.6"',
|
||||||
]
|
'colorama;sys_platform=="win32"',
|
||||||
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
|
]
|
||||||
# used by tox.ini to test with pluggy master
|
|
||||||
if "_PYTEST_SETUP_SKIP_PLUGGY_DEP" not in os.environ:
|
|
||||||
install_requires.append("pluggy>=0.7")
|
|
||||||
|
|
||||||
|
|
||||||
|
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
|
||||||
|
# used by tox.ini to test with pluggy master
|
||||||
|
if "_PYTEST_SETUP_SKIP_PLUGGY_DEP" not in os.environ:
|
||||||
|
INSTALL_REQUIRES.append("pluggy>=0.7")
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
setup(
|
setup(
|
||||||
use_scm_version={"write_to": "src/_pytest/_version.py"},
|
use_scm_version={"write_to": "src/_pytest/_version.py"},
|
||||||
url="https://docs.pytest.org/en/latest/",
|
setup_requires=["setuptools-scm", "setuptools>=30.3"],
|
||||||
project_urls={
|
|
||||||
"Source": "https://github.com/pytest-dev/pytest",
|
|
||||||
"Tracker": "https://github.com/pytest-dev/pytest/issues",
|
|
||||||
},
|
|
||||||
license="MIT license",
|
|
||||||
platforms=["unix", "linux", "osx", "cygwin", "win32"],
|
|
||||||
author=(
|
|
||||||
"Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, "
|
|
||||||
"Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others"
|
|
||||||
),
|
|
||||||
entry_points={"console_scripts": ["pytest=pytest:main", "py.test=pytest:main"]},
|
|
||||||
keywords="test unittest",
|
|
||||||
# the following should be enabled for release
|
|
||||||
setup_requires=["setuptools-scm", "setuptools>30.3"],
|
|
||||||
package_dir={"": "src"},
|
package_dir={"": "src"},
|
||||||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
install_requires=INSTALL_REQUIRES,
|
||||||
install_requires=install_requires,
|
|
||||||
packages=[
|
|
||||||
"_pytest",
|
|
||||||
"_pytest.assertion",
|
|
||||||
"_pytest._code",
|
|
||||||
"_pytest.mark",
|
|
||||||
"_pytest.config",
|
|
||||||
],
|
|
||||||
py_modules=["pytest"],
|
|
||||||
zip_safe=False,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue