diff options
| author | Steve Piercy <web@stevepiercy.com> | 2015-12-08 02:12:21 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2015-12-08 02:12:21 -0800 |
| commit | 2be40882944895a8d5cf4463c33b0fb47e885e09 (patch) | |
| tree | bdfba80bd0687e390eb367999fe969890c438996 /docs/narr/MyProject/setup.py | |
| parent | 63db9496725227a6047cd59e63106abda3b6f4d3 (diff) | |
| parent | d4177a51aff1a46d1c2223db6ed7afd99964e8ad (diff) | |
| download | pyramid-2be40882944895a8d5cf4463c33b0fb47e885e09.tar.gz pyramid-2be40882944895a8d5cf4463c33b0fb47e885e09.tar.bz2 pyramid-2be40882944895a8d5cf4463c33b0fb47e885e09.zip | |
Merge pull request #2167 from stevepiercy/master
update narrative docs and literalinclude source files that use the st…
Diffstat (limited to 'docs/narr/MyProject/setup.py')
| -rw-r--r-- | docs/narr/MyProject/setup.py | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/docs/narr/MyProject/setup.py b/docs/narr/MyProject/setup.py index 9f34540a7..8c019af51 100644 --- a/docs/narr/MyProject/setup.py +++ b/docs/narr/MyProject/setup.py @@ -1,42 +1,30 @@ -"""Setup for the MyProject package. - -""" import os -from setuptools import setup, find_packages - - -HERE = os.path.abspath(os.path.dirname(__file__)) - -with open(os.path.join(HERE, 'README.txt')) as fp: - README = fp.read() - - -with open(os.path.join(HERE, 'CHANGES.txt')) as fp: - CHANGES = fp.read() +from setuptools import setup, find_packages +here = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(here, 'README.txt')) as f: + README = f.read() +with open(os.path.join(here, 'CHANGES.txt')) as f: + CHANGES = f.read() -REQUIRES = [ +requires = [ 'pyramid', 'pyramid_chameleon', 'pyramid_debugtoolbar', 'waitress', ] -TESTS_REQUIRE = [ - 'webtest' - ] - setup(name='MyProject', version='0.0', description='MyProject', long_description=README + '\n\n' + CHANGES, classifiers=[ - 'Programming Language :: Python', - 'Framework :: Pyramid', - 'Topic :: Internet :: WWW/HTTP', - 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', - ], + "Programming Language :: Python", + "Framework :: Pyramid", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", + ], author='', author_email='', url='', @@ -44,10 +32,11 @@ setup(name='MyProject', packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=REQUIRES, - tests_require=TESTS_REQUIRE, - test_suite='myproject', + install_requires=requires, + tests_require=requires, + test_suite="myproject", entry_points="""\ [paste.app_factory] main = myproject:main - """) + """, + ) |
