You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f06afd5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+30-3Lines changed: 30 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,14 @@ Thank you for considering contributing to **PyAutoPlot**! Contributions, whether
11
11
Ensure you have Python 3.6+ installed. You should also install compatible versions of the necessary dependencies for the project.
12
12
13
13
3.**Run Tests**
14
-
Before making changes, run tests to confirm that everything works.
14
+
Install the package and run the headless regression suite:
15
15
16
-
> [!TIP]
17
-
> We sometimes include testing scripts in our projects for easy testing.
16
+
```bash
17
+
python -m pip install .
18
+
python -m unittest discover -s tests -v
19
+
```
20
+
21
+
`python test.py` is a separate smoke example using the included energy dataset.
18
22
19
23
## How to Contribute
20
24
@@ -33,6 +37,29 @@ Thank you for considering contributing to **PyAutoPlot**! Contributions, whether
33
37
- Submit a pull request with a detailed explanation of what you've changed or added.
34
38
- Ensure your PR passes all automated tests and adheres to the contribution guidelines.
35
39
40
+
## Publishing a release
41
+
42
+
In the [`pyautoplot` project's publishing settings](https://pypi.org/manage/project/pyautoplot/settings/publishing/), add a **GitHub** Trusted Publisher with these values:
43
+
44
+
| PyPI field | Value |
45
+
| --- | --- |
46
+
| Owner |`Infinitode`|
47
+
| Repository name |`PyAutoPlot`|
48
+
| Workflow name |`build_and_publish.yml`|
49
+
| Environment name | Leave blank |
50
+
51
+
The workflow does not use a GitHub environment or a PyPI API token. Because there is no environment approval step, limit GitHub write access to trusted maintainers and restrict who can create or modify release tags.
52
+
53
+
1. Update the version in `setup.py` and the release notes in `README.md`. Merge the release changes into `main` after CI passes.
54
+
2. On the merged release commit, create and push a matching numeric tag (no `v` prefix). For 1.1.1:
55
+
56
+
```bash
57
+
git tag 1.1.1
58
+
git push origin refs/tags/1.1.1
59
+
```
60
+
61
+
3. The **Publish to PyPI** workflow checks the tag against the built version and runs the regression suite against the wheel before publishing the wheel and source distribution. After publishing, follow the link in the workflow summary or the README's **PyPI provenance** badge to the **Security** tab on PyPI. Check that both files have a PyPI Publish attestation. Prior releases without attestations will not gain them retroactively.
62
+
36
63
## Community Guidelines
37
64
38
65
To maintain a positive and collaborative community, we ask that all contributors adhere to the following principles:
PyAutoPlot is an open-source Python library designed to make dataset analysis much easier by generating helpful detailed plots using `matplotlib`. It automatically generates appropriate plots based on the dataset you feed it.
9
10
11
+
### Changes in version 1.1.1:
12
+
- Fixed date detection and reports for sparse or mixed-format timestamps. Time plots use sorted timestamps as the x-axis for numeric measurements.
13
+
- Fixed analysis and plotting for empty columns and header-only CSVs, and made JSON exports handle non-finite numbers.
14
+
- Fixed partial themes and `dpi`/`bins` handling. Plots and reports no longer close figures they didn't create, and `show=False` supports file-only plotting.
15
+
- Added regression tests and prepared releases for PyPI Trusted Publishing with per-file attestations. The provenance badge links to the latest release's provenance status on PyPI.
16
+
10
17
### Changes in version 1.1.0:
11
18
1.**New Visualizations**: Added Correlation Heatmaps and Violin Plots.
12
19
2.**Data Cleanup**: New `cleanup()` method allows filling or dropping missing values with multiple strategies.
@@ -89,10 +96,15 @@ from pyautoplot import AutoPlot
Date-like text columns are converted only if all their non-missing values parse. Offset-aware timestamps are normalized to UTC. When numeric measurements are present, line charts use the sorted timestamps as the x-axis; the area chart uses the first plottable date column and switches to an unstacked chart if a series has both positive and negative values.
107
+
96
108
> [!NOTE]
97
109
> PyAutoPlot may not work well with certain datasets. If you find any issues please open an issue.
0 commit comments