Skip to content
Snippets Groups Projects
  1. Feb 24, 2025
    • Matt Harbison's avatar
      contrib: add modern `setuptools` and `setuptools_scm` to the packaging venv · 0e2be2abd963
      Matt Harbison authored
      With `py -3.9 contrib/packaging/packaging.py wix --pyoxidizer-target x86_64-pc-windows-msvc`,
      there is an immediate failure after building the venv (3.9.13 has `setuptools`
      58.1.0):
      
          ModuleNotFoundError: No module named 'setuptools.command.build'
      
      With that fixed, the same command then fails immediately with this error:
      
          Couldn't import setuptools_scm (direct call of setup.py?)
      
      Unfortunately, referencing `setuptools` in the requirements file needs
      `--allow-unsafe` to avoid a warning about not pinning `setuptools`.  However,
      the same warning happens if `setuptools` is pinned to a specific revision, so I
      have no idea what it is complaining about.  It's a separate venv that is only
      used for packaging, so we can fix it if it becomes a problem in the future.
      
      Interestingly, the Inno installer build doesn't fail immediately, and I can see
      it installing `setuptools` and `setuptools_scm` in the wall of text it emits.
      Eventually it does fail with the same errors without this change.
      0e2be2abd963
  2. Nov 02, 2022
  3. Nov 25, 2021
  4. Apr 20, 2020
    • Gregory Szorc's avatar
      packaging: add docutils as dependency · 036f6f7e19e1
      Gregory Szorc authored
      The previous commit revealed that attempting to run
      `python setup.py build_doc` from the packaging virtualenv
      failed due to missing docutils package. We didn't notice
      this before because py2exe Windows packaging appears to
      use a Python from another virtualenv (which does include
      docutils) to invoke setup.py. I discovered this as part
      of implementing packaging outside of that virtualenv
      environment.
      
      Differential Revision: https://phab.mercurial-scm.org/D8470
      036f6f7e19e1
  5. Nov 15, 2019
  6. Oct 24, 2019
    • Gregory Szorc's avatar
      packaging: consolidate CLI functionality into packaging.py · 081a77df7bc6
      Gregory Szorc authored
      Consolidating functionality for invoking code in the hgpackaging
      package through a single CLI entry point will make things simpler
      when we add more complexity to that package. For example, it will
      allow us to run things out of a virtualenv with third party
      packages.
      
      This commit consolidates functionality from the Inno and WiX
      build.py scripts into a new packaging.py script. That script
      simply creates a virtualenv and runs the CLI functionality in
      it.
      
      The new virtualenv is populated with jinja2 because I felt
      it easier to incorporate requirements file processing in this
      commit and we will soon use jinja2 in an upcoming commit.
      
      The unified CLI functionality will also make it easier to
      script other packaging workflows going forward. e.g. RPM, Debian,
      and macOS packaging.
      
      Differential Revision: https://phab.mercurial-scm.org/D7156
      081a77df7bc6
Loading