Skip to content

Commit b8d5bea

Browse files
committed
update pyproject.toml
1 parent 1a1e115 commit b8d5bea

File tree

4 files changed

+109
-63
lines changed

4 files changed

+109
-63
lines changed

.github/workflows/docs.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Build & Deploy Sphinx Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# 1. Checkout the repo
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
# 2. Set up Python
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
25+
26+
# 3. Install dependencies
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
# pip install numpy matplotlib pandas scipy sphinx_rtd_theme rst2pdf sphinx pytest irelease sphinxcontrib-fulltoc tabulate
31+
pip install -r requirements-dev.txt || true
32+
pip install -r requirements.txt || true
33+
34+
# 4. Build HTML docs
35+
- name: Build HTML
36+
working-directory: ./docs
37+
run: |
38+
make clean
39+
make html
40+
41+
# 5. Verify build and copy files
42+
- name: Verify build and copy files
43+
run: |
44+
# Debug: Show current working directory
45+
echo "=== Current working directory ==="
46+
pwd
47+
echo "=== Current directory contents ==="
48+
ls -la
49+
50+
# Debug: List what was created
51+
echo "=== Contents of docs/pages/html ==="
52+
ls -la ./docs/pages/html/ || echo "docs/pages/html/ does not exist"
53+
54+
# Create docs/pages folder if it doesn't exist
55+
echo "=== Creating docs/pages directory ==="
56+
mkdir -p ./docs/pages
57+
echo "=== docs/pages directory created ==="
58+
ls -la ./docs/pages/ || echo "docs/pages/ still does not exist"
59+
60+
# Copy built HTML files to docs/pages folder
61+
echo "=== Copying files ==="
62+
cp -rv ./docs/pages/html/* ./docs/pages/ || echo "Copy failed with exit code $?"
63+
64+
# Verify copy worked
65+
echo "=== Contents of docs/pages after copy ==="
66+
ls -la ./docs/pages/ || echo "docs/pages/ does not exist"
67+
68+
# Show file sizes to verify copy
69+
echo "=== File sizes in docs/pages ==="
70+
du -sh ./docs/pages/ || echo "Cannot check docs/pages size"
71+
72+
# 6. Deploy to docs/pages/ folder on main branch
73+
- name: Deploy to docs/pages/ folder
74+
run: |
75+
# Configure git
76+
git config --global user.name "github-actions"
77+
git config --global user.email "actions@github.com"
78+
79+
# Debug: Show what we're about to commit
80+
echo "=== Git status ==="
81+
git status
82+
83+
# Add and commit changes
84+
git add ./docs/pages/
85+
git commit -m "Update Sphinx documentation" || echo "No changes"
86+
git push origin master
87+

make_clean.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

pyproject.toml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,31 @@ authors = [{ name = "Erdogan Taskesen", email = "erdogant@gmail.com" },]
99
description = "pca: A Python Package for Principal Component Analysis."
1010
readme = "README.md"
1111
requires-python = ">=3"
12-
license = { file = "LICENSE" }
13-
keywords = ["Python", "pca", "outliers", "biplot", "explained-variance", "hotelling-t2", "3d-plot"]
12+
license = "MIT"
13+
keywords = [
14+
"Python",
15+
"PCA",
16+
"principal component analysis",
17+
"dimensionality reduction",
18+
"outlier detection",
19+
"biplot",
20+
"explained variance",
21+
"hotelling t2",
22+
"3d plot",
23+
"data visualization",
24+
"feature extraction",
25+
"eigenvalues",
26+
"eigenvectors"
27+
]
1428
classifiers = [
1529
"Programming Language :: Python :: 3",
16-
"License :: OSI Approved :: MIT License",
1730
"Operating System :: OS Independent",
31+
"Intended Audience :: Education",
32+
"Intended Audience :: Science/Research",
33+
"Operating System :: Unix",
34+
"Operating System :: Microsoft :: Windows",
35+
"Operating System :: MacOS",
36+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1837
]
1938
dependencies = [
2039
'datazets',

setup.py.old

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)