Skip to content

Commit 25a2b95

Browse files
committed
Add pyproject.toml to build whl package and replace deprecated setup.py
Building wheel packages with setup-py is now deprecated. While setup.py is left in place for legacy instllation, any new installation should rely on the use of the toml file. To install: ``` sudo pip3 install hatchling build python3 -m build ``` The whl package should appear inside the folder `dist`. PS: The required dependency to `PyQT5` is added.
1 parent f7c4db1 commit 25a2b95

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

source/pyproject.toml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "EasyLEED"
7+
version = "2.5.2"
8+
dependencies = [
9+
"numpy",
10+
"matplotlib",
11+
"scipy",
12+
"pillow",
13+
"pathlib",
14+
"pandas",
15+
"scikit-image",
16+
"PyQt5"
17+
]
18+
19+
authors = [{ name="Andreas Mayer", email="[email protected]" },
20+
{name="Hanna Salopaasi"},
21+
{name= "Nicola Ferralis"},
22+
]
23+
24+
maintainers = [
25+
{name = "Andreas Mayer", email = "[email protected]"}
26+
]
27+
28+
description = "Automated extraction of intensity-energy spectra from low-energy electron diffraction patterns"
29+
30+
readme = "../README.md"
31+
32+
license = {text = "GNU General Public License v2 (GPLv2)"}
33+
34+
requires-python = ">=3.9"
35+
classifiers = [
36+
"Programming Language :: Python :: 3",
37+
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
38+
"Operating System :: OS Independent",
39+
"Development Status :: 5 - Production/Stable",
40+
"Programming Language :: Python",
41+
"Programming Language :: Python :: 3",
42+
"Programming Language :: Python :: 3.9",
43+
"Programming Language :: Python :: 3.10",
44+
"Programming Language :: Python :: 3.11",
45+
"Programming Language :: Python :: 3.12",
46+
"Intended Audience :: Science/Research",
47+
"Topic :: Scientific/Engineering :: Chemistry",
48+
"Topic :: Scientific/Engineering :: Physics",
49+
]
50+
51+
[project.optional-dependencies]
52+
skimage = ["scikit-image"]
53+
fits = ["pyfits"]
54+
55+
[project.gui-scripts]
56+
easyleed = "easyleed.__main__:main"
57+
58+
[project.urls]
59+
Homepage = "https://andim.github.io/easyleed/"
60+
Documentation = "https://qimmuno.com/easyleed/userdoc.html"
61+
Repository = "https://github.com/andim/easyleed.git"
62+
Issues = "https://andim.github.io/easyleed/issues"
63+
Changelog = "https://github.com/andim/easyleed/blob/master/changelog"

0 commit comments

Comments
 (0)