Skip to content

Commit deac64e

Browse files
committed
Update INSTALL.md: use uv instead of pip/sudo, modern build/publish instructions
1 parent 81da366 commit deac64e

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎PyNEC/INSTALL.md‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
## Building from Source
22

3-
aptitude install swig3.0
3+
apt install swig
44
git submodule init
55
git submodule update --remote
66
cd PyNEC
77
./build.sh
8-
sudo python setup.py install
8+
uv pip install dist/*.whl
99

1010
## Testing
1111

12-
pip install pytest
12+
uv pip install pytest
1313
python -m pytest tests/ -v
1414

1515
## Uploading the package to pypi
1616

17-
Source & Binary Distribution
18-
python3 setup.py sdist
19-
python3 setup.py bdist_wheel
20-
21-
python3 setup.py upload
17+
uv build
18+
uv publish

‎necpp/INSTALL.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ To update the submodule to the latest necpp
2929

3030
### Converting from MarkDown
3131

32-
sudo aptitude install pandoc swig
33-
32+
apt install pandoc swig
33+
3434
pandoc --to=rst README.md > README.txt
3535

3636
### Testing
3737

3838
Build and install the module:
3939

4040
./build.sh
41+
uv pip install dist/*.whl
4142

4243
Run the tests:
4344

44-
pip install pytest
45+
uv pip install pytest
4546
python -m pytest tests/ -v
4647

4748
### Uploading to PyPI.
4849

49-
http://peterdowns.com/posts/first-time-with-pypi.html
50-
51-
python setup.py sdist upload -r pypitest
50+
uv build
51+
uv publish

0 commit comments

Comments
 (0)