-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
69 lines (58 loc) · 2.13 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
from setuptools.command.install import install
def install_check(self, command):
if os.name == "nt":
sys.exit("Looks like you are on windows. Only MacOS and Linux are supported :(")
command.run(self)
class PostDevelopCommand(develop):
def run(self):
install_check(self, develop)
class PostInstallCommand(install):
def run(self):
install_check(self, install)
class PostEggInfoCommand(egg_info):
def run(self):
install_check(self, egg_info)
setup(
name="locust-swarm",
description="Load test + test data distribution & launching tool for Locust",
long_description="""https://github.com/SvenskaSpel/locust-swarm""",
classifiers=[
"Topic :: Software Development :: Testing :: Traffic Generation",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
],
python_requires=">=3.8, <4",
keywords="",
author="Lars Holmberg",
url="https://github.com/SvenskaSpel/locust-swarm",
license="Apache-2.0",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=["locust>=2.23.0"],
entry_points={
"console_scripts": ["swarm = locust_swarm.swarm:main"],
},
cmdclass={"egg_info": PostEggInfoCommand, "install": PostInstallCommand, "develop": PostDevelopCommand},
use_scm_version={
"write_to": "locust_swarm/_version.py",
"local_scheme": "no-local-version",
},
setup_requires=["setuptools_scm"],
)