Skip to content

Commit 274aff0

Browse files
replacing versioneer (#164)
* replacing versioneer * replacing versioneer * removing unused import
1 parent 2e8505a commit 274aff0

File tree

10 files changed

+38
-2967
lines changed

10 files changed

+38
-2967
lines changed

.github/workflows/pypi.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424
python3 -m build
2525
- name: Check the sdist installs and imports
2626
run: |
27-
mkdir -p test-sdist
28-
cd test-sdist
29-
python -m venv venv-sdist
30-
venv-sdist/bin/python -m pip install ../dist/pymc-experimental*.tar.gz
31-
echo "Checking import and version number (on release)"
32-
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
33-
cd ..
27+
mkdir -p test-sdist
28+
cd test-sdist
29+
python -m venv venv-sdist
30+
venv-sdist/bin/python -m pip install numpy
31+
venv-sdist/bin/python -m pip install ../dist/pymc-experimental*.tar.gz
32+
echo "Checking import and version number (on release)"
33+
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
34+
cd ..
3435
- name: Check the bdist installs and imports
3536
run: |
3637
mkdir -p test-bdist

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ repos:
2929
rev: v2.14.5
3030
hooks:
3131
- id: pylint
32-
exclude: versioneer.py
3332
args: [--rcfile=.pylintrc]
3433
files: ^pymc_experimental/
3534
- repo: https://github.com/MarcoGorelli/madforhooks
@@ -41,7 +40,6 @@ repos:
4140
- repo: local
4241
hooks:
4342
- id: no-relative-imports
44-
exclude: versioneer.py
4543
name: No relative imports
4644
entry: from \.[\.\w]* import
4745
types: [python]

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include requirements*.txt
22
include *.md *.rst
33
include LICENSE
4-
include versioneer.py
4+
include pymc_experimental/version.txt

pymc_experimental/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
import logging
1515

16+
from pymc_experimental.version import __version__
17+
1618
_log = logging.getLogger("pmx")
1719

1820
if not logging.root.handlers:
@@ -21,8 +23,6 @@
2123
handler = logging.StreamHandler()
2224
_log.addHandler(handler)
2325

24-
from pymc_experimental import _version, distributions, gp, utils
26+
from pymc_experimental import distributions, gp, utils
2527
from pymc_experimental.inference.fit import fit
2628
from pymc_experimental.marginal_model import MarginalModel
27-
28-
__version__ = _version.get_versions()["version"]

0 commit comments

Comments
 (0)