mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-22 07:36:25 -06:00
setup.py - don't distribute tests
Found them installed in my `site-packages`, importable as `import tests` 😱
Tested with:
```
In [2]: find_packages()
Out[2]: ['tests', 'yamllint', 'tests.rules', 'yamllint.rules']
In [3]: find_packages(exclude=['tests', 'tests.*'])
Out[3]: ['yamllint', 'yamllint.rules']
```
This commit is contained in:
parent
6dae8f5b6e
commit
e948509fe5
2
setup.py
2
setup.py
@ -42,7 +42,7 @@ setup(
|
|||||||
'Topic :: Software Development :: Testing',
|
'Topic :: Software Development :: Testing',
|
||||||
],
|
],
|
||||||
|
|
||||||
packages=find_packages(),
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
||||||
entry_points={'console_scripts': ['yamllint=yamllint.cli:run']},
|
entry_points={'console_scripts': ['yamllint=yamllint.cli:run']},
|
||||||
package_data={'yamllint': ['conf/*.yaml'],
|
package_data={'yamllint': ['conf/*.yaml'],
|
||||||
'tests': ['yaml-1.2-spec-examples/*']},
|
'tests': ['yaml-1.2-spec-examples/*']},
|
||||||
|
Loading…
Reference in New Issue
Block a user