Skip to content

Commit 2bb4fee

Browse files
committed
migrate to pyproject.toml
1 parent 62480c0 commit 2bb4fee

File tree

4 files changed

+33
-49
lines changed

4 files changed

+33
-49
lines changed

.github/workflows/pypi-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install setuptools wheel twine
23+
pip install setuptools build twine
2424
- name: Build and publish
2525
env:
2626
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2727
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2828
run: |
2929
echo Running in $PWD
30-
python setup.py ${{ github.ref }} sdist bdist_wheel
30+
python -m build
3131
twine upload dist/*

pyproject.toml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "autoparaselenium"
7+
authors = [
8+
{name = "Ronak Badhe", email = "[email protected]"},
9+
]
10+
description = "A library to make parallel selenium tests that automatically download and setup webdrivers"
11+
readme = "README.md"
12+
requires-python = ">=3.8"
13+
keywords = ["selenium", "automatic", "parallel", "testing"]
14+
license = {file = "LICENSE"}
15+
classifiers=[
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
]
20+
dependencies = [
21+
"pytest>=6.2.4",
22+
"pytest-parallel-39==0.1.0",
23+
"requests>=2.24.0",
24+
"selenium>=4.1.0"
25+
]
26+
dynamic = ["version"]
27+
28+
[tool.setuptools]
29+
packages = [ "autoparaselenium" ]
30+
31+
[tool.setuptools_scm]

requirements.txt

-4
This file was deleted.

setup.py

-43
This file was deleted.

0 commit comments

Comments
 (0)