Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Feb 9, 2023
1 parent 758181d commit 2384417
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/pymc-marketing*.tar.gz
# check import
echo "Checking import and version number (on release)"
venv-sdist/bin/python -c "import pymc_marketing as pmm; assert pmm.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else pmm.__version__; print(pmm.__version__)"
cd ..
- name: Check the bdist installs and imports
Expand All @@ -37,7 +37,7 @@ jobs:
cd test-bdist
python -m venv venv-bdist
venv-bdist/bin/python -m pip install ../dist/pymc_marketing*.whl
# check import
echo "Checking import and version number (on release)"
venv-bdist/bin/python -c "import pymc_marketing as pmm; assert pmm.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else pmm.__version__; print(pmm.__version__)"
cd ..
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -66,8 +66,8 @@ jobs:
- name: Test pip install from test.pypi
run: |
python -m venv venv-test-pypi
venv-test-pypi/bin/python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pymc-marketing
# check import
venv-test-pypi/bin/python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pymc-marketing
echo "Checking import and version number"
venv-test-pypi/bin/python -c "import pymc_marketing; assert pymc_marketing.__version__ == '${{ github.ref_name }}'"
publish:
Expand Down
2 changes: 1 addition & 1 deletion pymc_marketing/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def read_version():
version_file = os.path.join(here, "version.txt")
with open(version_file, encoding="utf-8") as buff:
return buff.read()
return buff.read().splitlines()[0]


__version__ = read_version()
2 changes: 1 addition & 1 deletion pymc_marketing/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2

0 comments on commit 2384417

Please sign in to comment.