Skip to content

Commit 2a9517a

Browse files
authored
v2023.7.20 (#3171)
* v2023.7.20 * update docs * update changelog * remove legacy instructions from ADMIN.md
1 parent 9a98f4c commit 2a9517a

File tree

67 files changed

+1397
-1783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1397
-1783
lines changed

ADMIN.md

Lines changed: 10 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ The general procedure for releasing `pymatgen` comprises the following
99
steps:
1010

1111
1. Make sure all CI checks are green. We don't want to release known bugs.
12-
2. Update and edit changelog.
13-
3. Release PyPI versions + doc.
14-
4. Release `conda` versions.
15-
5. Release Dash documentation.
12+
1. Update changelog.
13+
1. Run `invoke make-doc` to update the HTML docs.
14+
1. Tag the latest commit with `git tag v<yyyy.mm.dd>`.
15+
1. Make a GitHub release with auto-generated release notes.
16+
1. Make sure the release action runs that publishes the new version to PyPI and conda-forge runs to completion.
1617

1718
## Initial setup
1819

@@ -23,72 +24,29 @@ You will also need `sphinx` and `doc2dash`.
2324
pip install --upgrade invoke sphinx doc2dash
2425
```
2526

26-
Add your PyPI username and password and GITHUB_RELEASE_TOKEN into your
27-
environment:
28-
29-
```sh
30-
export TWINE_USERNAME=PYPIUSERNAME
31-
export TWINE_PASSWORD=PYPIPASSWORD
32-
export GITHUB_RELEASES_TOKEN=TOKEN_YOU_GET_FROM_GITHUB
33-
```
34-
35-
You may want to add these to your .bash_profile to avoid having to type
36-
these each time.
37-
38-
### Machine-specific issues
39-
40-
The above instructions are general, but some known issues are machine-specific:
41-
42-
- Installing lxml via pip required <span
43-
class="title-ref">STATIC_DEPS=true pip install lxml</span> on macOS
44-
10.13.
45-
- It can be useful to <span class="title-ref">pip install --upgrade pip
46-
twine setuptools</span> (this may be necessary if there are
47-
authentication errors when connecting to PyPI).
48-
- You may have to <span class="title-ref">brew install hdf5
49-
netcdf</span> or similar to be able to pip install the optional
50-
requirement <span class="title-ref">netCDF4</span>.
51-
5227
## Doing the release
5328

54-
Ensure appropriate environment variables are set including <span
55-
class="title-ref">DISCOURSE_API_USERNAME</span>, <span
56-
class="title-ref">DISCOURSE_API_KEY</span> and <span
57-
class="title-ref">GITHUB_RELEASES_TOKEN</span>.
58-
59-
First update the change log. The autogenerated change log is simply a
60-
list of commit messages since the last version. Make sure to edit the
61-
log for brevity and to attribute significant features to appropriate
62-
developers:
29+
First update the change log. The autogenerated change log is simply a list of commit messages since the last version. Make sure to edit the log for brevity and to attribute significant features to appropriate developers:
6330

6431
```sh
6532
invoke update-changelog
6633
```
6734

68-
Then, do the release with the following sequence of commands (you can
69-
put them in a bash script in your PATH somewhere):
35+
Then, do the release with the following sequence of commands (you can put them in a bash script in your PATH somewhere):
7036

7137
```sh
7238
invoke release --notest --nodoc
7339
invoke update-doc
7440
python setup.py develop
7541
```
7642

77-
Double check that the releases are properly done on Pypi. If you are
78-
releasing on a Mac, you should see a pymatgen.version.tar.gz and two
79-
wheels (Py37 and P). There will be a py37 wheel for Windows that is
80-
generated by Appveyor.
43+
Double check that the releases are properly done on Pypi. If you are releasing on a Mac, you should see a pymatgen.version.tar.gz and two wheels (Py37 and P). There will be a py37 wheel for Windows that is generated by Appveyor.
8144

8245
## Materials.sh
8346

84-
Fork and clone the
85-
[materials.sh](https://github.com/materialsvirtuallab/materials.sh).
86-
This repo contains the `conda` skeletons to build the `conda` versions for
87-
various matsci codes on the Anaconda [matsci
88-
channel](https://anaconda.org/matsci).
47+
Fork and clone the [materials.sh](https://github.com/materialsvirtuallab/materials.sh). This repo contains the `conda` skeletons to build the `conda` versions for various matsci codes on the Anaconda [matsci channel](https://anaconda.org/matsci).
8948

90-
The first time this is run, you may need to <span class="title-ref">pip
91-
install beautifulsoup4</span>.
49+
The first time this is run, you may need to `pip install beautifulsoup4`.
9250

9351
If you doing this for the first time, make sure conda-build and
9452
anaconda-client are installed:
@@ -114,16 +72,3 @@ versions.
11472

11573
Check that the [matsci channel](https://anaconda.org/matsci) versions
11674
are properly updated.
117-
118-
## Dash docs
119-
120-
Fork and clone the [Dash User Contributions
121-
repo](https://github.com/Kapeli/Dash-User-Contributions).
122-
123-
Generate the offline Dash doc using:
124-
125-
```sh
126-
invoke contribute-dash
127-
```
128-
129-
Create a pull request and submit.

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Change log
22
==========
33

4+
- Unreadable string concat ops to f-string by @janosh in https://github.com/materialsproject/pymatgen/pull/3162
5+
- Revert `mp-api<0.34.0` pin by @janosh in https://github.com/materialsproject/pymatgen/pull/3165
6+
- Fix CI error `"pdentries_test.csv"` not found by @janosh in https://github.com/materialsproject/pymatgen/pull/3168
7+
- Fix issues with labels by @stefsmeets in https://github.com/materialsproject/pymatgen/pull/3169
8+
9+
**Full Changelog**: https://github.com/materialsproject/pymatgen/compare/v2023.7.17...v2023.7.20
10+
411
v2023.7.17
512
----------
613
- Cython 3.0 support.

docs/_static/css/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/addons.html

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/change_log.html

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/compatibility.html

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/contributing.html

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)