|
| 1 | +## What system to build the project with? I.e. Setuptools, Wheel, Poetry, etc. |
| 2 | +## Using `setuptools` here. |
| 3 | + |
1 | 4 | [build-system]
|
2 |
| -requires = [ |
3 |
| - "setuptools>=60", |
4 |
| - "setuptools-scm>=8.0" |
5 |
| -] |
6 |
| -build-backend = "setuptools.build_meta" |
| 5 | + requires = [ |
| 6 | + "setuptools>=60", |
| 7 | + "setuptools-scm>=8.0" |
| 8 | + ] |
| 9 | + build-backend = "setuptools.build_meta" |
7 | 10 |
|
8 | 11 | [project]
|
9 |
| -name = "pyNexafs" |
10 |
| -# https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers |
11 |
| -# Use Major.Minor.Micro versioning. |
12 |
| -# version = "0.1.0" |
13 |
| -# https://pypi.org/project/setuptools-scm/ Generate a dynamic version based on .git information. |
14 |
| -dynamic = ["version"] |
15 |
| -dependencies = [ |
16 |
| - "scipy", |
17 |
| - "numpy", |
18 |
| - "pandas", |
19 |
| - "overrides", |
20 |
| - "xdrlib3" # for reading binary mda files |
21 |
| -] |
22 |
| -description = "A package for processing and analyzing NEXAFS data." |
23 |
| -license = {file = "LICENSE"} |
24 |
| -authors = [ |
25 |
| - { name = "Matthew Gebert", email= "[email protected]"}, |
26 |
| - ] |
27 |
| -maintainers = [ |
28 |
| - { name = "Matthew Gebert", email= "[email protected]"}, |
29 |
| -] |
30 |
| -readme = "README.md" |
31 |
| -keywords = ["NEXAFS", "XAS", "synchrotron"] |
32 |
| - |
33 |
| -[tool.setuptools.packages.find] # All the following settings are optional: |
34 |
| -where = ["."] # Root directory |
35 |
| -include = ["pyNexafs*"] |
36 |
| -exclude = [] |
| 12 | + # Project information |
| 13 | + name = "pyNexafs" |
| 14 | + version = "0.1.0" |
| 15 | + description = "A package for processing and analysing NEXAFS data." |
| 16 | + readme = "README.md" |
| 17 | + license = {file = "LICENSE"} |
| 18 | + keywords = ["NEXAFS", "XANES", "Near", "Edge", "X-ray", "Absorption", "Fine", "Structure", "Spectroscopy", "Optical Data", "XAS", "Synchrotron"] |
| 19 | + authors = [ |
| 20 | + { name = "Matthew Gebert", email= "[email protected]"}, |
| 21 | + ] |
| 22 | + maintainers = [ |
| 23 | + { name = "Matthew Gebert", email= "[email protected]"}, |
| 24 | + ] |
| 25 | + |
| 26 | + # Project compatibility: |
| 27 | + requires-python = ">=3.10" |
| 28 | + dependencies = [ |
| 29 | + "numpy", |
| 30 | + "overrides", # for type hinting |
| 31 | + "scipy", |
| 32 | + "xdrlib3" # function bindings for reading binary data from mda files |
| 33 | + ] |
| 34 | + |
| 35 | +[project.urls] |
| 36 | + # Website, documentation and other continuous integration URLS. |
| 37 | + code = "https://github.com/mattgebert/pyNexafs" |
| 38 | + documentation = "https://pyNexafs.readthedocs.io/en/latest/" |
| 39 | + |
| 40 | +[project.optional-dependencies] |
| 41 | + gui = [ |
| 42 | + "matplotlib", |
| 43 | + "pandas", |
| 44 | + "pyqt6", |
| 45 | + "pyyaml", |
| 46 | + ] |
| 47 | + dev = [ |
| 48 | + "commitizen", |
| 49 | + "numpydoc", |
| 50 | + "pre-commit", |
| 51 | + "pytest", |
| 52 | + "python-semantic-release", |
| 53 | + "sphinx", |
| 54 | + "sphinx-rtd-theme", |
| 55 | + ] |
| 56 | + docs = [ |
| 57 | + "sphinx", |
| 58 | + "sphinx-rtd-theme", |
| 59 | + "numpydoc", |
| 60 | + ] |
| 61 | + |
| 62 | +# [tool.setuptools.packages.find] # All the following settings are optional: |
| 63 | +# where = ["."] # Root directory |
| 64 | +# include = ["pyNexafs*"] |
| 65 | +# exclude = [] |
37 | 66 |
|
38 | 67 | [tool.numpydoc_validation]
|
39 |
| -checks = [ |
40 |
| - "all", # report on all checks, except the below |
41 |
| - "EX01", |
42 |
| - "SA01", |
43 |
| - "ES01", |
44 |
| -] |
45 |
| - |
46 |
| -# namespaces = true # true by default |
47 |
| - |
48 |
| -### Example dependency usage |
49 |
| -# example <= 0.4 |
50 |
| -# allowed operators <, >, <=, >=, == or !=, |
51 |
| - |
52 |
| -### Example inlcude |
53 |
| -# ["*"] by default |
54 |
| - |
55 |
| -### Example exclude |
56 |
| -# [] by default |
57 |
| -# "pyNexafs.tests*", |
58 |
| -# "pyNexafs.test_data*, |
| 68 | + checks = [ |
| 69 | + "all", # report on all checks, except the below |
| 70 | + "EX01", |
| 71 | + "SA01", |
| 72 | + "ES01", |
| 73 | + ] |
| 74 | + |
| 75 | + exclude = [ |
| 76 | + 'tests*', |
| 77 | + ] |
0 commit comments