Skip to content

Commit

Permalink
Switch to VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Oct 24, 2023
1 parent 2232c9c commit 1f353b8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
23.12.00
4 changes: 2 additions & 2 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ sed_runner 's/release = .*/release = '"'${NEXT_FULL_TAG}'"'/g' docs/source/conf.
# docs update
sed_runner "/cuxfilter=[0-9]\{2\}.[0-9]\{2\}/ s/=[0-9]\{2\}.[0-9]\{2\}/=${NEXT_SHORT_TAG}/g" docs/source/user_guide/installation.rst

# Python __init__.py updates
sed_runner "/^__version__ / s/= .*/= \"${NEXT_FULL_TAG}\"/g" python/cuxfilter/_version.py
# Centralized version file update
echo "${NEXT_FULL_TAG}" | tr -d '"' > VERSION


DEPENDENCIES=(
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/cuxfilter/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package:
version: {{ version }}

source:
git_url: ../../..
path: ../../..

build:
number: {{ GIT_DESCRIBE_NUMBER }}
Expand Down
1 change: 1 addition & 0 deletions python/cuxfilter/VERSION
5 changes: 4 additions & 1 deletion python/cuxfilter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "23.12.00"
import os.path

with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as version_file:
__version__ = version_file.read().strip()
__git_commit__ = ""
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Documentation = "https://docs.rapids.ai/api/cuxfilter/stable/"
license-files = ["LICENSE"]

[tool.setuptools.dynamic]
version = {attr = "cuxfilter._version.__version__"}
version = {file = "cuxfilter/VERSION"}
11 changes: 7 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

from setuptools import find_packages, setup

packages = packages=find_packages(
include=["cuxfilter", "cuxfilter.*"],
exclude=("tests", "docs", "notebooks"),
)

setup(
packages=find_packages(
include=["cuxfilter", "cuxfilter.*"],
exclude=("tests", "docs", "notebooks"),
),
packages=packages,
package_data={key: ["VERSION"] for key in packages},
zip_safe=False,
)

0 comments on commit 1f353b8

Please sign in to comment.