Skip to content

Commit c833c80

Browse files
committed
Update pyproject.toml and publishing guide
1 parent ec9d5f6 commit c833c80

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

publish_new_release.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1+
# 0. (If needed) Install setuptools, wheel, and twine.
2+
13
# 1. Merge a working branch to the main branch first.
24

35
# 2. Clone the main branch in a new clean directory.
46

5-
# 3. (If needed) Install setuptools and wheel.
6-
7-
# 4. Create wheel and source files.
8-
python2 setup.py sdist bdist_wheel (deprecated)
9-
python3 setup.py sdist bdist_wheel
10-
11-
# 5. (If needed) Install twine.
7+
# 3. Create wheel and source files.
8+
python3 -m build
129

13-
# 6. Upload wheel and source files to the PyPI repository.
14-
twine upload dist/*
10+
# 4. Upload wheel and source files to the PyPI repository.
11+
python3 -m twine upload dist/*
1512

16-
# 7. (Optional) Upload to Anaconda repository.
13+
# 5. (Optional) Upload to Anaconda repository.
1714
~/anaconda3/bin/anaconda upload dist/*.tar.gz
1815
# or
1916
anaconda upload dist/*.tar.gz
2017

21-
# 8. Publish a new release at GitHub.
18+
# 6. Publish a new release at GitHub.
2219
## Create a tag at GitHub.
2320
## Make sure that it is created in the main branch.
2421
## Assign the tag to a new release.
2522
## The name convention of tags is "v0.5.5".
2623
## Upload the wheel and source files, which can be downloaded from the PyPI repository, together.
2724

28-
# 9. Check out Zenodo or upload the release on Zenodo.
25+
# 7. Check out Zenodo or upload the release on Zenodo.
2926
## To upload the release, download a ZIP file from a particular tag.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Issues = "https://github.com/jungtaekkim/bayeso-benchmarks/issues"
3939
dev = [
4040
"pytest",
4141
"wheel",
42+
"build",
4243
"twine",
4344
"scipy",
4445
"matplotlib",

0 commit comments

Comments
 (0)