-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix requirements, move to setuptools.scm
- Loading branch information
1 parent
fa79f70
commit 8edd6e0
Showing
4 changed files
with
57 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,25 @@ | |
|
||
"""Implement JSONField for SQLAlchemy.""" | ||
|
||
import pkg_resources | ||
|
||
from .jsonfield import JSONField, mutable_json_field | ||
|
||
__version__ = "0.7.1" | ||
try: # pragma: no cover | ||
__version__ = pkg_resources.get_distribution(__name__).version | ||
except pkg_resources.DistributionNotFound: # pragma: no cover | ||
# package is not installed, try to get from SCM | ||
try: | ||
# noinspection PyPackageRequirements,PyUnresolvedReferences | ||
import setuptools_scm # type: ignore | ||
|
||
__version__ = setuptools_scm.get_version() | ||
except ImportError: | ||
pass | ||
|
||
|
||
__all__ = ("JSONField", "mutable_json_field") | ||
|
||
__author__ = "Alexey Stepanov <[email protected]>" | ||
__author_email__ = "[email protected]" | ||
__url__ = "https://github.com/penguinolog/sqlalchemy_jsonfield" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters