Skip to content

Commit 587cd8e

Browse files
committed
build: introduce pyproject build system
1 parent a35435d commit 587cd8e

6 files changed

Lines changed: 31 additions & 28 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ install: Makefile
2222
pipenv run pre-commit install --hook-type pre-commit --hook-type pre-push
2323

2424
build: Makefile
25-
pipenv run python setup.py sdist
25+
uv build --sdist --wheel --out-dir dist
2626

2727
publish: Makefile
2828
twine upload dist/*

constructor_io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
'''Version File'''
2-
__version__ = "1.9.1"
2+
from constructor_io._version import __version__

constructor_io/_version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'''Version File'''
2+
__version__ = "1.9.1"

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "constructor-io"
7+
dynamic = ["version"]
8+
description = "Constructor.io Python Client"
9+
readme = {file = "README.md", content-type = "text/markdown"}
10+
license = "MIT"
11+
authors = [
12+
{name = "Constructor.io Corporation", email = "info@constructor.io"},
13+
]
14+
dependencies = [
15+
"requests~=2.26",
16+
]
17+
18+
[project.urls]
19+
Homepage = "https://www.constructor.io"
20+
21+
[tool.setuptools.packages.find]
22+
include = ["constructor_io", "constructor_io.*"]
23+
exclude = ["tests", "tests.*"]
24+
namespaces = false
25+
26+
[tool.setuptools.dynamic]
27+
version = {attr = "constructor_io._version.__version__"}

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[pytest]
22
addopts =
33
--doctest-modules
4-
--ignore setup.py
54
--cov-report=term
65
--cov-report=html:coverage/
76
--cov=constructor_io

setup.py

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

0 commit comments

Comments
 (0)