Skip to content

Commit 8d4ef82

Browse files
committed
Migrate from setup.py to pyproject.toml.
1 parent bcf4dd7 commit 8d4ef82

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ISC License
22

3-
Copyright (C) 2020 whitequark <[email protected]>
3+
Copyright (C) 2020-2023 whitequark <[email protected]>
44

55
Permission to use, copy, modify, and/or distribute this software for any
66
purpose with or without fee is hereby granted, provided that the above

pyproject.toml

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
[build-system]
2-
requires = ["wheel", "setuptools", "setuptools_scm"]
2+
requires = ["setuptools~=67.0", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
dynamic = ["version"]
7+
8+
name = "amaranth-yosys"
9+
description = "Specialized WebAssembly build of Yosys used by Amaranth HDL"
10+
readme = "README.rst"
11+
license = {text = "ISC"}
12+
authors = [{name = "whitequark", email = "[email protected]"}]
13+
classifiers = [
14+
"License :: OSI Approved :: ISC License (ISCL)",
15+
]
16+
17+
requires-python = "~=3.5"
18+
dependencies = [
19+
"importlib_resources>=1.4; python_version<'3.9'",
20+
"wasmtime>=0.30,<2.0"
21+
]
22+
23+
[project.urls]
24+
"Source Code" = "https://github.com/amaranth-lang/amaranth-yosys"
25+
"Bug Tracker" = "https://github.com/amaranth-lang/amaranth-yosys/issues"
26+
27+
[tool.setuptools]
28+
packages = ["amaranth_yosys"]
29+
30+
[tool.setuptools.package-data]
31+
amaranth_yosys = ["yosys.wasm", "share/**/**/**/*"]

setup.py

-25
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,6 @@ def version():
2020
return yosys_version + package_version
2121

2222

23-
def long_description():
24-
with open("README.rst") as f:
25-
return f.read()
26-
27-
2823
setup(
29-
name="amaranth-yosys",
3024
version=version(),
31-
author="whitequark",
32-
author_email="[email protected]",
33-
description="Specialized WebAssembly build of Yosys used by Amaranth HDL",
34-
long_description=long_description(),
35-
license="ISC", # same as Yosys
36-
python_requires="~=3.5",
37-
install_requires=[
38-
"importlib_resources>=1.4; python_version<'3.9'",
39-
"wasmtime>=0.30,<2.0"
40-
],
41-
packages=["amaranth_yosys"],
42-
package_data={"amaranth_yosys": ["yosys.wasm", "share/**/**/**/*"]},
43-
project_urls={
44-
"Source Code": "https://github.com/amaranth-lang/amaranth-yosys",
45-
"Bug Tracker": "https://github.com/amaranth-lang/amaranth-yosys/issues",
46-
},
47-
classifiers=[
48-
"License :: OSI Approved :: ISC License (ISCL)",
49-
],
5025
)

0 commit comments

Comments
 (0)