Replace `setuptools-scm` with bumpversion

pull/272/head
messense 2 months ago
parent cce15dd39f
commit c5b6bacddb
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
  1. 8
      .bumpversion.cfg
  2. 1
      .gitignore
  3. 5
      pyproject.toml
  4. 4
      setup.cfg
  5. 4
      setuptools_rust/version.py

@ -0,0 +1,8 @@
[bumpversion]
commit = True
tag = False
current_version = 1.4.1
[bumpversion:file:setup.cfg]
[bumpversion:file:setuptools_rust/version.py]

1
.gitignore vendored

@ -8,6 +8,5 @@ build
target
.pytest_cache
*.egg-info
setuptools_rust/version.py
pyo3
docs/_build

@ -1,10 +1,7 @@
[build-system]
requires = ["setuptools>=62.4", "setuptools_scm[toml]>=3.4.3"]
requires = ["setuptools>=62.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "setuptools_rust/version.py"
[tool.isort]
profile = "black"

@ -1,6 +1,6 @@
[metadata]
name = setuptools-rust
version = attr: setuptools_rust.__version__
version = 1.4.1
author = Nikolay Kim
author_email = fafhrd91@gmail.com
license = MIT
@ -28,7 +28,7 @@ classifiers =
packages = setuptools_rust
zip_safe = True
install_requires = setuptools>=62.4; semantic_version>=2.8.2,<3; typing_extensions>=3.7.4.3
setup_requires = setuptools>=62.4; setuptools_scm>=6.3.2
setup_requires = setuptools>=62.4
python_requires = >=3.7
[options.entry_points]

@ -0,0 +1,4 @@
__version__ = version = "1.4.1"
__version_tuple__ = version_tuple = tuple(
map(lambda x: int(x[1]) if x[0] < 3 else x[1], enumerate(__version__.split(".")))
)
Loading…
Cancel
Save