Skip to content

Commit

Permalink
Release a new python3-only version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Feb 3, 2020
1 parent ee93136 commit 3ced6b9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test:
tox

build:
rm -f dist/* && python setup.py sdist bdist_wheel
rm -f dist/* && python3 setup.py sdist bdist_wheel

release: build
twine upload dist/*
Expand Down
2 changes: 1 addition & 1 deletion locust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .exception import InterruptTaskSet, ResponseError, RescheduleTaskImmediately
from .wait_time import between, constant, constant_pacing

__version__ = "0.14.2"
__version__ = "0.14.3"
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[bdist_wheel]
universal = 1

[metadata]
license_file = LICENSE
29 changes: 1 addition & 28 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import sys

from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
from setuptools.command.egg_info import egg_info

# parse version from locust/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
Expand All @@ -16,24 +13,6 @@
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))

class PostDevelopCommand(develop):
def run(self):
if sys.version_info[0] < 3 or sys.version_info[1] < 6:
sys.exit("Your Python version is no longer supported by Locust. Please upgrade Python to at least 3.6, or use a pinned old locust version (pip/pip3 install locustio==0.13.5)")
develop.run(self)

class PostInstallCommand(install):
def run(self):
if sys.version_info[0] < 3 or sys.version_info[1] < 6:
sys.exit("Your Python version is no longer supported by Locust. Please upgrade Python to at least 3.6, or use a pinned old locust version (pip/pip3 install locustio==0.13.5)")
install.run(self)

class PostEggInfoCommand(egg_info):
def run(self):
if sys.version_info[0] < 3 or sys.version_info[1] < 6:
sys.exit("Your Python version is no longer supported by Locust. Please upgrade Python to at least 3.6, or use a pinned old locust version (pip/pip3 install locustio==0.13.5)")
egg_info.run(self)

setup(
name='locustio',
version=version,
Expand All @@ -45,8 +24,6 @@ def run(self):
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
Expand All @@ -63,6 +40,7 @@ def run(self):
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=False,
python_requires=">=3.6",
install_requires=[
"gevent==1.5a2",
"flask>=0.10.1",
Expand All @@ -81,9 +59,4 @@ def run(self):
'locust = locust.main:main',
]
},
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
'egg_info': PostEggInfoCommand,
},
)

0 comments on commit 3ced6b9

Please sign in to comment.