Skip to content

Commit 91ad400

Browse files
author
laelhalawani
committed
refactor: simplify setup.py by removing unnecessary code and comments update pyproject.toml
1 parent e50f5a9 commit 91ad400

2 files changed

Lines changed: 15 additions & 63 deletions

File tree

pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[build-system]
2-
requires = ["setuptools>=64", "wheel"]
2+
requires = ["setuptools>=61", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "esp32_micropython"
7-
version = "0.2.0"
6+
name = "esp32-micropython"
7+
version = "0.2.0"
88
description = "All-in-one utility for flashing and managing MicroPython deployments on ESP32-C3 SuperMini boards."
9-
readme = "README.md"
10-
requires-python = ">=3.11,<3.12"
11-
license = {text = "MIT"}
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
requires-python = ">=3.11,<3.12"
11+
license = { text = "MIT" }
12+
license-files = ["LICENSE"]
1213
authors = [
13-
{name = "aistack.pl", email = "lael@aistack.pl"}
14+
{ name = "aistack.pl", email = "lael@aistack.pl" },
1415
]
1516
maintainers = [
16-
{name = "aistack.pl", email = "lael@aistack.pl"}
17+
{ name = "aistack.pl", email = "lael@aistack.pl" },
1718
]
1819
keywords = ["esp32", "esp32-c3", "micropython", "flash", "deploy", "mpremote", "esptool", "firmware"]
19-
2020
classifiers = [
2121
"Development Status :: 4 - Beta",
2222
"Intended Audience :: Developers",
@@ -30,7 +30,6 @@ classifiers = [
3030
"Operating System :: OS Independent",
3131
"Environment :: Console",
3232
]
33-
3433
dependencies = [
3534
"esptool>=4.8,<5.0",
3635
"mpremote>=1.25,<2.0",
@@ -42,6 +41,6 @@ esp32 = "dm:main"
4241

4342
[project.urls]
4443
Homepage = "https://laelhalawani.github.io/esp32_micropython/"
45-
Repository = "https://github.com/aistack-pl/esp32-micropython"
46-
Bug-Tracker = "https://github.com/aistack-pl/esp32-micropython/issues"
47-
44+
Repository = "https://github.com/aistack-pl/esp32-micropython"
45+
Bug Tracker = "https://github.com/aistack-pl/esp32-micropython/issues"
46+
Documentation = "https://github.com/aistack-pl/esp32-micropython#readme"

setup.py

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,4 @@
1-
from setuptools import setup, find_packages
2-
from pathlib import Path
1+
from setuptools import setup
32

4-
# Read the contents of your README file
5-
this_directory = Path(__file__).parent
6-
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
7-
8-
setup(
9-
name="esp32_micropython",
10-
version="0.2.0", # Updated version
11-
py_modules=["dm"],
12-
python_requires=">=3.11,<3.12",
13-
install_requires=[
14-
"esptool>=4.8,<5.0",
15-
"mpremote>=1.25,<2.0",
16-
"pyserial>=3.5,<4.0",
17-
],
18-
entry_points={
19-
"console_scripts": [
20-
"esp32=dm:main",
21-
],
22-
},
23-
author="aistack.pl",
24-
author_email="lael@aistack.pl",
25-
description="All-in-one utility for flashing and managing MicroPython deployments on ESP32-C3 SuperMini boards.",
26-
website="https://laelhalawani.github.io/esp32_micropython/",
27-
long_description=long_description,
28-
long_description_content_type="text/markdown",
29-
url="https://github.com/aistack-pl/esp32-micropython",
30-
license="MIT",
31-
classifiers=[
32-
"Development Status :: 4 - Beta",
33-
"Intended Audience :: Developers",
34-
"Topic :: Software Development :: Embedded Systems",
35-
"Topic :: System :: Hardware :: Hardware Drivers",
36-
"Topic :: Terminals :: Serial",
37-
"Topic :: Utilities",
38-
"License :: OSI Approved :: MIT License",
39-
"Programming Language :: Python :: 3",
40-
"Programming Language :: Python :: 3.11",
41-
"Operating System :: OS Independent",
42-
"Environment :: Console",
43-
],
44-
keywords="esp32 esp32-c3 micropython flash deploy mpremote esptool firmware",
45-
project_urls={
46-
"Bug Reports": "https://github.com/aistack-pl/esp32-micropython/issues",
47-
"Source": "https://github.com/aistack-pl/esp32-micropython/",
48-
"Homepage": "https://laelhalawani.github.io/esp32_micropython/",
49-
},
50-
include_package_data=True,
51-
)
3+
if __name__ == "__main__":
4+
setup()

0 commit comments

Comments
 (0)