Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of deprecated 'setup.py test' #187

Merged
merged 1 commit into from Dec 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions setup.cfg
@@ -1,6 +1,3 @@
[aliases]
test=pytest

[bdist_wheel]
universal = 1

Expand Down
8 changes: 0 additions & 8 deletions setup.py
@@ -1,14 +1,8 @@
#!/usr/bin/env python

import sys

from setuptools import find_packages, setup


needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []


# Get version without importing, which avoids dependency issues
def get_version():
import re
Expand Down Expand Up @@ -54,7 +48,5 @@ def readme():
"Topic :: Text Processing :: Linguistic"],
packages=find_packages(),
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
setup_requires=pytest_runner,
tests_require=['pytest', 'hypothesis'],
entry_points={'console_scripts':
['chardetect = chardet.cli.chardetect:main']})