Skip to content

Commit cebf3d5

Browse files
authored
Merge pull request #314 from jadolg/replace-setup-with-pyproject
Switch from using setup.py to just pyproject.toml
2 parents b20170a + 06f5e6a commit cebf3d5

File tree

5 files changed

+47
-33
lines changed

5 files changed

+47
-33
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/[email protected]
18-
- name: Set up Python 3.12
18+
- name: Set up Python 3.13
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.12'
21+
python-version: '3.13'
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install setuptools wheel
25+
pip install build
2626
- name: Build
2727
run: |
28-
python setup.py sdist bdist_wheel
29-
28+
python3 -m build
3029
- name: Publish package distributions to PyPI
3130
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"setuptools_scm",
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "rocketchat_API"
10+
dynamic = ["version"]
11+
description = "Python API wrapper for Rocket.Chat"
12+
13+
dependencies = [
14+
"requests",
15+
"packaging"
16+
]
17+
18+
keywords = [
19+
"rocketchat",
20+
"api",
21+
"wrapper",
22+
"rest",
23+
]
24+
25+
authors = [
26+
{ name = "Jorge Alberto Díaz Orozco (Akiel)", email = "[email protected]" },
27+
]
28+
29+
maintainers = [
30+
{ name = "Jorge Alberto Díaz Orozco (Akiel)", email = "[email protected]" },
31+
]
32+
33+
readme = "README.md"
34+
license = "MIT"
35+
36+
[project.urls]
37+
Homepage = "https://github.com/jadolg/rocketchat_API"
38+
Issues = "https://github.com/jadolg/rocketchat_API/issues"
39+
40+
[tool.setuptools_scm]
41+
42+
[tool.setuptools]
43+
include-package-data = false

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)