Skip to content

Commit 6e9577f

Browse files
authored
Merge pull request #8 from amritagos/develop
Upload to PyPI
2 parents 6b98e01 + 1986b02 commit 6e9577f

File tree

5 files changed

+36
-23
lines changed

5 files changed

+36
-23
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
# solvis
22

3-
<img src="branding/logo/logo.png" width="300" />
3+
<img src="https://github.com/amritagos/solvis/blob/main/branding/logo/logo.png?raw=true" width="300" />
44

55
## About
66

77
Various ways to analyze and visualize solvation shell structures, which wraps [`PyVista`](https://docs.pyvista.org/version/stable/). Meant primarily for analyzing the outputs produced by LAMMPS here.
88

9-
## Installation
9+
## Installation
10+
11+
### From PyPI
12+
13+
You can install `solvis` from PyPI like so:
14+
15+
```bash
16+
pip install solvis-tools
17+
```
18+
19+
### From source
1020

1121
We use [`micromamba`](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html) as the package manager, but feel free to use your own poison. Create and activate the environment.
1222

@@ -48,10 +58,10 @@ pytest --cov=solvis tests/
4858

4959
## Image Gallery
5060
<p float="left">
51-
<img src="resources/non_octahedral_shape.png" width="200" />
52-
<img src="resources/octahedral_shell.png" width="200" />
61+
<img src="https://github.com/amritagos/solvis/blob/main/resources/non_octahedral_shape.png?raw=true" width="200" />
62+
<img src="https://github.com/amritagos/solvis/blob/main/resources/octahedral_shell.png?raw=true" width="200" />
5363
</p>
5464
<p float="left">
55-
<img src="resources/shell_with_hbonds.png" width="200" />
56-
<img src="resources/hbond_non_oct.png" width="200" />
65+
<img src="https://github.com/amritagos/solvis/blob/main/resources/shell_with_hbonds.png?raw=true" width="200" />
66+
<img src="https://github.com/amritagos/solvis/blob/main/resources/hbond_non_oct.png?raw=true" width="200" />
5767
</p>

environment.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ channels:
1010
# - {{ compiler('c') }}
1111
# - {{ compiler('c++') }}
1212
dependencies:
13-
- python==3.10
14-
- ase==3.22.1
15-
- numpy==1.22.4
16-
- scipy==1.7.3
13+
- python>=3.10
14+
- build<0.10.0
15+
- ase>=3.22.1
16+
- numpy>=1.26.4 # 1.22.4
17+
- scipy>=1.7.3
1718
- ipython>=8.26.0
1819
- pandas>=2.2.2
1920
- pyvista==0.43.0
@@ -25,6 +26,7 @@ dependencies:
2526
- pooch==1.8.0
2627
- scooby==0.9.2
2728
# Packaging
29+
- twine
2830
- flit==3.9.0
2931
- pytest==6.2.5
3032
- coverage==6.1.1
@@ -37,6 +39,6 @@ dependencies:
3739
- flake8-docstrings==1.6.0
3840
- meson-python>=0.16.0
3941
- pytest-cov>=3.0.0
40-
- pip:
41-
# works for regular pip packages
42-
- lammps-logfile
42+
# - pip:
43+
# # works for regular pip packages
44+
# - lammps-logfile

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project('solvis')
22

33
py_mod = import('python')
4-
py = py_mod.find_installation(pure: false)
4+
py = py_mod.find_installation(pure: true) # This is pure Python, so maybe this should be true
55

66
# solvis, main package
77
py.install_sources([
@@ -16,6 +16,6 @@ py.install_sources([
1616
'solvis/vis_initializers.py',
1717
'solvis/visualization.py'
1818
],
19-
pure: false, # install next to compiled extension
19+
pure: true, # no compiled extension
2020
subdir: 'solvis'
2121
)

pyproject.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
[build-system]
2-
requires = ["meson-python"]
2+
requires = ["meson-python>=0.16.0"]
33
build-backend = "mesonpy"
44
# Important, tells pip how to install the package
55

66
[project]
7-
name = "solvis"
8-
version = "0.0.1"
9-
description = "A module for analyzing and visualizing solvation shells in LAMMPS output files."
7+
name = "solvis-tools"
8+
version = "0.1.4"
9+
description = "A module for analyzing and visualizing solvation shells in LAMMPS output files, but would work with most files that can be handled by ASE."
1010
authors = [
1111
{name = "Amrita Goswami", email = "[email protected]"},
1212
]
13+
classifiers=[
14+
'Programming Language :: Python :: 3.10']
1315
dependencies = [
1416
"ase == 3.22.1",
15-
"numpy == 1.22.4",
16-
"scipy == 1.7.3",
17+
"numpy",
18+
"scipy >= 1.7.3",
1719
"pyvista == 0.43.0",
1820
"pillow == 10.0.1",
1921
"imageio == 2.31.5",
2022
"pooch==1.8.0",
2123
"scooby==0.9.2"]
22-
requires-python = ">=3.9"
24+
requires-python = ">=3.10"
2325
readme = "README.md"
2426
license = {text = "MIT"}
2527

solvis/visualization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from scipy.spatial import ConvexHull, Delaunay
55
from scipy.spatial import KDTree
66
import math
7-
import pandas as pd
87
from pathlib import Path
98
from pyvista import PolyData
109
import pyvista as pv

0 commit comments

Comments
 (0)