Skip to content

Commit e88e9e2

Browse files
authored
update build system (#44)
* update build system * pip list on build just incase theres a wrong version pulled * workflow broken on 3.13 --------- Signed-off-by: Max Chesterfield <max.chesterfield@zepben.com>
1 parent c63fbed commit e88e9e2

File tree

3 files changed

+67
-35
lines changed

3 files changed

+67
-35
lines changed

pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2025 Zeppelin Bend Pty Ltd
2+
#
3+
# This Source Code Form is subject to the terms of the Mozilla Public
4+
# License, v. 2.0. If a copy of the MPL was not distributed with this
5+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
6+
7+
[build-system]
8+
requires = [
9+
"setuptools",
10+
"wheel",
11+
"build>=1.2.0"
12+
]
13+
build-backend = "setuptools.build_meta"
14+
15+
[project]
16+
name = "zepben.eas"
17+
version = "0.23.0b1"
18+
description = "Python SDK for interacting with the Evolve App Server"
19+
readme = {file = "README.md", content-type = "test/markdown"}
20+
license = "MPL-2.0"
21+
requires-python = '>=3.10'
22+
authors = [
23+
{name = "Ramon Bouckaert", email = "ramon.bouckaert@zepben.com"},
24+
{name = "Max Chesterfield", email = "max.chesterfield@zepben.com"}
25+
]
26+
dependencies = [
27+
"geojson==2.5.0",
28+
"requests<3.0.0,>=2.26.0",
29+
"urllib3==1.26.6",
30+
"zepben.auth==0.12.1",
31+
"aiohttp[speedups]==3.9.0",
32+
]
33+
classifiers = [
34+
"Programming Language :: Python :: 3",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
39+
"Operating System :: OS Independent"
40+
]
41+
42+
[project.urls]
43+
Repository = "https://github.com/zepben/eas-python-client"
44+
Homepage = "https://zepben.com"
45+
46+
[project.optional-dependencies]
47+
test = [
48+
"pytest",
49+
"pytest-cov",
50+
"pytest-httpserver==1.0.8",
51+
"trustme==0.9.0"
52+
]
53+
54+
[tool.setuptools.packages.find]
55+
where = ["src/"]

setup.py

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,6 @@
44
# License, v. 2.0. If a copy of the MPL was not distributed with this
55
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
66

7-
from setuptools import setup, find_namespace_packages
7+
import setuptools
88

9-
with open("README.md", "r") as fh:
10-
long_description = fh.read()
11-
12-
test_deps = ["pytest", "pytest-cov", "pytest-httpserver==1.0.8", "trustme==0.9.0"]
13-
setup(
14-
name="zepben.eas",
15-
version="0.23.0b1",
16-
description="Python SDK for interacting with the Evolve App Server",
17-
long_description=long_description,
18-
long_description_content_type="text/markdown",
19-
url="https://github.com/zepben/eas-python-client",
20-
author="Ramon Bouckaert",
21-
author_email="ramon.bouckaert@zepben.com",
22-
package_dir={"": "src"},
23-
python_requires='>=3.9',
24-
packages=find_namespace_packages(where="src"),
25-
install_requires=[
26-
"geojson==2.5.0",
27-
"requests<3.0.0,>=2.26.0",
28-
"urllib3==1.26.6",
29-
"zepben.auth==0.12.1",
30-
"aiohttp[speedups]==3.9.0",
31-
],
32-
extras_require={
33-
"test": test_deps,
34-
}
35-
)
9+
setuptools.setup()

tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
[tox]
2-
envlist = py39
2+
envlist =
3+
py{3.10, 3.11, 3.12}
4+
build
35

46
[testenv]
5-
allowlist_externals = /bin/bash
6-
/usr/bin/bash
77
passenv = GITHUB_*
88
pip_pre = true
9-
deps =
10-
.[test]
9+
extras = test
10+
depends = build: py{3.10, 3.11, 3.12}
11+
commands = pytest --cov=zepben.eas --cov-report=xml --cov-branch
12+
13+
[testenv:build]
1114
commands =
1215
pip list
13-
pytest --cov=zepben.eas --cov-report=xml --cov-branch
14-
python setup.py bdist_wheel
16+
python -m pip install build
17+
python -m build
1518

1619
[pytest]
1720
log_file_level = DEBUG

0 commit comments

Comments
 (0)