Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release #2

Merged
merged 5 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PyPI publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: package
path: dist/

publish:
name: Upload release to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/syntemp
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: package
path: dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ test.py
rebalance_test.py
split_comparison.py
fp.py
*.npz
*.json

*.json
split_benchmark_process.py
228 changes: 0 additions & 228 deletions Data/CP/cp_test.txt

This file was deleted.

Binary file removed Data/CP/xgb.model
Binary file not shown.
Binary file removed Data/Split/split_benchmark.pdf
Binary file not shown.
Binary file removed Data/Split/split_benchmark.png
Binary file not shown.
Binary file added Data/data_embedding.npz
Binary file not shown.
Empty file removed Docs/Analysis/__init__.py
Empty file.
26 changes: 0 additions & 26 deletions Docs/Analysis/data_reduction.py

This file was deleted.

27 changes: 0 additions & 27 deletions Docs/Analysis/partition_benchmark.py

This file was deleted.

56 changes: 0 additions & 56 deletions Docs/Analysis/test_cp.py

This file was deleted.

Empty file removed Test/Uncertainty/__init__.py
Empty file.
78 changes: 0 additions & 78 deletions Test/Uncertainty/test_conformal_predictor.py

This file was deleted.

32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "synutils"
version = "0.0.1"
authors = [
{name="Tieu Long Phan", email="[email protected]"}
]
description = "Graph-based reaction templates extraction"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"scikit-learn==1.5.1",
"xgboost==2.1.1",
"pandas>=1.5.3",
"rdkit>=2024.3.3",
"networkx==3.3",
"seaborn==0.13.2",
"drfp==0.3.6",
]

[project.urls]
homepage = "https://github.com/TieuLongPhan/SynUtils"
source = "https://github.com/TieuLongPhan/SynUtils"
issues = "https://github.com/TieuLongPhan/SynUtils/issues"
Empty file removed synutils/Analysis/__init__.py
Empty file.
Loading
Loading