-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from Dinnerbone/py2-eol
Drop support for EOL Python versions
- Loading branch information
Showing
10 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ __pycache__/ | |
# Distribution / packaging | ||
.Python | ||
env/ | ||
venv/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
[ ! -d venv ] && ( | ||
python3 -m virtualenv venv | ||
source venv/bin/activate | ||
pip install -r test-requirements.txt | ||
pip check | ||
) | ||
source venv/bin/activate | ||
|
||
python -m nose | ||
|
||
rm -rf dist/ | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* | ||
|
||
# TODO: automate releases on tag builds of travis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
-r requirements/base.txt | ||
click==7.1.1 | ||
dnspython3==1.15.0 | ||
six==1.14.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,48 @@ | ||
from setuptools import setup | ||
import sys | ||
PY2 = sys.version_info[0] == 2 | ||
|
||
# TODO: read requirements from file | ||
install_requires = [ | ||
'six', 'Click' | ||
'click', 'dnspython3', 'six' | ||
] | ||
|
||
if PY2: | ||
install_requires.append('dnspython') | ||
else: | ||
install_requires.append('dnspython3') | ||
|
||
tests_require = [ | ||
'mock' | ||
'mock', 'nose' | ||
] | ||
|
||
setup( | ||
name='mcstatus', | ||
version='2.3.0', | ||
version='3.0.0', | ||
author='Nathan Adams', | ||
author_email='dinnerbone@dinnerbone.com', | ||
url='https://pypi.python.org/pypi/mcstatus', | ||
packages=['mcstatus', 'mcstatus.protocol', 'mcstatus.scripts'], | ||
description='A library to query Minecraft Servers for their status and capabilities.', | ||
long_description=open("README.md", "r").read(), | ||
long_description_content_type="text/markdown", | ||
install_requires=install_requires, | ||
tests_require=tests_require, | ||
python_requires=">=3.5", | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Topic :: Games/Entertainment', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: System :: Monitoring', | ||
], | ||
entry_points=''' | ||
[console_scripts] | ||
mcstatus=mcstatus.scripts.mcstatus:cli | ||
''', | ||
project_urls={ | ||
'Source': 'https://github.com/Dinnerbone/mcstatus', | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-r requirements.txt | ||
mock>=3.0.5 | ||
nose>=1.3.7 | ||
twine |