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

Update dotfiles #190

Closed
wants to merge 9 commits into from
Closed

Update dotfiles #190

wants to merge 9 commits into from

Conversation

janbridley
Copy link
Collaborator

@janbridley janbridley commented Aug 28, 2023

Note: this PR will be split into a number of more focused pull requests.

OUTSTANDING QUESTIONS / TODOs

  1. Should we updated the readthedocs theme to a more modern variant (furo)? This is effectively a cosmetic change, but would accompany the minor benefit of allowing for a modern version of sphinx to work for this package.
  2. Should I set up GitHub actions in this PR? Or should that be broken into a separate pull request. - I think it makes sense to do this in a separate PR

Description

This change aims to bring the coxeter dot files up to spec with PEP621. A few fixes are made regarding the proper operation of bumpversion, and deprecated pre-commit hooks are added.

Changed and Added

  • Migrated setup.py and setup.cfg to pyproject.toml 1
  • Added requirements.txt to tests folder to allow for dynamic install of required modules 2
  • Moved bumpversion config to .bumpversion.cfg. bumpversion should now work by default, with no further configuration.
  • Updated gitignore to track .DS_Store files, plus configuration files for a few common IDEs and codecov/coverage

Fixed

  • Updated requirements.txt
  • Updated README.rst to properly comply with PEP621. Previous documentation does not work due to the setup.py install deprecation
  • Remove deprecated --nqba-mutate flag from pre-commit hooks
  • Updated doc/requirements.txt to install the proper sphinx version and theme
  • Documentation for shape families added in Added new shape families for Archimedean, Catalan, Johnson, and other solids. #177 were missing newlines in a few places - this has been fixed, and the formatting made more consistent.

1 flake8 configuration cannot be achieved in a pyproject.toml without additional tools. For this reason, the setup.cfg remains.
2 Setting up the requirements in this manner allows for a GitHub direct download of hbf/miniball, which could help address #179 in the future.

Motivation and Context

I plan to migrate coxeter from CircleCI to Github Actions to bring it into line with other glotzerlab packages. This will also speed up test runs, and will allow for more flexibility with future automations if desired.

Types of Changes

  • Documentation update
  • Bug fix
  • New feature
  • Breaking change3

3The change breaks (or has the potential to break) existing functionality.

Checklist:

janbridley and others added 6 commits August 25, 2023 15:25
- updated pyproject.toml to properly store package data and configuration options
- moved tools from setup.cfg to pyproject.toml where possible
- replaced setup.py with minimal version
- added tests/requirements.txt for easy installation of packages required to test coxeter
- added dynamic reading of doc build and test packages from requirements.txt files
- updated README.rst with proper install directions for requirements
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #190 (766ef36) into master (6e5331d) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
- Coverage   54.78%   54.76%   -0.03%     
==========================================
  Files          26       25       -1     
  Lines        2621     2593      -28     
==========================================
- Hits         1436     1420      -16     
+ Misses       1185     1173      -12     
Files Changed Coverage Δ
coxeter/families/common.py 32.14% <ø> (ø)

... and 6 files with indirect coverage changes

@janbridley
Copy link
Collaborator Author

This PR has been split into the appropriate separate pull requests. I will be closing this branch for now.

@janbridley janbridley closed this Sep 1, 2023
@janbridley janbridley deleted the update-dotfiles branch March 7, 2024 15:35
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