Skip to content

Commit f3cdb58

Browse files
add pyproject.toml (#42)
* add pyproject.toml * [pre-commit.ci] auto fixes from pre-commit hooks * update classifiers pyproject.toml * Delete setup.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d237df0 commit f3cdb58

File tree

3 files changed

+55
-106
lines changed

3 files changed

+55
-106
lines changed

Diff for: diffpy/srmise/modelparts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def fit(
172172
y,
173173
r,
174174
(y - self.value(r, range=range)) - 1.1 * (max(y) - min(y)),
175-
*[i for sublist in [[r, p.value(r, range=range)] for p in self] for i in sublist]
175+
*[i for sublist in [[r, p.value(r, range=range)] for p in self] for i in sublist],
176176
)
177177
plt.draw()
178178

Diff for: pyproject.toml

+54
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
[build-system]
2+
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "diffpy.srmise"
7+
dynamic=['version']
8+
authors = [
9+
{ name="Simon J.L. Billinge group", email="[email protected]" },
10+
]
11+
maintainers = [
12+
{ name="Simon J.L. Billinge group", email="[email protected]" },
13+
]
14+
description = "Peak extraction and peak fitting tool for atomic pair distribution functions."
15+
keywords = ['peak extraction fitting PDF AIC multimodeling']
16+
readme = "README.rst"
17+
requires-python = ">=3.10"
18+
classifiers = [
19+
'Development Status :: 3 - Alpha',
20+
'Environment :: Console',
21+
'Intended Audience :: Developers',
22+
'Intended Audience :: Science/Research',
23+
'Intended Audience :: Education',
24+
'License :: OSI Approved :: BSD License',
25+
'Operating System :: MacOS :: MacOS X',
26+
'Operating System :: Microsoft :: Windows',
27+
'Operating System :: POSIX',
28+
'Operating System :: Unix',
29+
'Programming Language :: Python :: 3.10',
30+
'Programming Language :: Python :: 3.11',
31+
'Programming Language :: Python :: 3.12',
32+
'Topic :: Scientific/Engineering :: Physics',
33+
'Topic :: Scientific/Engineering :: Chemistry',
34+
'Topic :: Software Development :: Libraries',
35+
]
36+
37+
[project.urls]
38+
Homepage = "https://github.com/diffpy/diffpy.srmise/"
39+
Issues = "https://github.com/diffpy/diffpy.srmise/issues/"
40+
41+
[tool.setuptools-git-versioning]
42+
enabled = true
43+
template = "{tag}"
44+
dev_template = "{tag}"
45+
dirty_template = "{tag}"
46+
47+
[tool.setuptools.packages.find]
48+
where = ["src"] # list of folders that contain the packages (["."] by default)
49+
include = ["*"] # package names should match these glob patterns (["*"] by default)
50+
exclude = ["diffpy.srmise.tests*"] # exclude packages matching these glob patterns (empty by default)
51+
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
52+
153
[tool.black]
254
line-length = 115
355
include = '\.pyi?$'
@@ -8,6 +60,8 @@ exclude = '''
860
| \.mypy_cache
961
| \.tox
1062
| \.venv
63+
| \.rst
64+
| \.txt
1165
| _build
1266
| buck-out
1367
| build

Diff for: setup.py

-105
This file was deleted.

0 commit comments

Comments
 (0)