python package management confusion
dieter
dieter at handshake.de
Thu Jan 17 02:41:12 EST 2019
dcs3spp via Python-list <python-list at python.org> writes:
> ...
> How do I configure python setup.py develop to pull the pyramid_core dependent packages using virtualenv?
Your "setup.py" below should work (once, you have removed the "****").
If the "pyramid" package correctly declares its dependencies,
then the "pyramid_core" is even likely unnecessary.
Try it out.
> *************** setup.py ******************
>
> import os
> import sys
>
> from setuptools import setup, find_packages
>
> here = os.path.abspath(os.path.dirname(__file__))
> with open(os.path.join(here, 'README.md')) as f:
> README = f.read()
> with open(os.path.join(here, 'CHANGES.md')) as f:
> CHANGES = f.read()
>
> requires = [
> 'cryptography',
> 'odfpy',
> 'PyJWT',
> 'pycrypto',
> 'pyramid',
> ***** 'pyramid_core', *******
> requirements.txt file?
> 'pyramid_debugtoolbar',
> 'pyramid_tm',
> 'requests==2.18.4',
> 'SQLAlchemy',
> 'transaction',
> 'zope.sqlalchemy',
> 'waitress',
> 'psycopg2-binary',
> 'python-dateutil',
> 'uwsgi',
> 'marshmallow-sqlalchemy',
> ]
>
> setup_requires = [
> 'pytest-runner',
> ]
>
> tests_require = [
> 'boto3',
> 'lovely-pytest-docker',
> 'pytest',
> 'pytest-cov',
> 'tuspy',
> 'WebTest >= 1.3.1',
> ]
>
> setup(name='api',
> version='0.0',
> description='api',
> long_description=README + '\n\n' + CHANGES,
> classifiers=[
> "Programming Language :: Python",
> "Framework :: Pyramid",
> "Topic :: Internet :: WWW/HTTP",
> "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
> ],
> author='simon pears',
> author_email='roughlea-music at outlook.com',
> url='',
> keywords='web wsgi bfg pylons pyramid',
> packages=find_packages('src'),
> package_dir={'': 'src'},
> include_package_data=True,
> zip_safe=False,
> extras_require={
> 'testing': tests_require,
> },
> install_requires=requires,
> setup_requires=setup_requires,
> tests_require=tests_require,
> test_suite='tests',
> entry_points="""\
> [paste.app_factory]
> main = api:main
> [console_scripts]
> initialize_api_db = api.scripts.initializedb:main
> """,
> )
More information about the Python-list
mailing list