Skip to content

Commit 8158bd2

Browse files
committed
migrate to hatch
1 parent 039a158 commit 8158bd2

File tree

5 files changed

+125
-38
lines changed

5 files changed

+125
-38
lines changed

pyproject.toml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,39 @@
11
[build-system]
2-
requires = ["setuptools"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "wannier90io"
7+
version = "0.1.0"
8+
description = "A Python library for Wannier90 I/O"
9+
readme = "README.md"
10+
requires-python = ">=3.7"
11+
license = { file = "LICENSE" }
12+
authors = [
13+
{ "name" = "Jamal I. Mustafa" },
14+
]
15+
classifiers = [
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python :: 3",
18+
]
19+
dependencies = [
20+
"numpy",
21+
]
22+
23+
[project.urls]
24+
repository = "https://github.com/jimustafa/wannier90-pylib-io"
25+
26+
[tool.hatch]
27+
build.exclude = [
28+
".github",
29+
".gitignore",
30+
"docs",
31+
"mkdocs.yml",
32+
"tests/fixtures/wannier90-*",
33+
]
34+
35+
[project.scripts]
36+
w90io = "wannier90io.__main__:main"
437

538
[tool.autopep8]
639
select = ["E231"]

requirements/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ install: setup.txt dev-requirements.txt
66
pip-sync $^
77
pip install -e ../
88

9-
setup.txt: ../setup.cfg
9+
setup.txt: ../pyproject.toml
1010
pip-compile $< --output-file $@
1111

1212
dev-requirements.txt: dev-requirements.in setup.txt

requirements/dev-requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
hatch
12
mkdocs-material
23
mkdocstrings[python]
34
pip-tools

requirements/dev-requirements.txt

Lines changed: 88 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# pip-compile dev-requirements.in
66
#
7+
anyio==3.6.1
8+
# via httpcore
79
astunparse==1.6.3
810
# via pytkdocs
911
attrs==21.4.0
@@ -12,27 +14,60 @@ cached-property==1.5.2
1214
# via
1315
# griffe
1416
# pytkdocs
17+
certifi==2022.5.18.1
18+
# via
19+
# httpcore
20+
# httpx
21+
cffi==1.15.1
22+
# via cryptography
1523
cfgv==3.3.1
1624
# via pre-commit
1725
click==8.0.3
1826
# via
27+
# hatch
1928
# mkdocs
2029
# pip-tools
30+
# userpath
31+
commonmark==0.9.1
32+
# via rich
2133
coverage[toml]==6.4.1
2234
# via pytest-cov
23-
distlib==0.3.4
35+
cryptography==37.0.4
36+
# via secretstorage
37+
distlib==0.3.5
2438
# via virtualenv
39+
editables==0.3
40+
# via hatchling
2541
filelock==3.5.1
2642
# via virtualenv
2743
ghp-import==2.1.0
2844
# via mkdocs
2945
griffe==0.19.2
3046
# via mkdocstrings-python
47+
h11==0.12.0
48+
# via httpcore
49+
hatch==1.4.2
50+
# via -r dev-requirements.in
51+
hatchling==1.8.0
52+
# via hatch
53+
httpcore==0.15.0
54+
# via httpx
55+
httpx==0.23.0
56+
# via hatch
57+
hyperlink==21.0.0
58+
# via hatch
3159
identify==2.4.10
3260
# via pre-commit
61+
idna==3.3
62+
# via
63+
# anyio
64+
# hyperlink
65+
# rfc3986
3366
importlib-metadata==4.11.1
3467
# via
3568
# click
69+
# hatchling
70+
# keyring
3671
# markdown
3772
# mkdocs
3873
# pep517
@@ -42,11 +77,17 @@ importlib-metadata==4.11.1
4277
# virtualenv
4378
iniconfig==1.1.1
4479
# via pytest
80+
jeepney==0.8.0
81+
# via
82+
# keyring
83+
# secretstorage
4584
jinja2==3.1.2
4685
# via
4786
# mkdocs
4887
# mkdocs-material
4988
# mkdocstrings
89+
keyring==23.8.2
90+
# via hatch
5091
markdown==3.3.7
5192
# via
5293
# mkdocs
@@ -84,30 +125,47 @@ nodeenv==1.6.0
84125
# via pre-commit
85126
packaging==21.3
86127
# via
128+
# hatchling
87129
# mkdocs
88130
# pytest
131+
pathspec==0.9.0
132+
# via hatchling
89133
pep517==0.12.0
90134
# via pip-tools
135+
pexpect==4.8.0
136+
# via hatch
91137
pip-tools==6.5.1
92138
# via -r dev-requirements.in
93139
platformdirs==2.5.0
94-
# via virtualenv
140+
# via
141+
# hatch
142+
# virtualenv
95143
pluggy==1.0.0
96-
# via pytest
144+
# via
145+
# hatchling
146+
# pytest
97147
pre-commit==2.17.0
98148
# via -r dev-requirements.in
149+
ptyprocess==0.7.0
150+
# via pexpect
99151
py==1.11.0
100152
# via pytest
153+
pycparser==2.21
154+
# via cffi
101155
pydantic==1.9.1
102156
# via -r dev-requirements.in
103157
pygments==2.12.0
104-
# via mkdocs-material
158+
# via
159+
# mkdocs-material
160+
# rich
105161
pymdown-extensions==9.4
106162
# via
107163
# mkdocs-material
108164
# mkdocstrings
109165
pyparsing==3.0.7
110166
# via packaging
167+
pyperclip==1.8.2
168+
# via hatch
111169
pytest==7.0.1
112170
# via
113171
# -r dev-requirements.in
@@ -128,25 +186,48 @@ pyyaml==6.0
128186
# pyyaml-env-tag
129187
pyyaml-env-tag==0.1
130188
# via mkdocs
189+
rfc3986[idna2008]==1.5.0
190+
# via httpx
191+
rich==12.5.1
192+
# via hatch
193+
secretstorage==3.3.3
194+
# via keyring
195+
shellingham==1.5.0
196+
# via hatch
131197
six==1.16.0
132198
# via
133199
# astunparse
134200
# python-dateutil
135-
# virtualenv
201+
sniffio==1.2.0
202+
# via
203+
# anyio
204+
# httpcore
205+
# httpx
136206
toml==0.10.2
137207
# via pre-commit
138208
tomli==2.0.1
139209
# via
140210
# coverage
211+
# hatchling
141212
# pep517
142213
# pytest
214+
tomli-w==1.0.0
215+
# via hatch
216+
tomlkit==0.11.4
217+
# via hatch
143218
typing-extensions==4.1.1
144219
# via
220+
# anyio
145221
# importlib-metadata
146222
# pydantic
147223
# pytkdocs
148-
virtualenv==20.13.1
149-
# via pre-commit
224+
# rich
225+
userpath==1.8.0
226+
# via hatch
227+
virtualenv==20.16.3
228+
# via
229+
# hatch
230+
# pre-commit
150231
watchdog==2.1.8
151232
# via mkdocs
152233
wheel==0.37.1

setup.cfg

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

0 commit comments

Comments
 (0)