Skip to content

Commit b6b6b29

Browse files
committed
pyproject.toml, MANIFEST
1 parent 85530cc commit b6b6b29

File tree

2 files changed

+84
-14
lines changed

2 files changed

+84
-14
lines changed

Diff for: MANIFEST.in

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
recursive-include src *
2-
include AUTHORS.txt LICENSE*.txt README.rst
3-
recursive-exclude src *.pyc
4-
global-exclude .gitattributes .gitignore .gitarchive.cfg
5-
global-exclude .DS_Store
1+
include AUTHORS.rst
2+
include LICENSE
3+
include README.rst
4+
include requirements.txt
65

7-
# Avoid user content in setup.cfg to make distribution reproducible.
8-
exclude setup.cfg
6+
recursive-exclude * __pycache__
7+
recursive-exclude * *.py[co]
98

10-
# Exclude git-tracked files spuriously added by setuptools_scm
11-
exclude .codecov.yml
12-
exclude .coveragerc
13-
exclude .travis*
14-
prune conda-recipe
15-
prune devutils
16-
prune doc
9+
recursive-include docs *.rst conf.py Makefile make.bat
10+
11+
include diffpy.srfit/version.py
12+
13+
# If including data files in the package, add them like:
14+
# include path/to/data_file

Diff for: pyproject.toml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[build-system]
2+
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "diffpy.srfit"
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 = "SrFit - Structure refinement from diffraction data"
15+
keywords = ['diffpy', 'optimization', 'constraints', 'restraints', 'structure refinement', 'complex modeling']
16+
readme = "README.rst"
17+
requires-python = ">=3.10"
18+
classifiers = [
19+
'Development Status :: 5 - Production/Stable',
20+
'Environment :: Console',
21+
'Intended Audience :: Developers',
22+
'Intended Audience :: Science/Research',
23+
'License :: OSI Approved :: BSD License',
24+
'Operating System :: MacOS :: MacOS X',
25+
'Operating System :: Microsoft :: Windows',
26+
'Operating System :: POSIX',
27+
'Operating System :: Unix',
28+
'Programming Language :: Python :: 3.10',
29+
'Programming Language :: Python :: 3.11',
30+
'Programming Language :: Python :: 3.12',
31+
'Topic :: Scientific/Engineering :: Physics',
32+
'Topic :: Scientific/Engineering :: Chemistry',
33+
]
34+
35+
[project.urls]
36+
Homepage = "https://github.com/diffpy/diffpy.srfit/"
37+
Issues = "https://github.com/diffpy/diffpy.srfit/issues/"
38+
39+
[tool.setuptools-git-versioning]
40+
enabled = true
41+
template = "{tag}"
42+
dev_template = "{tag}"
43+
dirty_template = "{tag}"
44+
45+
[tool.setuptools.packages.find]
46+
where = ["src"] # list of folders that contain the packages (["."] by default)
47+
include = ["*"] # package names should match these glob patterns (["*"] by default)
48+
exclude = ["diffpy.srfit.tests*"] # exclude packages matching these glob patterns (empty by default)
49+
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
50+
51+
[tool.black]
52+
line-length = 115
53+
include = '\.pyi?$'
54+
exclude = '''
55+
/(
56+
\.git
57+
| \.hg
58+
| \.mypy_cache
59+
| \.tox
60+
| \.venv
61+
| \.rst
62+
| \.txt
63+
| _build
64+
| buck-out
65+
| build
66+
| dist
67+
68+
# The following are specific to Black, you probably don't want those.
69+
| blib2to3
70+
| tests/data
71+
)/
72+
'''

0 commit comments

Comments
 (0)