Skip to content

Update installation instructions with uv#14

Merged
AsymmetryChou merged 3 commits into
deepmodeling:mainfrom
AsymmetryChou:uv_install
May 25, 2026
Merged

Update installation instructions with uv#14
AsymmetryChou merged 3 commits into
deepmodeling:mainfrom
AsymmetryChou:uv_install

Conversation

@AsymmetryChou
Copy link
Copy Markdown
Collaborator

This pull request updates the installation instructions for DPNEGF to use the UV package manager and clarifies the dependency requirements. It also removes the dptb dependency from the pyproject.toml file, ensuring that DeePTB is installed and managed within its own environment.

Installation and Dependency Management:

  • Updated the README.md to provide step-by-step instructions for installing DPNEGF inside the DeePTB environment using the UV package manager, including details for different operating systems and explicit Python version requirements.
  • Removed the dptb dependency from the pyproject.toml file for uv installation requirements.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates DPNEGF’s installation documentation to prefer the uv package manager and to position DPNEGF as something installed into (and run from) a DeePTB-managed virtual environment. It also removes the dptb runtime dependency from pyproject.toml.

Changes:

  • Rewrite README.md installation steps to use uv, including OS-specific UV install commands and a DeePTB-first workflow.
  • Remove the dptb dependency from pyproject.toml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
README.md Replaces pip-based install instructions with a uv + DeePTB environment workflow and updated run instructions.
pyproject.toml Removes the declared dptb dependency from Poetry dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
Comment on lines 10 to 13
[tool.poetry.dependencies]
dptb = ">=2.1.0"
python = ">=3.9, <=3.12.9"
pytest = ">=7.2.0"
pytest-order = "1.2.0"
Comment thread README.md
Comment on lines +43 to +48
- **Step 3: Add DPNEGF to the DeePTB environment**
```bash
# Still inside the DeePTB directory
uv add /path/to/dpnegf
```
Replace `/path/to/dpnegf` with the actual path to your cloned DPNEGF repository.
Comment thread README.md
Comment on lines +56 to +57
source .venv/bin/activate # On Unix/macOS
.venv\Scripts\activate # On Windows
Comment thread README.md
Comment on lines +43 to +48
- **Step 3: Add DPNEGF to the DeePTB environment**
```bash
# Still inside the DeePTB directory
uv add /path/to/dpnegf
```
Replace `/path/to/dpnegf` with the actual path to your cloned DPNEGF repository.
@AsymmetryChou AsymmetryChou merged commit aa7965f into deepmodeling:main May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants