Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump release v3 #347

Merged
merged 5 commits into from
Dec 2, 2024
Merged

Bump release v3 #347

merged 5 commits into from
Dec 2, 2024

Conversation

AntObi
Copy link
Collaborator

@AntObi AntObi commented Dec 2, 2024

Bump version number

Description

This PR bumps the version number to v3

Type of change

  • This change requires a documentation update

How Has This Been Tested?

N/A

Test Configuration:

  • Python version: 3.10
  • Operating System: macOS

Reviewers

N/A

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced a workflow to automatically check the validity of Markdown links within the repository.
    • Added a new module utils.py containing utility functions.
  • Documentation Updates

    • Enhanced the CONTRIBUTING.md file with clearer installation instructions and pre-commit hook usage.
    • Updated links in the README.md to direct users to the documentation site for examples and tutorials.
    • Updated version information in the documentation and project files to reflect a significant version increment to 3.0.
  • Version Updates

    • Incremented project version from 2.8 to 3.0 across multiple files.

Copy link
Contributor

coderabbitai bot commented Dec 2, 2024

Walkthrough

A new GitHub Actions workflow named check-live-links.yml has been added to validate Markdown links in the repository. It triggers on pushes to the master branch and a scheduled job every Monday. The CONTRIBUTING.md file has been updated to clarify development requirements and pre-commit hooks. The README.md has been revised to improve link accuracy and includes a new module reference. Documentation versioning has been updated in docs/conf.py, pyproject.toml, and setup.py, reflecting a major version increment from 2.8 to 3.0.

Changes

File Change Summary
.github/workflows/check-live-links.yml New workflow added to check Markdown link validity on push and schedule.
CONTRIBUTING.md Updated installation command for Python packages and clarified pre-commit hooks usage.
README.md Updated links to documentation site and added new module reference for utils.py.
docs/conf.py Version updated from 2.8 to 3.0 and release updated from 2.8.0 to 3.0.0.
pyproject.toml Version updated from 2.8 to 3.0 in the project section.
setup.py Version updated from 2.8 to 3.0 and date updated from September 26 2024 to December 2 2024.

Possibly related PRs

Suggested labels

enhancement, docs, python, github_actions

🐰 Hopping through the code, what a sight to see,
Links checked and updated, as happy as can be!
With docs in fine shape and versions anew,
Contributing's clearer, for me and for you!
So let’s celebrate this leap, with joy and delight,
For every little change makes our project shine bright! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (3)
CONTRIBUTING.md (1)

38-38: LGTM! Consider adding a brief explanation of the installation flags.

The updated installation command follows modern Python packaging practices. Consider adding a brief explanation of the -e flag and the optional dependencies [dev,docs] to help new contributors understand the command.

-pip install -e ".[dev,docs]"
+pip install -e ".[dev,docs]"  # Install in editable mode (-e) with development and documentation dependencies
README.md (1)

80-80: Document the purpose and contents of utils.py.

While the new module has been added to the list, consider expanding its description to highlight key utility functions and their purposes.

-  - **utils.py** A collection of utility functions used throughout the codebase.
+  - **utils.py** A collection of utility functions used throughout the codebase, including:
+    - Helper functions for data manipulation
+    - Common mathematical operations
+    - Shared constants and configurations
docs/conf.py (1)

Mock modules list needs updating to align with current dependencies

The mock modules list in docs/conf.py requires several adjustments based on the current project dependencies:

  • Remove obsolete entries:

    • mp_api and mp_api.client are not project dependencies
    • emmet is not a project dependency
    • pyspglib appears redundant as spglib is used
    • Multiple pymatgen submodules can be consolidated
  • Retain essential mocks:

    • ase and its submodules (matches dependency)
    • numpy (matches dependency)
    • pandas (matches dependency)
    • pymatgen (matches dependency >=2024.2.20)
    • spglib (matches dependency)
🔗 Analysis chain

Line range hint 365-397: Consider reviewing mock modules list for v3.0

With this major version update, it would be prudent to review the MOCK_MODULES list to ensure it accurately reflects the current project dependencies. Consider:

  • Verifying if all listed modules are still required
  • Adding any new dependencies that need mocking
  • Removing any obsolete dependencies

Let's check the current dependencies against the mock list:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Compare project dependencies with mock modules

# Extract mock modules
echo "Extracting mock modules..."
mock_modules=$(rg "MOCK_MODULES\s*=" docs/conf.py -A 30 | rg '".*"' -o | tr -d '"' | sort)

# Check dependencies in pyproject.toml and setup.py
echo "Checking project dependencies..."
for f in pyproject.toml setup.py; do
    if [ -f "$f" ]; then
        echo "Dependencies in $f:"
        rg "^\s*(requires|install_requires|dependencies)\s*=" "$f" -A 10
    fi
done

Length of output: 1789

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 0728f46 and 9fa4e56.

📒 Files selected for processing (6)
  • .github/workflows/check-live-links.yml (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • README.md (4 hunks)
  • docs/conf.py (1 hunks)
  • pyproject.toml (1 hunks)
  • setup.py (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • .github/workflows/check-live-links.yml
  • setup.py
🔇 Additional comments (4)
pyproject.toml (1)

8-8: Verify documentation for version 3.0 release.

The major version bump from 2.8 to 3.0 suggests significant changes. Please ensure that:

  1. The changelog is updated to document breaking changes
  2. Release notes are prepared
  3. Migration guide is available for users upgrading from v2.8
README.md (2)

36-36: LGTM! Documentation links updated correctly.

The links have been appropriately updated to point to the readthedocs documentation instead of GitHub repository, improving accessibility and maintainability.

Also applies to: 44-44


94-97: LGTM! Clear installation instructions for optional dependencies.

The installation instructions for optional dependencies are clear and align with the project's packaging structure.

docs/conf.py (1)

74-76: Version bump appears consistent with PR objectives

The version update from 2.8 to 3.0 aligns with the PR's stated purpose. However, as this represents a major version increment, we should verify the presence of breaking changes to justify this bump.

Let's verify version consistency across the project:

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.56%. Comparing base (0728f46) to head (9fa4e56).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #347   +/-   ##
=======================================
  Coverage   77.56%   77.56%           
=======================================
  Files          31       31           
  Lines        2599     2599           
=======================================
  Hits         2016     2016           
  Misses        583      583           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AntObi AntObi merged commit 08a4ea0 into master Dec 2, 2024
12 of 13 checks passed
@AntObi AntObi deleted the bump_release_v3 branch December 2, 2024 18:24
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.

1 participant