Skip to content

Commit

Permalink
not using setuptools_scm to auto-set version from git tags: setup.cfg…
Browse files Browse the repository at this point in the history
… and xraydb/version.py need to agree
  • Loading branch information
newville committed Nov 13, 2023
1 parent d295906 commit c406f7f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ __pycache__/
doc/_build

python/dist/
python/xraydb/version.py
python/*.egg-info/
python/build
python/tests/.coverage
Expand Down
1 change: 0 additions & 1 deletion python/.gitattributes

This file was deleted.

7 changes: 1 addition & 6 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@
## python -m build -w
##
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8.0"]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
root = ".."
write_to = "python/xraydb/version.py"
version_scheme = "post-release"
2 changes: 1 addition & 1 deletion python/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[metadata]
version = 4.5.3
name = xraydb
description = X-ray Reference Data for the Elements using SQLite
long_description =
Expand Down Expand Up @@ -39,7 +40,6 @@ project_urls =
packages = find:
include_package_data = True
python_requires = >=3.8
setup_requires = setuptools_scm
install_requires =
numpy>=1.12
scipy>=1.5
Expand Down

0 comments on commit c406f7f

Please sign in to comment.