Skip to content

Commit abe049b

Browse files
committed
Tag-based dynamic versioning
1 parent 52961a6 commit abe049b

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

README.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If you prefer to install from sources, after installing the dependencies, obtain
5757
`GitHub <https://github.com/diffpy/diffpy.utils/>`_. Once installed, ``cd`` into your ``diffpy.utils`` directory
5858
and run the following ::
5959

60-
pip install -e .
60+
pip install .
6161

6262
To check the installation integrity, if the following passes all checks, you are good! ::
6363

@@ -75,9 +75,12 @@ https://github.com/diffpy/diffpy.utils.
7575

7676
Feel free to fork the project and contribute. To install diffpy.utils
7777
in a development mode, with its sources being directly used by Python
78-
rather than copied to a package directory, use ::
78+
rather than copied to a package directory, use the following in the root
79+
directory ::
80+
81+
pip install -e .
7982

80-
python setup.py develop --user
83+
Note that this is only supported for `setuptools` version 62.0 and above.
8184

8285

8386
CONTACTS

pyproject.toml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=62.0"]
2+
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "diffpy.utils"
7-
version = "3.2.7"
7+
dynamic=['version']
88
authors = [
99
{ name="Simon J.L. Billinge group", email="[email protected]" },
1010
]
@@ -14,7 +14,7 @@ maintainers = [
1414
description = "Shared utilities for diffpy packages."
1515
keywords = ["text data parsers", "wx grid", "diffraction objects"]
1616
readme = "README.rst"
17-
requires-python = ">=3.8"
17+
requires-python = ">=3.9"
1818
classifiers = [
1919
'Development Status :: 5 - Production/Stable',
2020
'Environment :: Console',
@@ -26,7 +26,6 @@ classifiers = [
2626
'Operating System :: POSIX',
2727
'Operating System :: Unix',
2828
'Programming Language :: Python :: 2.7',
29-
'Programming Language :: Python :: 3.8',
3029
'Programming Language :: Python :: 3.9',
3130
'Programming Language :: Python :: 3.10',
3231
'Programming Language :: Python :: 3.11',
@@ -38,6 +37,12 @@ classifiers = [
3837
Homepage = "https://github.com/diffpy/diffpy.utils/"
3938
Issues = "https://github.com/diffpy/diffpy.utils/issues"
4039

40+
[tool.setuptools-git-versioning]
41+
enabled = true
42+
template = "{tag}"
43+
dev_template = "{tag}.post{ccount}"
44+
dirty_template = "{tag}.post{ccount}"
45+
4146
[tool.setuptools.packages.find]
4247
where = ["src"] # list of folders that contain the packages (["."] by default)
4348
include = ["diffpy*"] # package names should match these glob patterns (["*"] by default)

0 commit comments

Comments
 (0)