Skip to content

Commit

Permalink
Modernize packaging (#138)
Browse files Browse the repository at this point in the history
* Modernize packaging (switch from versioneer to versioningit, only use pyproject.toml)
* switch package name
* add pip install to rtd
  • Loading branch information
IAlibay authored Jan 22, 2024
1 parent 55c0241 commit 020b199
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 3,026 deletions.
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ build:
tools:
python: "mambaforge-4.10"

python:
install:
- method: pip
path: .

# Optionally set the version of Python and requirements required to build your docs
conda:
environment: ci/environment.yaml
5 changes: 1 addition & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
include README README.rst INSTALL CHANGELOG COPYING COPYING.LESSER AUTHORS
include README.rst INSTALL CHANGELOG COPYING COPYING.LESSER AUTHORS
include setup.py


include versioneer.py
include gridData/_version.py
4 changes: 2 additions & 2 deletions gridData/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@

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

from . import _version
__version__ = _version.get_versions()['version']
from importlib.metadata import version
__version__ = version("GridDataFormats")

Loading

0 comments on commit 020b199

Please sign in to comment.