Skip to content

Commit ccbc0e1

Browse files
Merge pull request #40 from chrisjonesBSU/update-setup
Replace `setup.py` with `pyproject.toml`
2 parents b213c94 + fd2d941 commit ccbc0e1

File tree

5 files changed

+75
-52
lines changed

5 files changed

+75
-52
lines changed

.github/workflows/CI.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
python=${{ matrix.python-version }}
3838
3939
- name: Install Package
40-
run: python -m pip install -e .
40+
run: python -m build && pip install dist/*.whl
4141

4242
- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
4343
run: python -m pytest -v --cov=msibi --cov-report=xml --cov-append --cov-config=setup.cfg --color yes --pyargs msibi
@@ -74,7 +74,7 @@ jobs:
7474
python=${{ matrix.python-version }}
7575
7676
- name: Install Package
77-
run: python -m pip install -e .
77+
run: python -m build && pip install dist/*.whl
7878

7979
- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
8080
run: python -m pytest -v --color yes --pyargs msibi

environment-dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ dependencies:
1313
- pytest
1414
- pytest-cov
1515
- pre-commit
16+
- pip:
17+
- build

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "msibi"
7+
version = "0.1.0"
8+
description = "Deriving coarse-grain potentials from multiple target state points."
9+
readme = "README.md"
10+
authors = [
11+
{name = "Tim Moore", email = "mtimc@umich.edu"},
12+
{name = "Christopher Klein", email = "christoph.klein@vanderbilt.edu"},
13+
]
14+
maintainers = [
15+
{name = "Chris Jones", email = "c.jones_1@hw.ac.uk"},
16+
{name = "Nicholas Craven", email = "nicholas.c.craven@vanderbilt.edu"},
17+
]
18+
license= {text = "MIT"}
19+
classifiers=[
20+
"Intended Audience :: Science/Research",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: MIT License",
23+
"Natural Language :: English",
24+
"Programming Language :: Python",
25+
"Programming Language :: Python :: 3",
26+
"Topic :: Scientific/Engineering :: Chemistry",
27+
"Operating System :: Microsoft :: Windows",
28+
"Operating System :: POSIX",
29+
"Operating System :: Unix",
30+
"Operating System :: MacOS",
31+
]
32+
urls = {Homepage = "https://github.com/mosdef-hub/msibi"}
33+
requires-python = ">=3.10"
34+
35+
[tool.setuptools]
36+
zip-safe = false
37+
include-package-data = true
38+
license-files = ["LICENSE"]
39+
40+
[tool.setuptools.packages]
41+
find = {namespaces = false}
42+
43+
[tool.setuptools.package-data]
44+
msibi = ['"utils/**"']

setup.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[bumpversion]
2+
current_version = 0.1.0
3+
commit = True
4+
tag = True
5+
message = Bump to version {new_version}
6+
tag_name = {new_version}
7+
8+
[coverage:run]
9+
omit =
10+
msibi/tests/*
11+
12+
[coverage:report]
13+
exclude_lines =
14+
pragma: no cover
15+
16+
if 0:
17+
if __name__ == .__main__.:
18+
def __repr__
19+
except ImportError
20+
omit =
21+
msibi/tests/*
22+
23+
[bumpversion:file:msibi/__version__.py]
24+
25+
[bumpversion:file:pyproject.toml]
26+
27+
#[bumpversion:file:docs/conf.py]

setup.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)