scatterkit 0.1__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {scatterkit-0.1 → scatterkit-0.1.1}/CHANGELOG.rst +6 -0
  2. {scatterkit-0.1 → scatterkit-0.1.1}/MANIFEST.in +1 -0
  3. {scatterkit-0.1/src/scatterkit.egg-info → scatterkit-0.1.1}/PKG-INFO +1 -1
  4. {scatterkit-0.1 → scatterkit-0.1.1}/pyproject.toml +6 -11
  5. {scatterkit-0.1 → scatterkit-0.1.1}/setup.py +11 -5
  6. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/__init__.py +3 -6
  7. scatterkit-0.1.1/src/scatterkit/_version.py +24 -0
  8. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/diporderstructurefactor.py +2 -1
  9. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/_cmath.c +458 -424
  10. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/util.py +26 -0
  11. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/rdfdiporder.py +2 -1
  12. {scatterkit-0.1 → scatterkit-0.1.1/src/scatterkit.egg-info}/PKG-INFO +1 -1
  13. scatterkit-0.1/src/scatterkit/_version.py +0 -21
  14. {scatterkit-0.1 → scatterkit-0.1.1}/AUTHORS.rst +0 -0
  15. {scatterkit-0.1 → scatterkit-0.1.1}/README.rst +0 -0
  16. {scatterkit-0.1 → scatterkit-0.1.1}/setup.cfg +0 -0
  17. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/__main__.py +0 -0
  18. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/_cmath.pyx +0 -0
  19. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/math.py +0 -0
  20. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/tables.py +0 -0
  21. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/lib/weights.py +0 -0
  22. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/saxs.py +0 -0
  23. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit/share/scatteringfactors.dat +0 -0
  24. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit.egg-info/SOURCES.txt +0 -0
  25. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit.egg-info/dependency_links.txt +0 -0
  26. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit.egg-info/entry_points.txt +0 -0
  27. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit.egg-info/requires.txt +0 -0
  28. {scatterkit-0.1 → scatterkit-0.1.1}/src/scatterkit.egg-info/top_level.txt +0 -0
@@ -9,6 +9,12 @@ CHANGELOG file
9
9
  - keep the format consistent (79 char width, Y/M/D date format) and do not
10
10
  use tabs but use spaces for formatting
11
11
 
12
+ v0.1.1 (2026/05/12)
13
+ -------------------
14
+ Henrik Stooß
15
+
16
+ - Removed versioneer and switched to setuptools_scm for version management (#16)
17
+ - Migrate the doc dict over from MAICoS (#15)
12
18
 
13
19
  v0.1 (2025/11/11)
14
20
  -----------------
@@ -7,6 +7,7 @@ prune docs
7
7
  prune examples
8
8
  prune tests
9
9
  prune developer
10
+ prune .github
10
11
 
11
12
  exclude .codecov.yml
12
13
  exclude .gitattributes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scatterkit
3
- Version: 0.1
3
+ Version: 0.1.1
4
4
  Summary: SAXS analysis of molecular dynamics simulations.
5
5
  Author: MAICoS Developer Team
6
6
  Maintainer: Philip Loche, Henrik Stooß, Alexander Schlaich
@@ -12,9 +12,8 @@ requires = [
12
12
  # disabling build isolation.
13
13
  "numpy>=2.0.0",
14
14
  # Set to minimum version of setuptools that allows pyproject.toml
15
- "setuptools>=77",
16
- "setuptools-git-versioning<2",
17
- "versioneer[toml]",
15
+ "setuptools>=80",
16
+ "setuptools_scm >= 8",
18
17
  "wheel",
19
18
  ]
20
19
  build-backend = "setuptools.build_meta"
@@ -72,7 +71,7 @@ scatterkit = "scatterkit.__main__:main"
72
71
 
73
72
  [tool.check-manifest]
74
73
  # ignore files missing in VCS
75
- ignore = ["src/scatterkit/lib/_cmath.c"]
74
+ ignore = ["src/scatterkit/lib/_cmath.c", "src/scatterkit/_version.py"]
76
75
 
77
76
  [tool.mypy]
78
77
  exclude = ["docs/src/examples"]
@@ -98,7 +97,7 @@ addopts = [
98
97
  ]
99
98
 
100
99
  [tool.ruff]
101
- exclude = ["versioneer.py", "docs/src/examples/**", "src/scatterkit/_version.py"]
100
+ exclude = ["docs/src/examples/**", "src/scatterkit/_version.py"]
102
101
  line-length = 88
103
102
 
104
103
  [tool.ruff.lint]
@@ -151,9 +150,5 @@ docstring-code-format = true
151
150
  [tool.setuptools.packages.find]
152
151
  where = ["src"]
153
152
 
154
- [tool.versioneer]
155
- VCS = "git"
156
- style = "pep440"
157
- versionfile_source = "src/scatterkit/_version.py"
158
- versionfile_build = "scatterkit/_version.py"
159
- tag_prefix = "v"
153
+ [tool.setuptools_scm]
154
+ version_file = "src/scatterkit/_version.py"
@@ -19,11 +19,8 @@ from distutils.sysconfig import customize_compiler
19
19
  from pathlib import Path
20
20
 
21
21
  import numpy as np
22
- import versioneer
23
22
  from setuptools import Extension, setup
24
23
 
25
- VERSION = versioneer.get_version()
26
-
27
24
 
28
25
  def hasfunction(cc, funcname, include=None, extra_postargs=None):
29
26
  """Check for function.
@@ -92,7 +89,16 @@ if __name__ == "__main__":
92
89
  mathlib = [] if os.name == "nt" else ["m"]
93
90
 
94
91
  has_openmp = detect_openmp()
95
- # If we are building a source distribution, the c code is already generated
92
+
93
+ # There are two cases to consider when running setup.py:
94
+ # 1. We are building from source, so we need cython to generate the .c files
95
+ # from the .pyx files.
96
+ # 2. we are building from a source distribution (sdist), in which case the
97
+ # .c files are included and we don't need Cython.
98
+ # If we are installing from a wheel, the binary is already built and the
99
+ # setup.py is not run at all.
100
+ # We can detect a sdist by checking for the presence of a setup.cfg file,
101
+ # which is generated by setuptools when building the sdist.
96
102
  use_cython = not Path("./setup.cfg").exists()
97
103
  source_suffix = ".pyx" if use_cython else ".c"
98
104
 
@@ -120,4 +126,4 @@ if __name__ == "__main__":
120
126
  if not (Path(source).exists() and os.access(source, os.R_OK)):
121
127
  raise OSError(f"Source file {source!r} not found.")
122
128
 
123
- setup(cmdclass=versioneer.get_cmdclass(), version=VERSION, ext_modules=extensions)
129
+ setup(use_scm_version=True, ext_modules=extensions)
@@ -2,14 +2,11 @@
2
2
 
3
3
  __authors__ = "MAICoS Developer Team"
4
4
 
5
- from ._version import get_versions
5
+ #: Version information for Scatterkit, following :pep:`440`
6
+ #: and `semantic versioning <http://semver.org/>`_.
7
+ from ._version import __version__ # noqa: F401
6
8
  from .diporderstructurefactor import DiporderStructureFactor
7
9
  from .rdfdiporder import RDFDiporder
8
10
  from .saxs import Saxs
9
11
 
10
- #: Version information for Scatterkit, following :pep:`440`
11
- #: and `semantic versioning <http://semver.org/>`_.
12
- __version__ = get_versions()["version"]
13
- del get_versions
14
-
15
12
  __all__ = ["Saxs", "DiporderStructureFactor", "RDFDiporder"]
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.1.1'
22
+ __version_tuple__ = version_tuple = (0, 1, 1)
23
+
24
+ __commit_id__ = commit_id = 'gc57d15b13'
@@ -12,10 +12,11 @@ import logging
12
12
  import MDAnalysis as mda
13
13
  import numpy as np
14
14
  from maicos.core import AnalysisBase
15
- from maicos.lib.util import get_center, render_docs, unit_vectors_planar
15
+ from maicos.lib.util import get_center, unit_vectors_planar
16
16
  from maicos.lib.weights import diporder_weights
17
17
 
18
18
  from .lib.math import compute_structure_factor
19
+ from .lib.util import render_docs
19
20
 
20
21
 
21
22
  @render_docs