mirror of https://github.com/jab/bidict.git
Drop setuptools_scm.
This commit is contained in:
parent
8bdd76f597
commit
b6275c1750
|
@ -27,6 +27,8 @@ to be notified when new versions of ``bidict`` are released.
|
|||
0.21.3 (not yet released)
|
||||
-------------------------
|
||||
|
||||
- Drop setuptools_scm as a setup_requires dependency.
|
||||
|
||||
- Remove ``bidict.__version_info__`` attribute.
|
||||
|
||||
|
||||
|
|
|
@ -8,25 +8,7 @@
|
|||
"""Define bidict package metadata."""
|
||||
|
||||
|
||||
__version__ = '0.0.0.VERSION_NOT_FOUND'
|
||||
|
||||
# _version.py is generated by setuptools_scm (via its `write_to` param, see setup.py)
|
||||
try:
|
||||
from ._version import version
|
||||
except Exception: # pragma: no cover
|
||||
try:
|
||||
import pkg_resources
|
||||
except Exception: # pragma: no cover
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
__version__ = pkg_resources.get_distribution('bidict').version
|
||||
except Exception: # pragma: no cover
|
||||
pass
|
||||
else: # pragma: no cover
|
||||
__version__ = version
|
||||
|
||||
|
||||
__version__ = '0.21.3.dev'
|
||||
__author__ = 'Joshua Bronson'
|
||||
__maintainer__ = 'Joshua Bronson'
|
||||
__copyright__ = 'Copyright 2009-2021 Joshua Bronson'
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
requires = [
|
||||
"setuptools",
|
||||
"wheel",
|
||||
"setuptools_scm",
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
|
||||
# https://packaging.python.org/guides/single-sourcing-package-version/#:~:text=%5Bmetadata%5D%0Aversion%20%3D%20attr%3A%20package.__version__
|
||||
[metadata]
|
||||
version = attr: bidict.__version__
|
||||
|
||||
# https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels
|
||||
[bdist_wheel]
|
||||
# No longer Python 2-compatible -> disable universal wheels:
|
||||
|
|
6
setup.py
6
setup.py
|
@ -48,12 +48,6 @@ with open(join(CWD, 'README.rst'), encoding='utf-8') as f:
|
|||
|
||||
setup(
|
||||
name='bidict',
|
||||
use_scm_version={
|
||||
'version_scheme': 'guess-next-dev',
|
||||
'local_scheme': 'dirty-tag',
|
||||
'write_to': 'bidict/_version.py',
|
||||
'parentdir_prefix_version': 'bidict-',
|
||||
},
|
||||
author=METADATA.__author__, # type: ignore
|
||||
author_email=METADATA.__email__, # type: ignore
|
||||
description=METADATA.__description__, # type: ignore
|
||||
|
|
Loading…
Reference in New Issue