Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pytest-dev/pytest-localserver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7.1
Choose a base ref
...
head repository: pytest-dev/pytest-localserver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.8.0
Choose a head ref
  • 13 commits
  • 5 files changed
  • 1 contributor

Commits on May 21, 2023

  1. Convert to trusted publishing

    I based this change on the official PyPI documentation:
      https://docs.pypi.org/trusted-publishers/
    as well as a blog post walking through an example of how to implement
    trusted publishing for a Python project:
      https://pgjones.dev/blog/trusted-plublishing-2023/
    The diff is fairly minimal. All it does is remove the password used to
    authenticate to PyPI, which we don't need anymore, and add a permission
    needed for trusted publishing to operate.
    
    This commit will be accompanied by some configuration in the project
    settings on PyPI to allow this specific workflow to act as a trusted
    publisher. Effectively, we're telling PyPI that when this particular
    workflow (`publish.yml`) contacts it with an OIDC token from Github,
    then PyPI should accept that as valid authentication and return an API
    token which can be used to actually upload a package.
    diazona committed May 21, 2023
    Configuration menu
    Copy the full SHA
    ff5420c View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Merge pull request #62 from pytest-dev/trusted-publishing/1/dev

    Convert to trusted publishing
    diazona authored May 31, 2023
    Configuration menu
    Copy the full SHA
    02a6df1 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Remove obsolete test code in runtests.py

    The script runtests.py contains an archive of a very old version of
    pytest along with a custom mechanism to import it. That used to be
    the standard method of running tests (so I hear, anyway), but now it's
    no longer relevant because we use tox for dependency management in
    testing. So I'm removing the script. Having a large opaque blob of data
    is not the greatest thing :-)
    diazona committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    129711d View commit details
    Browse the repository at this point in the history
  2. Make pypi deployment dependent on test-pypi deployment

    This commit changes the deployment to PyPI to be dependent on successful
    deployment to Test PyPI. Without this we would have to manually check
    that the deployment to Test PyPI succeeded before deploying to PyPI, and
    there's really no point in making that a manual process. (Or, a person
    could just deploy to PyPI directly without even waiting for the Test
    PyPI deployment to succeed and in that case there's no point in even
    deploying to Test PyPI first.)
    
    I was inspired to do this by looking at the release workflow for some
    other project, but I forget which one it was.
    diazona committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    47f9caa View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Merge pull request #64 from pytest-dev/chain-deployments/1/dev

    Make pypi deployment dependent on test-pypi deployment
    diazona authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    196c05b View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. Merge pull request #63 from pytest-dev/remove-runtests/1/dev

    Remove obsolete test code in runtests.py
    diazona authored Jun 17, 2023
    Configuration menu
    Copy the full SHA
    7b6de78 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Remove /usr/bin/env lines

    Since none of these files are meant to be run directly as scripts,
    there's no need to have shebang lines in them, and in fact it could give
    someone a misleading impression to have them there, so removing them
    should reduce confusion.
    
    Closes #47
    diazona committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    6ee6cb1 View commit details
    Browse the repository at this point in the history
  2. Move SMTP driver code into a function

    pytest_localserver.smtp allows running itself as a module to start up
    an SMTP server, which is implemented by a bit of driver code guarded by
    an `if __name__ == "__main__"` block. Typical best practice is to put
    that code in a `main()` function, which is what I'm doing in this
    commit.
    diazona committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    2674d56 View commit details
    Browse the repository at this point in the history
  3. Remove a structure used for compatbility with Python 2.4

    Python 2.4 is no longer anywhere close to supported so we can put
    `except` and `finally` in the same `try` block now.
    diazona committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    c08ea28 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Merge pull request #66 from pytest-dev/remove-env-shebangs/1/dev

    Remove /usr/bin/env lines
    diazona authored Jul 2, 2023
    Configuration menu
    Copy the full SHA
    f72a1a5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #67 from pytest-dev/smtp-driver-to-function/1/dev

    Move SMTP driver code into a function
    diazona authored Jul 2, 2023
    Configuration menu
    Copy the full SHA
    706b160 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

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

Commits on Jul 15, 2023

  1. Merge pull request #69 from pytest-dev/update-changes-for-0.8.0/1/dev

    Update changelog for the upcoming 0.8 release
    diazona authored Jul 15, 2023
    Configuration menu
    Copy the full SHA
    0daabd7 View commit details
    Browse the repository at this point in the history
Loading