Skip to content

Automatic versioning with versioneer #6078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pymc/_version.py export-subst
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ repos:
- id: pylint
args: [--rcfile=.pylintrc]
files: ^pymc/
exclude: (?x)(pymc/_version.py)
- repo: https://github.com/MarcoGorelli/madforhooks
rev: 0.3.0
hooks:
- id: no-print-statements
files: ^pymc/
exclude: (?x)(pymc/_version.py)
- repo: local
hooks:
- id: check-no-tests-are-ignored
Expand All @@ -77,6 +79,7 @@ repos:
entry: from \.[\.\w]* import
types: [python]
language: pygrep
exclude: (?x)(pymc/_version.py|versioneer.py)
- id: no-internal-links
name: Check no links that should be cross-references are in the docs
description: >-
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ include requirements.txt
include *.md *.rst
include scripts/*.sh
include LICENSE
include versioneer.py
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ coverage:

ignore:
- "pymc/tests/*"
- "pymc/_version.py"

comment:
layout: "reach, diff, flags, files"
Expand Down
5 changes: 3 additions & 2 deletions pymc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

# pylint: disable=wildcard-import
__version__ = "4.1.7"

import logging

Expand Down Expand Up @@ -47,7 +46,7 @@ def __set_compiler_flags():

__set_compiler_flags()

from pymc import gp, ode, sampling
from pymc import _version, gp, ode, sampling
from pymc.aesaraf import *
from pymc.backends import *
from pymc.blocking import *
Expand Down Expand Up @@ -75,3 +74,5 @@ def __set_compiler_flags():
from pymc.tuning import *
from pymc.variational import *
from pymc.vartypes import *

__version__ = _version.get_versions()["version"]
Loading