Skip to content

Commit

Permalink
Replace versioneer with setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Mar 23, 2020
1 parent c4f35d1 commit a16c82c
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 2,416 deletions.
2 changes: 0 additions & 2 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
exclude_paths:
# These files stem from a different project.
- versioneer.py
- pyscal/_version.py
- docs/conf.py
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ disable=R0205, F0010, C0330, E1136, E0401
output-format=colorized

[MASTER]
ignore=_version.py,__init__.py,setup.py,versioneer.py
ignore=__init__.py,setup.py

# We allow a lot of "bad" variable names, because it is important to keep the link to the original formulas
[BASIC]
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
# the built documents.
#
# The short X.Y version.
version = "git" # pyscal.__version__
version = pyscal.__version__
# The full version, including alpha/beta/rc tags.
release = "git" # pyscal.__version__
release = pyscal.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
8 changes: 5 additions & 3 deletions pyscal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
from .pyscallist import PyscalList # noqa
from .factory import PyscalFactory # noqa

from ._version import get_versions
try:
from .version import version
__version__ = version
except ImportError:
__version__ = "v0.0.0"

__version__ = get_versions()["version"]
del get_versions
Loading

0 comments on commit a16c82c

Please sign in to comment.