Skip to content

Commit cf6f06b

Browse files
authored
Merge pull request #34 from masterqa/refactor-with-pyproject-toml
Refactor with pyproject.toml
2 parents 6039476 + dec73ae commit cf6f06b

3 files changed

Lines changed: 56 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[build-system]
2+
requires = ["setuptools>=70.2.0", "wheel>=0.44.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "masterqa"
7+
readme = "README.md"
8+
dynamic = [
9+
"version",
10+
"license",
11+
"authors",
12+
"scripts",
13+
"description",
14+
"maintainers",
15+
"entry-points",
16+
"dependencies",
17+
"requires-python",
18+
]
19+
20+
[project.urls]
21+
"Homepage" = "https://github.com/masterqa/MasterQA"
22+
"Download" = "https://pypi.org/project/masterqa/#files"
23+
"PyPI" = "https://pypi.org/project/masterqa/"
24+
"Source" = "https://github.com/masterqa/MasterQA"
25+
"Repository" = "https://github.com/masterqa/MasterQA"
26+
27+
[tool.setuptools]
28+
packages = [
29+
"masterqa",
30+
]
31+
32+
[tool.pytest.ini_options]
33+
addopts = ["--capture=tee-sys", "-p no:cacheprovider"]
34+
norecursedirs = [".*", "build", "dist", "recordings", "temp", "assets"]
35+
filterwarnings = [
36+
"ignore::pytest.PytestWarning",
37+
"ignore:.*U.*mode is deprecated:DeprecationWarning",
38+
]
39+
junit_family = ["legacy"]
40+
python_files = ["test_*.py", "*_test.py", "*_tests.py", "*_suite.py"]
41+
python_classes = ["Test*", "*Test*", "*Test", "*Tests", "*Suite"]
42+
python_functions = ["test_*"]
43+
markers = [
44+
"marker1", "marker2", "marker3", "marker_test_suite",
45+
"local", "remote", "offline", "expected_failure",
46+
"qa", "ci", "e2e", "smoke", "ready", "master", "deploy",
47+
"develop", "staging", "production", "release", "active",
48+
]

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
seleniumbase>=4.33.11
2-
pdbp>=1.6.1
1+
seleniumbase>=4.39.4
2+
pdbp>=1.7.0
33
tabcompleter>=1.4.0
4-
sbvirtualdisplay>=1.3.0
5-
-e .
4+
sbvirtualdisplay>=1.4.0

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
print("\nERROR! Publishing to PyPI requires Python>=3.9")
3333
sys.exit()
3434
print("\n*** Checking code health with flake8:\n")
35-
os.system("python -m pip install 'flake8==7.1.1'")
35+
os.system("python -m pip install 'flake8==7.2.0'")
3636
flake8_status = os.system("flake8 --exclude=recordings,temp")
3737
if flake8_status != 0:
3838
print("\nERROR! Fix flake8 issues before publishing to PyPI!\n")
@@ -52,10 +52,6 @@
5252
os.system("python -m pip install --upgrade 'jaraco.classes'")
5353
print("\n*** Installing more-itertools: *** (For PyPI uploads)\n")
5454
os.system("python -m pip install --upgrade 'more-itertools'")
55-
print("\n*** Installing zipp: *** (Required for PyPI uploads)\n")
56-
os.system("python -m pip install --upgrade 'zipp'")
57-
print("\n*** Installing importlib-metadata: *** (For PyPI uploads)\n")
58-
os.system("python -m pip install --upgrade 'importlib-metadata'")
5955
print("\n*** Installing keyring, requests-toolbelt: *** (For PyPI)\n")
6056
os.system("python -m pip install --upgrade keyring requests-toolbelt")
6157
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
@@ -71,7 +67,7 @@
7167

7268
setup(
7369
name="masterqa",
74-
version="1.10.0",
70+
version="1.10.1",
7571
description="Automation-Assisted Manual Testing - https://masterqa.com",
7672
long_description=long_description,
7773
long_description_content_type="text/markdown",
@@ -83,10 +79,10 @@
8379
license="MIT",
8480
python_requires=">=3.8",
8581
install_requires=[
86-
"seleniumbase>=4.33.11",
87-
"pdbp>=1.6.1",
82+
"seleniumbase>=4.39.4",
83+
"pdbp>=1.7.0",
8884
"tabcompleter>=1.4.0",
89-
"sbvirtualdisplay>=1.3.0",
85+
"sbvirtualdisplay>=1.4.0",
9086
],
9187
packages=["masterqa"],
9288
entry_points={

0 commit comments

Comments
 (0)