Skip to content

Commit 23399e5

Browse files
authored
Merge pull request #136 from 2bndy5/pyproject.toml
build: migrate to pyproject.toml
2 parents a21bf0f + 50e14f5 commit 23399e5

File tree

3 files changed

+54
-24
lines changed

3 files changed

+54
-24
lines changed

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=77",
4+
"wheel",
5+
"setuptools-scm",
6+
]
7+
8+
[project]
9+
name = "circuitpython-build-tools"
10+
requires-python = ">=3.10"
11+
description = "CircuitPython library build tools"
12+
readme = "README.md"
13+
authors = [
14+
{name = "Scott Shawcroft", email = "scott@adafruit.com"}
15+
]
16+
keywords = [
17+
"circuitpython",
18+
]
19+
license = "MIT"
20+
classifiers = [
21+
# https://pypi.org/pypi?%3Aaction=list_classifiers
22+
"Development Status :: 5 - Production/Stable",
23+
"Intended Audience :: Developers",
24+
"Topic :: Software Development :: Libraries",
25+
"Programming Language :: Python :: 3",
26+
]
27+
dynamic = ["version", "dependencies"]
28+
29+
[project.scripts]
30+
circuitpython-build-bundles = "circuitpython_build_tools.scripts.build_bundles:build_bundles"
31+
circuitpython-mpy-cross = "circuitpython_build_tools.scripts.circuitpython_mpy_cross:main"
32+
33+
[project.urls]
34+
Homepage = "https://www.adafruit.com/"
35+
Source = "https://github.com/adafruit/circuitpython-build-tools"
36+
Tracker = "https://github.com/adafruit/circuitpython-build-tools/issues"
37+
38+
[tool.setuptools]
39+
zip-safe = false
40+
packages = [
41+
"circuitpython_build_tools",
42+
"circuitpython_build_tools.scripts",
43+
]
44+
45+
[tool.setuptools.dynamic]
46+
dependencies = {file = ["requirements.txt"]}
47+
48+
[tool.setuptools_scm]
49+
# It would be nice to include the commit hash in the version, but that
50+
# can't be done in a PEP 440-compatible way.
51+
version_scheme = "no-guess-dev"
52+
# Test PyPI does not support local versions.
53+
local_scheme = "no-local-version"
54+
fallback_version = "0.0.0"

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Click
22
requests
33
semver
4-
wheel
54
tomli; python_version < "3.11"
65
platformdirs

setup.py

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

0 commit comments

Comments
 (0)