diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5f16a2..54ecf24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,16 +11,12 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "pypy-3.8"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"] os: [ubuntu-latest, windows-latest, macos-latest] exclude: - - python-version: 3.8 - os: macos-latest - python-version: 3.9 os: macos-latest include: - - python-version: 3.8 - os: macos-13 - python-version: 3.9 os: macos-13 @@ -34,7 +30,7 @@ jobs: cache: "pip" - name: Install Dependencies run: | - python -m pip install -U pip pytest setuptools editables + python -m pip install -U pip pytest setuptools editables pytest-gitconfig pip install . - name: Install Mercurial shell: bash @@ -59,6 +55,4 @@ jobs: echo "username = \"John Doe \"" >> ~/.hgrc - name: Run Tests run: | - git config --global user.name "John Doe" - git config --global user.email "ci@test.org" pytest -vvv tests diff --git a/docs/index.md b/docs/index.md index 1af8467..9a900fa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -38,7 +38,7 @@ version = "0.1.0" description = "A project built with PDM-Backend" authors = [{name = "John Doe", email="me@johndoe.org"}] dependencies = ["requests"] -requires-python = ">=3.8" +requires-python = ">=3.9" readme = "README.md" license = "MIT" ``` diff --git a/pdm.lock b/pdm.lock index 5cf7291..cbb58e8 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,17 +5,17 @@ groups = ["default", "dev", "docs", "test"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:b23cb1beb7948e792262ce36783310acf320d72d95c18920792ea765a3d1062e" +content_hash = "sha256:0fa4b35c4363c58d464c7b66b36fd1e2b028b23432fa35988b4aa86ace185252" [[metadata.targets]] -requires_python = ">=3.8" +requires_python = ">=3.9" [[package]] name = "attrs" version = "22.2.0" requires_python = ">=3.6" summary = "Classes Without Boilerplate" -groups = ["dev", "test"] +groups = ["test"] files = [ {file = "attrs-22.2.0-py3-none-any.whl", hash = "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836"}, {file = "attrs-22.2.0.tar.gz", hash = "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99"}, @@ -26,7 +26,7 @@ name = "certifi" version = "2022.12.7" requires_python = ">=3.6" summary = "Python package for providing Mozilla's CA Bundle." -groups = ["dev", "docs"] +groups = ["docs"] files = [ {file = "certifi-2022.12.7-py3-none-any.whl", hash = "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"}, {file = "certifi-2022.12.7.tar.gz", hash = "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"}, @@ -48,7 +48,7 @@ name = "charset-normalizer" version = "2.1.1" requires_python = ">=3.6.0" summary = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -groups = ["dev", "docs"] +groups = ["docs"] files = [ {file = "charset-normalizer-2.1.1.tar.gz", hash = "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845"}, {file = "charset_normalizer-2.1.1-py3-none-any.whl", hash = "sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f"}, @@ -59,7 +59,7 @@ name = "click" version = "8.1.7" requires_python = ">=3.7" summary = "Composable command line interface toolkit" -groups = ["dev", "docs"] +groups = ["docs"] dependencies = [ "colorama; platform_system == \"Windows\"", "importlib-metadata; python_version < \"3.8\"", @@ -74,26 +74,12 @@ name = "colorama" version = "0.4.6" requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" summary = "Cross-platform colored terminal text." -groups = ["dev", "docs", "test"] +groups = ["docs", "test"] files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -[[package]] -name = "commonmark" -version = "0.9.1" -summary = "Python parser for the CommonMark Markdown spec" -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -dependencies = [ - "future>=0.14.0; python_version < \"3\"", -] -files = [ - {file = "commonmark-0.9.1-py2.py3-none-any.whl", hash = "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9"}, - {file = "commonmark-0.9.1.tar.gz", hash = "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"}, -] - [[package]] name = "coverage" version = "6.5.0" @@ -298,7 +284,7 @@ name = "idna" version = "3.4" requires_python = ">=3.5" summary = "Internationalized Domain Names in Applications (IDNA)" -groups = ["dev", "docs"] +groups = ["docs"] files = [ {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, @@ -320,21 +306,6 @@ files = [ {file = "importlib_metadata-6.7.0.tar.gz", hash = "sha256:1aaf550d4f73e5d6783e7acb77aec43d49da8017410afae93822cc9cca98c4d4"}, ] -[[package]] -name = "importlib-resources" -version = "5.10.2" -requires_python = ">=3.7" -summary = "Read resources from Python packages" -groups = ["dev"] -marker = "python_version < \"3.9\" and python_version ~= \"3.8\"" -dependencies = [ - "zipp>=3.1.0; python_version < \"3.10\"", -] -files = [ - {file = "importlib_resources-5.10.2-py3-none-any.whl", hash = "sha256:7d543798b0beca10b6a01ac7cafda9f822c54db9e8376a6bf57e0cbd74d486b6"}, - {file = "importlib_resources-5.10.2.tar.gz", hash = "sha256:e4a96c8cc0339647ff9a5e0550d9f276fc5a01ffa276012b58ec108cfd7b8484"}, -] - [[package]] name = "iniconfig" version = "1.1.1" @@ -359,26 +330,6 @@ files = [ {file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"}, ] -[[package]] -name = "jsonschema" -version = "4.17.3" -requires_python = ">=3.7" -summary = "An implementation of JSON Schema validation for Python" -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -dependencies = [ - "attrs>=17.4.0", - "importlib-metadata; python_version < \"3.8\"", - "importlib-resources>=1.4.0; python_version < \"3.9\"", - "pkgutil-resolve-name>=1.3.10; python_version < \"3.9\"", - "pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0", - "typing-extensions; python_version < \"3.8\"", -] -files = [ - {file = "jsonschema-4.17.3-py3-none-any.whl", hash = "sha256:a870ad254da1a8ca84b6a2905cac29d265f805acc57af304784962a2aa6508f6"}, - {file = "jsonschema-4.17.3.tar.gz", hash = "sha256:0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d"}, -] - [[package]] name = "markdown" version = "3.7" @@ -634,7 +585,7 @@ name = "packaging" version = "24.1" requires_python = ">=3.8" summary = "Core utilities for Python packages" -groups = ["dev", "docs", "test"] +groups = ["docs", "test"] files = [ {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, @@ -651,18 +602,6 @@ files = [ {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, ] -[[package]] -name = "pkgutil-resolve-name" -version = "1.3.10" -requires_python = ">=3.6" -summary = "Resolve a name to an object." -groups = ["dev"] -marker = "python_version < \"3.9\" and python_version ~= \"3.8\"" -files = [ - {file = "pkgutil_resolve_name-1.3.10-py3-none-any.whl", hash = "sha256:ca27cc078d25c5ad71a9de0a7a330146c4e014c2462d9af19c6b828280649c5e"}, - {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"}, -] - [[package]] name = "platformdirs" version = "4.3.6" @@ -712,7 +651,7 @@ name = "pygments" version = "2.14.0" requires_python = ">=3.6" summary = "Pygments is a syntax highlighting package written in Python." -groups = ["dev", "docs"] +groups = ["docs"] files = [ {file = "Pygments-2.14.0-py3-none-any.whl", hash = "sha256:fa7bd7bd2771287c0de303af8bfdfc731f51bd2c6a47ab69d117138893b82717"}, {file = "Pygments-2.14.0.tar.gz", hash = "sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297"}, @@ -732,38 +671,6 @@ files = [ {file = "pymdown_extensions-9.9.tar.gz", hash = "sha256:0f8fb7b74a37a61cc34e90b2c91865458b713ec774894ffad64353a5fce85cfc"}, ] -[[package]] -name = "pyrsistent" -version = "0.19.3" -requires_python = ">=3.7" -summary = "Persistent/Functional/Immutable data structures" -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -files = [ - {file = "pyrsistent-0.19.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:20460ac0ea439a3e79caa1dbd560344b64ed75e85d8703943e0b66c2a6150e4a"}, - {file = "pyrsistent-0.19.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c18264cb84b5e68e7085a43723f9e4c1fd1d935ab240ce02c0324a8e01ccb64"}, - {file = "pyrsistent-0.19.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b774f9288dda8d425adb6544e5903f1fb6c273ab3128a355c6b972b7df39dcf"}, - {file = "pyrsistent-0.19.3-cp310-cp310-win32.whl", hash = "sha256:5a474fb80f5e0d6c9394d8db0fc19e90fa540b82ee52dba7d246a7791712f74a"}, - {file = "pyrsistent-0.19.3-cp310-cp310-win_amd64.whl", hash = "sha256:49c32f216c17148695ca0e02a5c521e28a4ee6c5089f97e34fe24163113722da"}, - {file = "pyrsistent-0.19.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f0774bf48631f3a20471dd7c5989657b639fd2d285b861237ea9e82c36a415a9"}, - {file = "pyrsistent-0.19.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ab2204234c0ecd8b9368dbd6a53e83c3d4f3cab10ecaf6d0e772f456c442393"}, - {file = "pyrsistent-0.19.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e42296a09e83028b3476f7073fcb69ffebac0e66dbbfd1bd847d61f74db30f19"}, - {file = "pyrsistent-0.19.3-cp311-cp311-win32.whl", hash = "sha256:64220c429e42a7150f4bfd280f6f4bb2850f95956bde93c6fda1b70507af6ef3"}, - {file = "pyrsistent-0.19.3-cp311-cp311-win_amd64.whl", hash = "sha256:016ad1afadf318eb7911baa24b049909f7f3bb2c5b1ed7b6a8f21db21ea3faa8"}, - {file = "pyrsistent-0.19.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a2471f3f8693101975b1ff85ffd19bb7ca7dd7c38f8a81701f67d6b4f97b87d8"}, - {file = "pyrsistent-0.19.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc5d149f31706762c1f8bda2e8c4f8fead6e80312e3692619a75301d3dbb819a"}, - {file = "pyrsistent-0.19.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3311cb4237a341aa52ab8448c27e3a9931e2ee09561ad150ba94e4cfd3fc888c"}, - {file = "pyrsistent-0.19.3-cp38-cp38-win32.whl", hash = "sha256:f0e7c4b2f77593871e918be000b96c8107da48444d57005b6a6bc61fb4331b2c"}, - {file = "pyrsistent-0.19.3-cp38-cp38-win_amd64.whl", hash = "sha256:c147257a92374fde8498491f53ffa8f4822cd70c0d85037e09028e478cababb7"}, - {file = "pyrsistent-0.19.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:b735e538f74ec31378f5a1e3886a26d2ca6351106b4dfde376a26fc32a044edc"}, - {file = "pyrsistent-0.19.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99abb85579e2165bd8522f0c0138864da97847875ecbd45f3e7e2af569bfc6f2"}, - {file = "pyrsistent-0.19.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3a8cb235fa6d3fd7aae6a4f1429bbb1fec1577d978098da1252f0489937786f3"}, - {file = "pyrsistent-0.19.3-cp39-cp39-win32.whl", hash = "sha256:c74bed51f9b41c48366a286395c67f4e894374306b197e62810e0fdaf2364da2"}, - {file = "pyrsistent-0.19.3-cp39-cp39-win_amd64.whl", hash = "sha256:878433581fc23e906d947a6814336eee031a00e6defba224234169ae3d3d6a98"}, - {file = "pyrsistent-0.19.3-py3-none-any.whl", hash = "sha256:ccf0d6bd208f8111179f0c26fdf84ed7c3891982f2edaeae7422575f47e66b64"}, - {file = "pyrsistent-0.19.3.tar.gz", hash = "sha256:1a2994773706bbb4995c31a97bc94f1418314923bd1048c6d964837040376440"}, -] - [[package]] name = "pytest" version = "7.2.0" @@ -800,6 +707,20 @@ files = [ {file = "pytest_cov-4.0.0-py3-none-any.whl", hash = "sha256:2feb1b751d66a8bd934e5edfa2e961d11309dc37b73b0eabe73b5945fee20f6b"}, ] +[[package]] +name = "pytest-gitconfig" +version = "0.7.0" +requires_python = ">=3.8.1" +summary = "Provide a Git config sandbox for testing" +groups = ["test"] +dependencies = [ + "pytest>=7.1.2", +] +files = [ + {file = "pytest_gitconfig-0.7.0-py3-none-any.whl", hash = "sha256:7be768b98399817262aff65a1a695a4a441c889e6bd260643ea7beb46619c9d7"}, + {file = "pytest_gitconfig-0.7.0.tar.gz", hash = "sha256:7d8a49747c09da0416704e911d4eccecbae11a28f997cdeba77aab9ab4975b1f"}, +] + [[package]] name = "pytest-xdist" version = "3.0.2" @@ -910,7 +831,7 @@ name = "requests" version = "2.28.1" requires_python = ">=3.7, <4" summary = "Python HTTP for Humans." -groups = ["dev", "docs"] +groups = ["docs"] dependencies = [ "certifi>=2017.4.17", "charset-normalizer<3,>=2", @@ -922,23 +843,6 @@ files = [ {file = "requests-2.28.1.tar.gz", hash = "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"}, ] -[[package]] -name = "rich" -version = "13.0.0" -requires_python = ">=3.7.0" -summary = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -dependencies = [ - "commonmark<0.10.0,>=0.9.0", - "pygments<3.0.0,>=2.6.0", - "typing-extensions<5.0,>=4.0.0; python_version < \"3.9\"", -] -files = [ - {file = "rich-13.0.0-py3-none-any.whl", hash = "sha256:12b1d77ee7edf251b741531323f0d990f5f570a4e7c054d0bfb59fb7981ad977"}, - {file = "rich-13.0.0.tar.gz", hash = "sha256:3aa9eba7219b8c575c6494446a59f702552efe1aa261e7eeb95548fa586e1950"}, -] - [[package]] name = "setuptools" version = "65.5.1" @@ -961,18 +865,6 @@ files = [ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, ] -[[package]] -name = "toml" -version = "0.10.2" -requires_python = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" -summary = "Python Library for Tom's Obvious, Minimal Language" -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -files = [ - {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, - {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, -] - [[package]] name = "tomli" version = "2.0.1" @@ -985,49 +877,17 @@ files = [ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] -[[package]] -name = "typing-extensions" -version = "4.7.1" -requires_python = ">=3.7" -summary = "Backported and Experimental Type Hints for Python 3.7+" -groups = ["dev"] -marker = "python_version < \"3.9\" and python_version ~= \"3.8\"" -files = [ - {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"}, - {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"}, -] - [[package]] name = "urllib3" version = "1.26.13" requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" summary = "HTTP library with thread-safe connection pooling, file post, and more." -groups = ["dev", "docs"] +groups = ["docs"] files = [ {file = "urllib3-1.26.13-py2.py3-none-any.whl", hash = "sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc"}, {file = "urllib3-1.26.13.tar.gz", hash = "sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8"}, ] -[[package]] -name = "vendoring" -version = "1.2.0" -requires_python = "~= 3.8" -summary = "A command line tool, to simplify vendoring pure Python dependencies." -groups = ["dev"] -marker = "python_version ~= \"3.8\"" -dependencies = [ - "click", - "jsonschema", - "packaging", - "requests", - "rich", - "toml", -] -files = [ - {file = "vendoring-1.2.0-py2.py3-none-any.whl", hash = "sha256:35b5fca683264e69e851a7580bb6a6f9848af024ffc8382ed5491bcfa55750c6"}, - {file = "vendoring-1.2.0.tar.gz", hash = "sha256:6340a84bf542222c96f22ebc3cb87e4d86932dc04bc8d446e38285594702c00e"}, -] - [[package]] name = "virtualenv" version = "20.25.1" @@ -1094,7 +954,7 @@ name = "zipp" version = "3.20.2" requires_python = ">=3.8" summary = "Backport of pathlib-compatible object wrapper for zip files" -groups = ["default", "dev", "docs"] +groups = ["default", "docs"] marker = "python_version < \"3.10\"" files = [ {file = "zipp-3.20.2-py3-none-any.whl", hash = "sha256:a817ac80d6cf4b23bf7f2828b7cabf326f15a001bea8b1f9b49631780ba28350"}, diff --git a/pyproject.toml b/pyproject.toml index 8dde151..b87d059 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ authors = [ { name = "Frost Ming", email = "me@frostming.com" } ] license = {text = "MIT"} -requires-python = ">=3.8" +requires-python = ">=3.9" readme = "README.md" keywords = ["packaging", "PEP 517", "build"] dynamic = ["version"] @@ -16,11 +16,11 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "Topic :: Software Development :: Build Tools", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] dependencies = [ @@ -90,6 +90,7 @@ source-includes = ["tests"] test = [ "pytest", "pytest-cov", + "pytest-gitconfig", "pytest-xdist", "setuptools", ] @@ -109,6 +110,7 @@ docs = [ [tool.pdm.scripts] build = "python scripts/build.py" docs = "mkdocs serve" +test = "pytest" [tool.coverage.report] exclude_lines = [ @@ -133,4 +135,4 @@ namespace_packages = true [[tool.mypy.overrides]] module = "pdm.backend._vendor.*" -ignore_errors = true \ No newline at end of file +ignore_errors = true diff --git a/tests/conftest.py b/tests/conftest.py index b91c4d3..9cd3daa 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -23,8 +23,6 @@ def dist(tmp_path: Path) -> Path: @pytest.fixture def scm(fixture_project: Path) -> None: subprocess.check_call(["git", "init"]) - subprocess.check_call(["git", "config", "user.email", "you@any.com"]) - subprocess.check_call(["git", "config", "user.name", "Name"]) subprocess.check_call(["git", "add", "."]) subprocess.check_call(["git", "commit", "-m", "initial commit"]) subprocess.check_call(["git", "tag", "-a", "0.1.0", "-m", "version 0.1.0"]) diff --git a/tests/fixtures/projects/demo-metadata-test/pyproject.toml b/tests/fixtures/projects/demo-metadata-test/pyproject.toml index a25c3ac..ffa6c83 100644 --- a/tests/fixtures/projects/demo-metadata-test/pyproject.toml +++ b/tests/fixtures/projects/demo-metadata-test/pyproject.toml @@ -8,7 +8,7 @@ authors = [ {name = "Example", email = "example@example.com"}, ] name = "demo-metadata-test" -requires-python = ">=3.8" +requires-python = ">=3.9" license = "MIT" dependencies = [] description = "" diff --git a/tests/test_api.py b/tests/test_api.py index dab1704..3109c6b 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -206,7 +206,7 @@ def test_demo_metadata_test__sdist__pkg_info( "License-Expression": "MIT", "Metadata-Version": "2.4", "Name": name, - "Requires-Python": ">=3.8", + "Requires-Python": ">=3.9", "Version": "3.2.1", }