Skip to content

Commit 9ffaa5e

Browse files
authored
Merge pull request #69 from ccpem/development
Update to use setuptools
2 parents eee3da7 + 9d33298 commit 9ffaa5e

File tree

1 file changed

+47
-41
lines changed

1 file changed

+47
-41
lines changed

pyproject.toml

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,55 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
26
name = "empiarreader"
3-
version = "0.0.11"
7+
version = "0.0.12"
48
description = "EMPIARReader provides utilities to lazily load data from EMPIAR into a machine-learning-friendly dataset format or to locally download the files."
5-
authors = ["mooniean <bcostagomes@turing.ac.uk>", "ots22 <ostrickson@turing.ac.uk>"]
69
readme = "README.md"
10+
requires-python = ">=3.8"
11+
authors = [
12+
{ name = "mooniean", email = "bcostagomes@turing.ac.uk" },
13+
{ name = "ots22", email = "ostrickson@turing.ac.uk" },
14+
]
15+
dependencies = [
16+
"intake>=0.6.6",
17+
"bs4>=0.0.1",
18+
"matplotlib>=3.6.1",
19+
"requests>=2.28.1",
20+
"scikit-image>=0.19.3",
21+
"xarray>=2022.9.0",
22+
"mrcfile>=1.4.3",
23+
"starfile>=0.4.11",
24+
"intake-xarray>=0.6.1",
25+
"aiohttp>=3.8.3",
26+
"setuptools>=67.7.2",
27+
"pre-commit>=3.3.3",
28+
"numpy==1.23.3",
29+
"jinja2==3.1.0"
30+
]
31+
32+
[project.optional-dependencies]
33+
doc = [
34+
"Sphinx>=5.0.0",
35+
"pydata-sphinx-theme>=0.7"
36+
]
37+
dev = [
38+
"pytest>=6.2.5"
39+
]
40+
41+
[project.urls]
42+
Homepage = "https://github.com/ccpem/empiarreader"
43+
"Bug Tracker" = "https://github.com/ccpem/empiarreader"
44+
45+
[project.scripts]
46+
empiarreader = "empiarreader.cli:main"
747

8-
[tool.poetry.dependencies]
9-
python = "^3.8"
10-
intake = "^0.6.6"
11-
bs4 = "^0.0.1"
12-
matplotlib = "^3.6.1"
13-
requests = "^2.28.1"
14-
scikit-image = "^0.19.3"
15-
xarray = "^2022.9.0"
16-
mrcfile = "^1.4.3"
17-
starfile = "^0.4.11"
18-
intake-xarray = "^0.6.1"
19-
aiohttp = "^3.8.3"
20-
setuptools = "^67.7.2"
21-
pre-commit = "^3.3.3"
22-
numpy = "1.23.3"
23-
24-
# Dependencies for 'extras'
25-
Sphinx = { version = "^5.0.0", optional = true }
26-
pydata-sphinx-theme = { version = "^0.7", optional = true }
27-
28-
[tool.poetry.dev-dependencies]
29-
pytest = "^6.2.5"
30-
31-
[tool.poetry.extras]
32-
doc = ["Sphinx", "pydata-sphinx-theme"]
33-
34-
[build-system]
35-
requires = ["poetry-core @ git+https://github.com/python-poetry/poetry-core.git@main"]
36-
build-backend = "poetry.core.masonry.api"
48+
[tool.setuptools.packages.find]
49+
where = ["src"]
50+
include = ["empiarreader*"]
3751

38-
[tool.poetry.plugins."intake.drivers"]
52+
[project.entry-points."intake.drivers"]
3953
mrc = "empiarreader:MrcSource"
4054
star = "empiarreader:StarSource"
4155
empiar = "empiarreader:EmpiarCatalog"
42-
43-
[tool.poetry.scripts]
44-
empiarreader = "empiarreader.cli:main"
45-
46-
[tool.poetry.urls]
47-
"Homepage" = "https://github.com/alan-turing-institute/empiarreader"
48-
"Bug Tracker" = "https://github.com/alan-turing-institute/empiarreader/issues"
49-

0 commit comments

Comments
 (0)