Mercurial > piecrust2
changeset 685:77cec2fa0e83
cm: Fix a packaging bug, update package metadata.
* Don't add empty strings as install requirements.
* Move PieCrust to 'beta' status, change URL, and other metadata tweaks.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 10 Mar 2016 07:08:15 -0800 |
parents | 15b5181b2e42 |
children | 1a6c4c2683fd |
files | dev-requirements.txt setup.py |
diffstat | 2 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/dev-requirements.txt Wed Mar 09 22:07:43 2016 -0800 +++ b/dev-requirements.txt Thu Mar 10 07:08:15 2016 -0800 @@ -5,4 +5,3 @@ pytest==2.8.7 pytest-cov==2.2.1 pytest-mock==0.10.1 -
--- a/setup.py Wed Mar 09 22:07:43 2016 -0800 +++ b/setup.py Thu Mar 10 07:08:15 2016 -0800 @@ -15,6 +15,10 @@ return fp.read() +def readlines(fname): + lines = [l.strip() for l in read(fname).strip().splitlines()] + + def runcmd(cmd): with subprocess.Popen( cmd, stdout=subprocess.PIPE, @@ -147,8 +151,8 @@ version = '0.0' -install_requires = read('requirements.txt').splitlines() -tests_require = read('dev-requirements.txt').splitlines() +install_requires = readlines('requirements.txt') +tests_require = readlines('dev-requirements.txt') setup( @@ -159,7 +163,7 @@ author="Ludovic Chabant", author_email="ludovic@chabant.com", license="Apache License 2.0", - url="http://github.com/ludovicchabant/piecrust2", + url="http://bolt80.com/piecrust", keywords=' '.join([ 'python', 'website', @@ -169,7 +173,7 @@ 'gallery', 'cms' ]), - packages=find_packages(), + packages=find_packages(exclude=['garcon', 'tests']), include_package_data=True, zip_safe=False, install_requires=install_requires, @@ -179,7 +183,7 @@ 'version': GenerateVersionCommand }, classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Environment :: Console', 'Intended Audience :: Developers', @@ -189,7 +193,8 @@ 'Operating System :: POSIX :: Linux', 'Operating System :: Microsoft :: Windows', 'Programming Language :: Python', - 'Programming Language :: Python :: 3' + 'Programming Language :: Python :: 3', + 'Topic :: Internet :: WWW/HTTP :: Site Management' ], entry_points={'console_scripts': [ 'chef = piecrust.main:main'