Skip to content

Commit

Permalink
replace setup.py,cfg with pyproject.toml
Browse files Browse the repository at this point in the history
- fix #385
- use pyproject.toml instead of setup.py (note: may need to change README for PyPi to exclude
  banners)
- remove versioneer and use versioningit (use alchemlyb.__version__ directly where
  the version is needed, e.g., for sphinx docs)
- updated CHANGES for 2.4.0
  • Loading branch information
orbeckst committed Sep 17, 2024
1 parent d7058a5 commit 741cb09
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3,046 deletions.
8 changes: 4 additions & 4 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ The rules for this file:
* release numbers follow "Semantic Versioning" https://semver.org


??/??/2024 jaclark5, orbeckst
09/17/2024 jaclark5, orbeckst

* 2.4.0

Enhancements
- Addition of `block_average` function in both `convergence` and
`visualization` (Issue #380, PR #381)

Enhancements:
- add CITATION.cff file with all authors from AUTHORS (issue #394, PR #395)


Changes
- modernize build system: replaced setup.py,cfg with pyproject.toml (#385)

08/24/2024 xiki-tempula

Expand Down
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@
# We always display the full release string; if something else is
# desired, see the commented out code

from alchemlyb._version import get_versions

release = get_versions()["version"]
del get_versions
import alchemlyb

release = alchemlyb.__version__
version = release

# version = release.split("+")[0] # only major.minor.patch
# version = "."join(release.split(".")[:2]) # only major.minor

Expand Down
7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

63 changes: 0 additions & 63 deletions setup.py

This file was deleted.

5 changes: 1 addition & 4 deletions src/alchemlyb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import pandas as pd

from ._version import get_versions

__version__ = get_versions()["version"]
del get_versions
from ._version import __version__


def pass_attrs(func):
Expand Down
Loading

0 comments on commit 741cb09

Please sign in to comment.