Skip to content

Commit ec2566c

Browse files
authored
add project.urls (#403)
* add `project.urls` * use hatc * update CI * update license info * fix `checkpoints.py` being ignored * add `.python-version`
1 parent 2033df5 commit ec2566c

File tree

5 files changed

+160
-175
lines changed

5 files changed

+160
-175
lines changed

.github/workflows/pytest.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
1615
- name: Install uv
1716
uses: astral-sh/setup-uv@v5
18-
19-
- name: "Set up Python"
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version-file: "pyproject.toml"
23-
2417
- name: Install the project
2518
run: uv sync --all-extras --no-extra cuda --dev
2619

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ target/
9191
profile_default/
9292
ipython_config.py
9393

94-
# pyenv
95-
.python-version
96-
9794
# pipenv
9895
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
9996
# However, in case of collaboration, if having platform-specific dependencies or dependencies
@@ -155,6 +152,9 @@ config.yaml
155152
parameters.yaml
156153
md_config.yaml
157154

155+
# Unignore checkpoints.py
156+
!checkpoints.py
157+
158158
# data
159159
*.extxyz
160160
*.traj

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

pyproject.toml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ authors = [
88
{ name = "Moritz René Schäfer", email = "[email protected]" },
99
{ name = "Nico Segreto", email = "[email protected]" },
1010
]
11+
license = "Apache-2.0"
1112

1213
requires-python = ">=3.10"
1314
dependencies = [
@@ -29,9 +30,6 @@ dependencies = [
2930
"znh5md>=0.4.2",
3031
]
3132

32-
33-
34-
3533
[project.optional-dependencies]
3634
cuda = ["jax[cuda]"]
3735
mlflow = [
@@ -65,24 +63,18 @@ lint = [
6563
"ruff>=0.9.1",
6664
]
6765

68-
69-
7066
[project.scripts]
7167
apax = 'apax.cli.apax_app:app'
7268

69+
[project.urls]
70+
Repository = "https://github.com/apax-hub/apax"
71+
Releases = "https://github.com/apax-hub/apax/releases"
72+
Discord = "https://discord.gg/7ncfwhsnm4"
73+
Documentation = "https://apax.readthedocs.io/"
7374

7475
[build-system]
75-
requires = ["setuptools"]
76-
build-backend = "setuptools.build_meta"
77-
78-
[tool.setuptools]
79-
license-files = []
80-
81-
# [build-system]
82-
# requires = ["hatchling==1.26.3"]
83-
# build-backend = "hatchling.build"
84-
85-
76+
requires = ["hatchling"]
77+
build-backend = "hatchling.build"
8678

8779
[tool.ruff]
8880
line-length = 90

0 commit comments

Comments
 (0)