Skip to content

Commit ba91e6a

Browse files
author
Santosh Philip
committed
Working on issue #453
new file: .github/workflows/tests.yml new file: README.md renamed: .github/workflows/install.sh -> delete_oldworkflows/install.sh renamed: .github/workflows/main.yml -> delete_oldworkflows/main.yml modified: eppy/notes.txt modified: eppy/runningnotes.txt new file: main.py new file: pyproject.toml modified: requirements_dev.txt new file: uv.lock
1 parent 3b3a79b commit ba91e6a

File tree

10 files changed

+3173
-2
lines changed

10 files changed

+3173
-2
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
# [main, master, develop]
7+
pull_request:
8+
branches:
9+
# [main, master, develop]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.9", ] # ← adjust to what you support
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4 # v4+ is faster & more reliable in 2025
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v3 # use latest stable version (v3 is current in late 2025 / early 2026)
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
run: uv python install 3.9
27+
28+
- name: Install dependencies
29+
run: uv sync --frozen --all-extras --dev
30+
# ────────────────────────────────────────────────
31+
# --frozen = respect uv.lock exactly (CI safety)
32+
# --all-extras = install optional-dependencies e.g. [test], [dev], [all]
33+
# --dev = install uv tool dev-dependencies (PEP 735 style)
34+
35+
- name: Run tests
36+
run: uv run pytest
37+
# You can also be more explicit: uv run pytest tests/ --cov --cov-report=xml

README.md

Whitespace-only changes.

eppy/notes.txt

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,93 @@
1+
==============
2+
Notes for eppy
3+
==============
4+
5+
6+
7+
2026-01-20
8+
----------
9+
10+
Notes on moving to uv from (and running with uv) https://x.com/i/grok?conversation=2002198771770290596
11+
12+
13+
Moving to uv
14+
============
15+
16+
uv init
17+
uv add -r requirements.txt
18+
uv add --dev -r requirements_dev.txt
19+
uv sync
20+
21+
Running on uv
22+
=============
23+
24+
uv run python your_script.py
25+
uv run pytest # If you have tests
26+
uv run ruff check . # If you added ruff as a dev tool
27+
28+
29+
Updating on uv
30+
==============
31+
32+
uv lock --upgrade # Update all packages to latest compatible versions
33+
uv sync # Apply the updates to the environment
34+
35+
uv add --dev ruff mypy pytest
36+
uv add requests
37+
38+
uv run pip install ipython # for internal dev
39+
# no need to publish in .toml
40+
41+
bumping a version and pushing branch and pushing tags
42+
=====================================================
43+
44+
::
45+
46+
uv version --bump patch/minor/major
47+
48+
git commit -m "Bump version to $(uv version --short)"
49+
git tag "v$(uv version --short)"
50+
git push origin <branch>
51+
git push origin tag "v$(uv version --short)"
52+
53+
Now publish
54+
===========
55+
56+
::
57+
58+
uv build
59+
uv publish --token # token comes here
60+
61+
62+
63+
Lists of files changing when uv is used
64+
=======================================
65+
66+
files changed::
67+
68+
.github/workflows/tests.yml # for github actions
69+
eppy/__init__.py # version is got from pyproject.toml
70+
docs/requirements.txt # needed for readthedocs
71+
pyproject.toml # uv likes having everything here
72+
73+
Once uv is set upthese files can be removed::
74+
75+
requirements.txt
76+
requirements_dev.txt
77+
setup.cfg
78+
setup.py
79+
80+
81+
Webhooks from github to readthdocs
82+
==================================
83+
84+
- login to readthedocs using github
85+
- copy webhooks and secret from readthedocs to github
86+
87+
88+
89+
90+
191
2021-09-07
292
----------
393

eppy/runningnotes.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ Running notes for eppy
22
======================
33

44

5+
2026-01-20
6+
----------
7+
8+
- from /eppy/.github/workflows
9+
- mv install.sh ../../delete_oldworkflows/
10+
- mv main.yml ../../delete_oldworkflows
11+
12+
These files in delete_oldworkflows may have info on how to install E+ and run .run functions
513

614
2024-10-19
715
----------

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
print("Hello from eppy!")
3+
4+
5+
if __name__ == "__main__":
6+
main()

pyproject.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[project]
2+
name = "eppy"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.9"
7+
dependencies = [
8+
"beautifulsoup4>=4.14.3",
9+
"decorator>=5.2.1",
10+
"future>=1.0.0",
11+
"lxml>=6.0.2",
12+
"munch>=4.0.0",
13+
"nbsphinx>=0.9.8",
14+
"pydot>=4.0.1",
15+
"pyparsing>=3.0.9",
16+
"pytest>=8.4.2",
17+
"six>=1.17.0",
18+
"soupsieve>=2.8.3",
19+
"tinynumpy>=1.2.1",
20+
]
21+
22+
[dependency-groups]
23+
dev = [
24+
"black>=25.11.0",
25+
"bump2version>=1.0.1",
26+
"coverage>=7.10.7",
27+
"flake8>=7.3.0",
28+
"nbsphinx>=0.9.8",
29+
"pip>=25.3",
30+
"pytest>=8.4.2",
31+
"sphinx>=7.4.7",
32+
"tox>=4.30.3",
33+
"twine>=6.2.0",
34+
"watchdog>=6.0.0",
35+
"wheel>=0.45.1",
36+
]

requirements_dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ coverage
88
Sphinx
99
twine
1010

11-
pytest==7.1.3
12-
pytest-runner==6.0.0
11+
pytest
12+
# pytest-runner==6.0.0
1313
black
1414
nbsphinx
1515

0 commit comments

Comments
 (0)