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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(setuptools): add find_requirements function #5648

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 8, 2023

  1. feat(setuptools): add find_requirements function

    find_requirements utility function is supposed to simplify integration
    between `pipenv` and `setup.py` scripts. Instead of synchronizing them
    manually, users could just
    
    ```python
    # file: setup.py
    
    from setuptools import setup, find_packages
    from pipenv.setuptools import find_requirements
    
    setup(
        name="very-nice-package",
        version="0.1.0",
        author="John Doe",
        description="The Nicest Package",
        url="https://example.com/very-nice-package",
        python_requires=">=3.9, <4",
        packages=find_packages(),
        install_requires=find_requirements(),
    )
    ```
    
    This would fetch requirements from Pipfile.lock every time they run
    
    ```bash
    pip install .
    ```
    sharpvik committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    9df002e View commit details
    Browse the repository at this point in the history