Skip to content

Commit

Permalink
Final touches for allowing a conda build
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Dec 10, 2024
1 parent 6b905d1 commit 63af1e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 94 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/cibuildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
# Fetch all history for all branches and tags
# (important for guessing the correct version with setuptools_scm)
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -91,10 +87,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
# Fetch all history for all branches and tags
# (important for guessing the correct version with setuptools_scm)
fetch-depth: 0

- uses: actions/setup-python@v5
name: Setup Python ${{ matrix.python-version }}
Expand Down
7 changes: 4 additions & 3 deletions RELEASING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ python-blosc2 release procedure
Preliminaries
-------------

* Do not worry about the version number. setuptools_scm in scikit-build-core has machinery
to figure it out based on git tags:
https://scikit-build-core.readthedocs.io/en/latest/configuration.html#dynamic-metadata
* Set the version number in ``pyproject.toml`` to the new version number (e.g. ``X.Y.Z``).

* Make sure that the c-blosc2 repository is updated to the latest version (or a specific
version that will be documented in the ``RELEASE_NOTES.md``). In ``CMakeLists.txt`` edit::
Expand Down Expand Up @@ -111,6 +109,9 @@ Post-release actions

XXX version-specific blurb XXX

* Update the version number in ``pyproject.toml`` to the next version number
(e.g. ``X.Y.(Z+1).dev``).

* Commit your changes with::

git commit -a -m "Post X.Y.Z release actions done"
Expand Down
5 changes: 0 additions & 5 deletions generate_version.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# generate_version.py

import tomllib as toml

# Read the pyproject.toml file
with open("pyproject.toml", "rb") as f:
pyproject = toml.load(f)

# Extract the version
version = pyproject["project"]["version"]

# Write the version to blosc2/_version.py
with open("src/blosc2/version.py", "w") as f:
f.write(f'__version__ = "{version}"\n')
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "blosc2"
description = "A flexible computational engine for the fast Blosc2 compression library"
description = "A high-performance compressed ndarray library with a flexible computational engine"
readme = {file = "README.rst", content-type = "text/x-rst"}
authors = [{name = "Blosc Development Team", email = "[email protected]"}]
maintainers = [{ name = "Blosc Development Team", email = "[email protected]"}]
Expand Down
77 changes: 0 additions & 77 deletions recipes/blosc2/meta.yaml

This file was deleted.

0 comments on commit 63af1e5

Please sign in to comment.