Skip to content

Commit 217c043

Browse files
committed
Move setup.py config to setup.cfg
1 parent d9d87d8 commit 217c043

File tree

2 files changed

+47
-44
lines changed

2 files changed

+47
-44
lines changed

setup.cfg

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
1-
[tool:pytest]
2-
norecursedirs = .tox .git .local *.egg build
1+
[metadata]
2+
name = testinfra
3+
url = https://github.com/philpep/testinfra
4+
description = Test infrastructures
5+
long_description = file:README.rst
6+
long_description_content_type = text/x-rst
7+
author = Philippe Pepiot
8+
author_email = [email protected]
9+
license_file = LICENSE
10+
classifiers =
11+
Development Status :: 5 - Production/Stable
12+
Environment :: Console
13+
Intended Audience :: Developers
14+
Intended Audience :: Information Technology
15+
Intended Audience :: System Administrators
16+
License :: OSI Approved :: Apache Software License
17+
Operating System :: POSIX
18+
Programming Language :: Python
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: 3 :: Only
21+
Programming Language :: Python :: 3.4
22+
Programming Language :: Python :: 3.5
23+
Programming Language :: Python :: 3.6
24+
Programming Language :: Python :: 3.7
25+
Programming Language :: Python :: 3.8
26+
Topic :: Software Development :: Testing
27+
Topic :: System :: Systems Administration
28+
Framework :: Pytest
29+
30+
[options]
31+
use_scm_version = True
32+
python_requires = >=3.4
33+
packages = find:
34+
setup_requires =
35+
setuptools_scm
36+
install_requires =
37+
pytest!=3.0.2
38+
extras_require =
339

440
[options.extras_require]
541
ansible = ansible
@@ -10,3 +46,10 @@ lxc =
1046
paramiko = paramiko
1147
salt = salt
1248
winrm = pywinrm
49+
50+
[options.entry_points]
51+
pytest11 =
52+
pytest11.testinfra=testinfra.plugin
53+
54+
[tool:pytest]
55+
norecursedirs = .tox .git .local *.egg build

setup.py

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import setuptools
1716

18-
setuptools.setup(
19-
name='testinfra',
20-
author='Philippe Pepiot',
21-
author_email='[email protected]',
22-
description='Test infrastructures',
23-
long_description=open(os.path.join(
24-
os.path.dirname(__file__), 'README.rst')).read(),
25-
url='https://github.com/philpep/testinfra',
26-
classifiers=[
27-
'Development Status :: 5 - Production/Stable',
28-
'Environment :: Console',
29-
'Intended Audience :: Developers',
30-
'Intended Audience :: Information Technology',
31-
'Intended Audience :: System Administrators',
32-
'License :: OSI Approved :: Apache Software License',
33-
'Operating System :: POSIX',
34-
'Programming Language :: Python',
35-
'Programming Language :: Python :: 3',
36-
'Programming Language :: Python :: 3 :: Only',
37-
'Programming Language :: Python :: 3.4',
38-
'Programming Language :: Python :: 3.5',
39-
'Programming Language :: Python :: 3.6',
40-
'Programming Language :: Python :: 3.7',
41-
'Programming Language :: Python :: 3.8',
42-
'Topic :: Software Development :: Testing',
43-
'Topic :: System :: Systems Administration',
44-
'Framework :: Pytest',
45-
],
46-
packages=setuptools.find_packages(),
47-
entry_points={
48-
'pytest11': {
49-
'pytest11.testinfra=testinfra.plugin',
50-
},
51-
},
52-
python_requires='>=3.4',
53-
setup_requires=['setuptools_scm'],
54-
use_scm_version=True,
55-
install_requires=[
56-
'pytest!=3.0.2',
57-
],
58-
)
17+
if __name__ == '__main__':
18+
setuptools.setup(use_scm_version=True, setup_requires=["setuptools_scm"])

0 commit comments

Comments
 (0)