Skip to content

Instantly share code, notes, and snippets.

@pradyunsg
Created January 11, 2024 13:59
Show Gist options
  • Save pradyunsg/e502bb5ca096e18308600f0009d86bb0 to your computer and use it in GitHub Desktop.
Save pradyunsg/e502bb5ca096e18308600f0009d86bb0 to your computer and use it in GitHub Desktop.
~/Developer/playground/throwaway/package
❯ ls
pyproject.toml setup.py
~/Developer/playground/throwaway/package
❯ cat pyproject.toml
[project]
name = "example"
version = "1.0.0"
~/Developer/playground/throwaway/package
❯ cat setup.py
from setuptools import setup
setup(
install_requires=["httpx"],
)
~/Developer/playground/throwaway/package
❯ python -m build
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting build dependencies for sdist...
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-2mvjqejz/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:75: _MissingDynamic: `dependencies` defined outside of `pyproject.toml` is ignored.
!!
********************************************************************************
The following seems to be defined outside of `pyproject.toml`:
`dependencies = ['httpx']`
According to the spec (see the link below), however, setuptools CANNOT
consider this value unless `dependencies` is listed as `dynamic`.
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
To prevent this problem, you can list `dependencies` under `dynamic` or alternatively
remove the `[project]` table from your file and rely entirely on other means of
configuration.
********************************************************************************
!!
_handle_missing_dynamic(dist, project_table)
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-2mvjqejz/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running egg_info
creating example.egg-info
writing example.egg-info/PKG-INFO
writing dependency_links to example.egg-info/dependency_links.txt
writing top-level names to example.egg-info/top_level.txt
writing manifest file 'example.egg-info/SOURCES.txt'
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
* Building sdist...
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-2mvjqejz/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:75: _MissingDynamic: `dependencies` defined outside of `pyproject.toml` is ignored.
!!
********************************************************************************
The following seems to be defined outside of `pyproject.toml`:
`dependencies = ['httpx']`
According to the spec (see the link below), however, setuptools CANNOT
consider this value unless `dependencies` is listed as `dynamic`.
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
To prevent this problem, you can list `dependencies` under `dynamic` or alternatively
remove the `[project]` table from your file and rely entirely on other means of
configuration.
********************************************************************************
!!
_handle_missing_dynamic(dist, project_table)
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-2mvjqejz/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running sdist
running egg_info
writing example.egg-info/PKG-INFO
writing dependency_links to example.egg-info/dependency_links.txt
writing top-level names to example.egg-info/top_level.txt
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
running check
creating example-1.0.0
creating example-1.0.0/example.egg-info
copying files to example-1.0.0...
copying pyproject.toml -> example-1.0.0
copying setup.py -> example-1.0.0
copying example.egg-info/PKG-INFO -> example-1.0.0/example.egg-info
copying example.egg-info/SOURCES.txt -> example-1.0.0/example.egg-info
copying example.egg-info/dependency_links.txt -> example-1.0.0/example.egg-info
copying example.egg-info/top_level.txt -> example-1.0.0/example.egg-info
copying example.egg-info/SOURCES.txt -> example-1.0.0/example.egg-info
Writing example-1.0.0/setup.cfg
Creating tar archive
removing 'example-1.0.0' (and everything under it)
* Building wheel from sdist
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting build dependencies for wheel...
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-hk1e30u3/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:75: _MissingDynamic: `dependencies` defined outside of `pyproject.toml` is ignored.
!!
********************************************************************************
The following seems to be defined outside of `pyproject.toml`:
`dependencies = ['httpx']`
According to the spec (see the link below), however, setuptools CANNOT
consider this value unless `dependencies` is listed as `dynamic`.
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
To prevent this problem, you can list `dependencies` under `dynamic` or alternatively
remove the `[project]` table from your file and rely entirely on other means of
configuration.
********************************************************************************
!!
_handle_missing_dynamic(dist, project_table)
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-hk1e30u3/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running egg_info
writing example.egg-info/PKG-INFO
writing dependency_links to example.egg-info/dependency_links.txt
writing top-level names to example.egg-info/top_level.txt
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
* Installing packages in isolated environment... (wheel)
* Building wheel...
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-hk1e30u3/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:75: _MissingDynamic: `dependencies` defined outside of `pyproject.toml` is ignored.
!!
********************************************************************************
The following seems to be defined outside of `pyproject.toml`:
`dependencies = ['httpx']`
According to the spec (see the link below), however, setuptools CANNOT
consider this value unless `dependencies` is listed as `dynamic`.
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
To prevent this problem, you can list `dependencies` under `dynamic` or alternatively
remove the `[project]` table from your file and rely entirely on other means of
configuration.
********************************************************************************
!!
_handle_missing_dynamic(dist, project_table)
/private/var/folders/s0/qbw337m17yj9tq4xm822qwn40000gq/T/build-env-hk1e30u3/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running bdist_wheel
running build
installing to build/bdist.macosx-13.4-x86_64/wheel
running install
running install_egg_info
running egg_info
writing example.egg-info/PKG-INFO
writing dependency_links to example.egg-info/dependency_links.txt
writing top-level names to example.egg-info/top_level.txt
reading manifest file 'example.egg-info/SOURCES.txt'
writing manifest file 'example.egg-info/SOURCES.txt'
Copying example.egg-info to build/bdist.macosx-13.4-x86_64/wheel/example-1.0.0-py3.11.egg-info
running install_scripts
creating build/bdist.macosx-13.4-x86_64/wheel/example-1.0.0.dist-info/WHEEL
creating '/Users/pgedam/Developer/playground/throwaway/package/dist/.tmp-q9tbnsv3/example-1.0.0-py3-none-any.whl' and adding 'build/bdist.macosx-13.4-x86_64/wheel' to it
adding 'example-1.0.0.dist-info/METADATA'
adding 'example-1.0.0.dist-info/WHEEL'
adding 'example-1.0.0.dist-info/top_level.txt'
adding 'example-1.0.0.dist-info/RECORD'
removing build/bdist.macosx-13.4-x86_64/wheel
Successfully built example-1.0.0.tar.gz and example-1.0.0-py3-none-any.whl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment