Skip to content

Commit 1426cc4

Browse files
Merge branch 'main' into main
2 parents 8a01b5a + 0376b05 commit 1426cc4

File tree

10 files changed

+58
-136
lines changed

10 files changed

+58
-136
lines changed

.github/workflows/pytest.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ jobs:
3939
uses: actions/checkout@v4
4040

4141
- name: Build environment
42-
uses: conda-incubator/setup-miniconda@v3
42+
uses: mamba-org/setup-micromamba@v2
4343
with:
4444
environment-file: environment-dev.yml
45-
python-version: ${{ matrix.python-version }}
46-
miniforge-variant: Miniforge3
47-
miniforge-version: 24.11.0-0
48-
use-mamba: true
45+
create-args: >-
46+
python=${{ matrix.python-version }}
4947
5048
- name: Install package
5149
shell: bash -l {0}
@@ -56,7 +54,7 @@ jobs:
5654
run: python -m pytest -rs -v --cov=./ --cov-report=xml
5755

5856
- name: Upload coverage to Codecov
59-
uses: codecov/codecov-action@v4
57+
uses: codecov/codecov-action@v5
6058
with:
6159
token: ${{ secrets.CODECOV_TOKEN }}
6260
file: ./coverage.xml
@@ -99,12 +97,11 @@ jobs:
9997
uses: actions/checkout@v4
10098

10199
- name: Build environment
102-
uses: conda-incubator/setup-miniconda@v3
100+
uses: mamba-org/setup-micromamba@v2
103101
with:
104102
environment-file: environment-dev.yml
105-
miniforge-variant: Miniforge3
106-
miniforge-version: 24.11.0-0
107-
use-mamba: true
103+
create-args: >-
104+
python=3.12
108105
109106
- name: Install package
110107
shell: bash -l {0}

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ci:
99
submodules: false
1010
repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.8.4 # Ruff version
12+
rev: v0.9.2 # Ruff version
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --extend-ignore=E203]

flowermd/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
Simulation,
1111
System,
1212
)
13+
1314
from .internal.units import Units
15+
16+
__version__ = "1.3.1"

flowermd/__version__.py

-3
This file was deleted.

flowermd/base/molecule.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ def _build(self, length):
525525
self.periodic_bond_axis, str
526526
) or self.periodic_bond_axis.lower() not in ["x", "y", "z"]:
527527
raise ValueError(
528-
"Valid choices for a `periodic_bond_axis` are "
529-
"'x', 'y', 'z'"
528+
"Valid choices for a `periodic_bond_axis` are 'x', 'y', 'z'"
530529
)
531530
add_hydrogens = False
532531
else:

flowermd/base/simulation.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def __init__(
7373
):
7474
if not isinstance(forcefield, Iterable) or isinstance(forcefield, str):
7575
raise ValueError(
76-
"forcefield must be a sequence of "
77-
"hoomd.md.force.Force objects."
76+
"forcefield must be a sequence of hoomd.md.force.Force objects."
7877
)
7978
else:
8079
for obj in forcefield:

flowermd/base/system.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,7 @@ def __init__(
670670
):
671671
if isinstance(density, (int, float)):
672672
warnings.warn(
673-
"Units for density were not given, assuming "
674-
"units of g/cm**3."
673+
"Units for density were not given, assuming units of g/cm**3."
675674
)
676675
self.density = density * Units.g_cm3
677676
else:

flowermd/modules/surface_wetting/surface_wetting.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ def run_droplet(
105105
final_density, (u.array.unyt_quantity, u.unyt_quantity, Units)
106106
):
107107
warnings.warn(
108-
"Units for density were not given, assuming "
109-
"units of g/cm**3."
108+
"Units for density were not given, assuming units of g/cm**3."
110109
)
111110
target_box_shrink = get_target_box_mass_density(
112111
density=shrink_density * Units.g_cm3,

pyproject.toml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2", "versioningit"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "flowermd"
7+
description = "Framework for building and running coplex simulaiton workflows with MosDeF and HOOMD-Blue."
8+
readme = "README.md"
9+
authors = [
10+
{name = "Chris Jones", email = "[email protected]"},
11+
{name = "Marjan Albooyeh", email = "[email protected]"},
12+
{name = "Eric Jankowski", email = "[email protected]"}
13+
]
14+
license= {text = "GPLv3"}
15+
classifiers=[
16+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3",
19+
]
20+
urls = {Homepage = "https://github.com/cmelab/flowermd"}
21+
requires-python = ">=3.10"
22+
dynamic = ["version"]
23+
24+
[tool.setuptools]
25+
zip-safe = false
26+
include-package-data = true
27+
license-files = ["LICENSE"]
28+
29+
[tool.setuptools.packages]
30+
find = {namespaces = false}
31+
32+
[tool.setuptools.package-data]
33+
flowermd = [
34+
'"modules/**"',
35+
'"library/**"',
36+
'"assets/forcefields/**"',
37+
'"assets/molecule_files/**"',
38+
'"utils/**"',
39+
'"internal/**"',
40+
]
41+
42+
[tool.setuptools.dynamic]
43+
version = {attr = "flowermd.__version__"}

setup.py

-114
This file was deleted.

0 commit comments

Comments
 (0)