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

build: migrate to pyproject.toml #1068

Merged
merged 49 commits into from
Jan 16, 2024

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    47f8537 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c942cc7 View commit details
    Browse the repository at this point in the history
  3. Migrate data from setup.py.

    Note that the author email is a placeholder - working on getting the real one, if there is one.
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    a160ce8 View commit details
    Browse the repository at this point in the history
  4. Exclude some files from the sdist.

    It seems like the .github workflows don't really belong in an sdist.
    The docs perhaps do, but aren't in the current dist, so start off excluding those too (including the rtd config).
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    a0feaeb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d18f51 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0b8f710 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b58abed View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    edca060 View commit details
    Browse the repository at this point in the history
  9. Remove outdated tests.

    It doesn't seem like replacing these tests with roughly equivilent setuptools/build ones makes sense, since they would really be testing the third-party tools rather than anything internal.
    
    The version is no longer handled by our code, so shouldn't need a test. The inclusion of the README is handled by the build backend, so shouldn't need us testing it. setup.py --check is for metadata checks that don't make sense for us to duplicate as pyproject.toml tests. We no longer duplicate the dependency list so don't need to make sure two copies stay in sync.
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    9fedd2e View commit details
    Browse the repository at this point in the history
  10. Use build to create the distribution package.

    This also means that we can go back to using the default version of Python with the Github action.
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    66b8057 View commit details
    Browse the repository at this point in the history
  11. Update build command.

    Also ensure that we can install (and build, since that's how the action is configured) on 3.8 through 3.12.
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    96d0c39 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    183ff1a View commit details
    Browse the repository at this point in the history
  13. Add dev dependencies.

    Also fix quotes to be triple-double since that's what the linter looks for, fix the type of the version tuple, and add pip-tools defaults that silence warnings.
    tonyandrewmeyer committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    3790aa4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    54a471e View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. Provide instructions for generating the doc requirements.

    Also remove the outdated script for this (which doesn't seem to be documented anywhere).
    tonyandrewmeyer committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    412b68a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ce49c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    063abdc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c856db6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4d41a7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5a921a6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3ad12d0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e9f0cb6 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    2947d92 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc47085 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    993892d View commit details
    Browse the repository at this point in the history
  4. We need the dependencies installed to import ops to get the version.

    This feels really ugly. The problem is that ops.__init__ loads almost everything, so to get the version from there needs loading almost everything. We can't just get it from the simpler ops.version because __init__ will still be loaded when we load from the package.
    tonyandrewmeyer committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    3190143 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3fe6176 View commit details
    Browse the repository at this point in the history
  6. Pin using Python 3.8.

    tonyandrewmeyer committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    20ca414 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Configuration menu
    Copy the full SHA
    adde28f View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. Configuration menu
    Copy the full SHA
    2a50930 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Update HACKING.md

    Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
    tonyandrewmeyer and benhoyt committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    71cedc2 View commit details
    Browse the repository at this point in the history
  2. Update HACKING.md

    Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
    tonyandrewmeyer and benhoyt committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    3b7c10a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e6a23c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f32a09 View commit details
    Browse the repository at this point in the history
  5. Fix smoke name.

    tonyandrewmeyer committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    9edc6fc View commit details
    Browse the repository at this point in the history
  6. Style fix.

    tonyandrewmeyer committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    339740d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    556d139 View commit details
    Browse the repository at this point in the history
  8. Per code review.

    tonyandrewmeyer committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    b6837c9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0d726d9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    50b6386 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1560224 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. Configuration menu
    Copy the full SHA
    fadd413 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1be35e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    06de826 View commit details
    Browse the repository at this point in the history
  4. Ensure there is a requirements file for readthedocs to use - and it's…

    … updated by the regular tox -e docs.
    tonyandrewmeyer committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    8867b1d View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Update pyproject.toml

    Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
    tonyandrewmeyer and benhoyt committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    84fcb74 View commit details
    Browse the repository at this point in the history
  2. Update tox.ini

    Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
    tonyandrewmeyer and benhoyt committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    99ae4ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18db4e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c9c325d View commit details
    Browse the repository at this point in the history