Skip to content

Commit 1e0125e

Browse files
authored
Merge pull request #53 from paulromano/pyproject-toml
Put all project metadata in pyproject.toml
2 parents a9f07c8 + 219e837 commit 1e0125e

File tree

7 files changed

+80
-96
lines changed

7 files changed

+80
-96
lines changed

README.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,31 @@
33
[![License](https://img.shields.io/badge/license-MIT-green)](https://opensource.org/licenses/MIT)
44
[![GitHub Actions build status (Linux)](https://github.com/watts-dev/watts/workflows/CI/badge.svg?branch=development)](https://github.com/watts-dev/watts/actions?query=workflow%3ACI)
55

6-
7-
WATTS (Workflow and Template Toolkit for Simulation) provides a set of Python
8-
classes that can manage simulation workflows for multiple codes where
9-
information is exchanged at a coarse level. For each code, input files rely on
10-
placeholder values that are filled in based on a set of user-defined parameters.
11-
12-
WATTS is being developed with support from Argonne National Laboratory. For any
13-
questions, please contact [watts@anl.gov](mailto:watts@anl.gov).
6+
WATTS (Workflow and Template Toolkit for Simulation) consists of a set of Python
7+
classes that can manage simulation workflows for one or multiple codes. It
8+
provides the following capabilities:
9+
10+
- An isolated execution environment when running a code;
11+
- The ability to use placeholder values in input files that are filled in
12+
programmatically;
13+
- Seamless unit conversions when working with multiple codes;
14+
- A managed database that simulation inputs and outputs are automatically saved
15+
to; and
16+
- Python classes that provide extra post-processing and analysis capabilities
17+
for each code.
1418

1519
## Installation
1620

17-
- pip install watts
18-
19-
## Documentation
21+
To install `watts`, run:
2022

21-
Here is the link to the online [__documentation__](https://watts.readthedocs.io/en/latest/user/index.html).
23+
python -m pip install watts
2224

23-
In case you want to build the documentation locally, you can run:
24-
25-
- cd doc
26-
- pip install -r requirements.txt
27-
- make html
28-
29-
Then you can view the documentation with:
30-
- google-chrome build/html/index.html
25+
## Documentation
3126

32-
or replace google-chrome with your favorite browser.
27+
Documentation for WATTS can be found
28+
[__here__](https://watts.readthedocs.io/en/latest/index.html).
3329

34-
## Tutorial
30+
## Sponsors
3531

36-
Here is the link to a series of [__examples__](/examples/README.md).
32+
WATTS is being developed with support from Argonne National Laboratory. For any
33+
questions, please contact [watts@anl.gov](mailto:watts@anl.gov).

doc/source/_static/switcher.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
[
22
{
33
"name": "dev",
4-
"version": "latest"
4+
"version": "latest",
5+
"url": "https://watts.readthedocs.io/en/latest/"
56
},
67
{
78
"name": "0.2.0",
8-
"version": "v0.2.0"
9+
"version": "v0.2.0",
10+
"url": "https://watts.readthedocs.io/en/v0.2.0/"
911
},
1012
{
1113
"name": "0.1.0",
12-
"version": "v0.1.0"
14+
"version": "v0.1.0",
15+
"url": "https://watts.readthedocs.io/en/v0.1.0/"
1316
}
1417
]

doc/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
],
9393
"switcher": {
9494
"json_url": "https://watts.readthedocs.io/en/latest/_static/switcher.json",
95-
"url_template": "https://watts.readthedocs.io/en/{version}/",
9695
"version_match": version if '-dev' not in version else 'dev',
9796
},
9897
"navbar_end": ["version-switcher", "navbar-icon-links"],

doc/source/dev/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ As a developer, it is advisable to install WATTS from the local source tree in
124124
"`editable <https://pip.pypa.io/en/stable/cli/pip_install/#editable-installs>`_"
125125
mode::
126126

127-
pip install -e <path-to-watts-dir>
127+
python -m pip install -e <path-to-watts-dir>
128128

129129
This will install the package via a link to the original location so that any
130130
local changes are immediately reflected in your environment.

doc/source/user/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WATTS can be installed by running:
77

88
.. code-block:: sh
99
10-
pip install watts
10+
python -m pip install watts
1111
1212
If you are developing a feature in WATTS, please see :ref:`install_develop`.
1313

pyproject.toml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,54 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "watts"
7+
version = "0.3.0-dev"
8+
authors = [
9+
{ name = "UChicago Argonne, LLC", email = "watts@anl.gov" },
510
]
6-
build-backend = "setuptools.build_meta"
11+
license = { file = "LICENSE" }
12+
description = "Workflow and Template Toolkit for Simulation"
13+
readme = "README.md"
14+
classifiers = [
15+
"Development Status :: 3 - Alpha",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: End Users/Desktop",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: MIT License",
20+
"Natural Language :: English",
21+
"Operating System :: OS Independent",
22+
"Topic :: Scientific/Engineering",
23+
"Programming Language :: C++",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
]
30+
requires-python = ">=3.7"
31+
dependencies = [
32+
"Jinja2",
33+
"dill",
34+
"numpy",
35+
"pandas",
36+
"platformdirs",
37+
"prettytable",
38+
"astropy",
39+
"uncertainties",
40+
]
41+
42+
[project.optional-dependencies]
43+
test = ["pytest"]
44+
docs = [
45+
"sphinx",
46+
"pydata_sphinx_theme",
47+
"sphinx_design",
48+
"sphinx-autodoc-typehints",
49+
]
50+
51+
[project.urls]
52+
"Bug Tracker" = "https://github.com/watts-dev/watts/issues"
53+
Documentation = "https://watts.readthedocs.io"
54+
"Source Code" = "https://github.com/watts-dev/watts"

setup.cfg

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

0 commit comments

Comments
 (0)