Skip to content

Commit 020b199

Browse files
authored
Modernize packaging (#138)
* Modernize packaging (switch from versioneer to versioningit, only use pyproject.toml) * switch package name * add pip install to rtd
1 parent 55c0241 commit 020b199

File tree

8 files changed

+99
-3026
lines changed

8 files changed

+99
-3026
lines changed

Diff for: .readthedocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ build:
1515
tools:
1616
python: "mambaforge-4.10"
1717

18+
python:
19+
install:
20+
- method: pip
21+
path: .
22+
1823
# Optionally set the version of Python and requirements required to build your docs
1924
conda:
2025
environment: ci/environment.yaml

Diff for: MANIFEST.in

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
include README README.rst INSTALL CHANGELOG COPYING COPYING.LESSER AUTHORS
1+
include README.rst INSTALL CHANGELOG COPYING COPYING.LESSER AUTHORS
22
include setup.py
33

4-
5-
include versioneer.py
6-
include gridData/_version.py

Diff for: gridData/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@
113113

114114
__all__ = ['Grid', 'OpenDX', 'gOpenMol', 'mrc']
115115

116-
from . import _version
117-
__version__ = _version.get_versions()['version']
116+
from importlib.metadata import version
117+
__version__ = version("GridDataFormats")
118118

0 commit comments

Comments
 (0)