Skip to content

Commit 9290c6d

Browse files
authored
Merge pull request #1 from asiomchen/whl-fix
Whl fix
2 parents 42e73a3 + bdbdf98 commit 9290c6d

4 files changed

Lines changed: 46 additions & 42 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,24 @@ jobs:
5858
name: cibw-sdist
5959
path: dist/*.tar.gz
6060

61-
# upload_pypi:
62-
# needs: [build_wheels, build_sdist]
63-
# runs-on: ubuntu-latest
64-
# environment: pypi
65-
# permissions:
66-
# id-token: write
67-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
68-
# steps:
69-
# - uses: actions/download-artifact@v5
70-
# with:
71-
# # unpacks all CIBW artifacts into dist/
72-
# pattern: cibw-*
73-
# path: dist
74-
# merge-multiple: true
61+
upload_pypi:
62+
needs: [build_wheels, build_sdist]
63+
runs-on: ubuntu-latest
64+
environment: pypi
65+
permissions:
66+
id-token: write
67+
steps:
68+
- uses: actions/download-artifact@v5
69+
with:
70+
# unpacks all CIBW artifacts into dist/
71+
pattern: cibw-*
72+
path: dist
73+
merge-multiple: true
7574

76-
# - uses: pypa/gh-action-pypi-publish@release/v1
77-
# # To test uploads to TestPyPI, uncomment the following:
78-
# with:
79-
# repository-url: https://test.pypi.org/legacy/
75+
- uses: pypa/gh-action-pypi-publish@release/v1
76+
# To test uploads to TestPyPI, uncomment the following:
77+
# with:
78+
# repository-url: https://test.pypi.org/legacy/
8079

8180

8281
github-release:
@@ -94,7 +93,7 @@ jobs:
9493
- name: Download all the dists
9594
uses: actions/download-artifact@v6
9695
with:
97-
name: cibw-sdist
96+
pattern: cibw-*
9897
path: dist/
9998
merge-multiple: true
10099
- name: Sign the dists with Sigstore🔏
@@ -103,14 +102,16 @@ jobs:
103102
inputs: >-
104103
./dist/*.tar.gz
105104
./dist/*.whl
106-
- name: Create GitHub Release
107-
env:
108-
GITHUB_TOKEN: ${{ github.token }}
109-
run: >-
110-
gh release create
111-
"$GITHUB_REF_NAME"
112-
--repo "$GITHUB_REPOSITORY"
113-
--generate-notes --draft
105+
# this is broken for now, need to crreate the release first
106+
# see https://github.com/orgs/community/discussions/180369
107+
# - name: Create GitHub Release
108+
# env:
109+
# GITHUB_TOKEN: ${{ github.token }}
110+
# run: >-
111+
# gh release create
112+
# "$GITHUB_REF_NAME"
113+
# --repo "$GITHUB_REPOSITORY"
114+
# --generate-notes --draft
114115
- name: Upload artifact signatures to GitHub Release
115116
env:
116117
GITHUB_TOKEN: ${{ github.token }}

README.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CGRTools
22
========
33

4+
**Fork Notice: This is a maintained fork of the original CGRtools project with updates for modern Python versions (3.10-3.14) and automated wheel builds for Linux (x86_64, ARM64) and macOS (Intel, Apple Silicon).
5+
It fixes the issue with newer Cython versions, makes package PEP517-complient and provides precompiled wheels for easier installation.**
6+
7+
**[WIP] to fix your broken builds replace `cgrtools` with `cgrtools-plus` in your dependencies.**
48

59
.. image:: https://zenodo.org/badge/14690494.svg
610
:target: https://zenodo.org/badge/latestdoi/14690494
@@ -78,20 +82,18 @@ General part
7882

7983
* **stable version available through PyPI**::
8084

81-
pip install CGRTools
85+
pip install cgrtools-plus
8286

8387
* Install CGRtools with MRV files parsing support::
8488

85-
pip install CGRTools[mrv]
86-
89+
pip install cgrtools-plus[mrv]
8790
* Install CGRtools with structures `clean2d` support (Note: install NodeJS into system, see `details <https://github.com/sqreen/PyMiniRacer>`_)::
8891

89-
pip install CGRtools[clean2d]
92+
pip install cgrtools-plus[clean2d]
9093

9194
* Install CGRtools with optimized XYZ parser::
9295

93-
pip install CGRtools[jit]
94-
96+
pip install cgrtools-plus[jit]
9597

9698
**If you still have questions, please open issue within github.**
9799

@@ -100,7 +102,7 @@ PACKAGING
100102

101103
For wheel generation just type next command in source root::
102104

103-
python setup.py bdist_wheel
105+
python -m build
104106

105107
COPYRIGHT
106108
=========

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ requires = ["setuptools>=64", "wheel", "cython>=0.29,<3.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "CGRtools"
6+
name = "cgrtools-plus"
77
version = "4.1.35"
8-
description = "Tools for processing of reactions based on Condensed Graph of Reaction (CGR) approach"
8+
description = "Tools for processing of reactions based on Condensed Graph of Reaction (CGR) approach - Enhanced fork with modern Python support"
99
readme = "README.rst"
1010
requires-python = ">=3.8"
1111
license = "LGPL-3.0-or-later"
@@ -15,9 +15,9 @@ authors = [
1515
{name = "Valentina Afonina"}
1616
]
1717
maintainers = [
18-
{name = "Dr. Timur Madzhidov", email = "tmadzhidov@gmail.com"}
18+
{name = "Anton Siomchen", email = "anton.siomchen+cgrtools@gmail.com"}
1919
]
20-
keywords = ["chemistry", "chemoinformatics", "CGR", "reaction", "molecule"]
20+
keywords = ["chemistry", "chemoinformatics", "reaction", "molecule"]
2121
classifiers = [
2222
"Environment :: Plugins",
2323
"Intended Audience :: Science/Research",
@@ -54,10 +54,10 @@ dev = [
5454
]
5555

5656
[project.urls]
57-
Homepage = "https://github.com/cimm-kzn/CGRtools"
57+
Homepage = "https://github.com/asiomchen/CGRtools"
5858
Documentation = "https://cgrtools.readthedocs.io"
59-
Repository = "https://github.com/cimm-kzn/CGRtools"
60-
Issues = "https://github.com/cimm-kzn/CGRtools/issues"
59+
Repository = "https://github.com/asiomchen/CGRtools"
60+
Issues = "https://github.com/asiomchen/CGRtools/issues"
6161

6262
[tool.setuptools]
6363
zip-safe = false
@@ -71,5 +71,5 @@ include = ["CGRtools*"]
7171

7272
[tool.cibuildwheel]
7373
build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
74-
skip = ["*-musllinux_*", "pp*"]
74+
skip = ["*-musllinux_*"]
7575
build-frontend = "build"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def get_data_files():
7070
so_path = Path('INCHI/libinchi.so')
7171
if so_path.exists():
7272
data_files.append(('lib', ['INCHI/libinchi.so']))
73+
#TODO for MacOS InChI library should be built from source
7374

7475
return data_files
7576

0 commit comments

Comments
 (0)