comparison setup.py @ 884:18b3e2acd069

pep8: Fix indenting.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 20 Jun 2017 21:10:39 -0700
parents ebf66b8b83f7
children 3133ddc3cb73
comparison
equal deleted inserted replaced
883:803c5c28a71f 884:18b3e2acd069
40 40
41 41
42 class GenerateVersionCommand(Command): 42 class GenerateVersionCommand(Command):
43 description = 'generates a version file' 43 description = 'generates a version file'
44 user_options = [ 44 user_options = [
45 ('force=', 'f', 'force a specific version number')] 45 ('force=', 'f', 'force a specific version number')]
46 46
47 def initialize_options(self): 47 def initialize_options(self):
48 self.force = None 48 self.force = None
49 49
50 def finalize_options(self): 50 def finalize_options(self):
144 try: 144 try:
145 from piecrust.__version__ import APP_VERSION 145 from piecrust.__version__ import APP_VERSION
146 version = APP_VERSION 146 version = APP_VERSION
147 except ImportError: 147 except ImportError:
148 print( 148 print(
149 "WARNING: Can't get version from version file. " 149 "WARNING: Can't get version from version file. "
150 "Will use version `0.0`.") 150 "Will use version `0.0`.")
151 version = '0.0' 151 version = '0.0'
152 152
153 153
154 install_requires = readlines('requirements.txt') 154 install_requires = readlines('requirements.txt')
155 tests_require = readlines('dev-requirements.txt') 155 tests_require = readlines('dev-requirements.txt')
156 156
157 157
158 setup( 158 setup(
159 name="PieCrust", 159 name="PieCrust",
160 version=version, 160 version=version,
161 description="A powerful static website generator and lightweight CMS.", 161 description="A powerful static website generator and lightweight CMS.",
162 long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'), 162 long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'),
163 author="Ludovic Chabant", 163 author="Ludovic Chabant",
164 author_email="ludovic@chabant.com", 164 author_email="ludovic@chabant.com",
165 license="Apache License 2.0", 165 license="Apache License 2.0",
166 url="http://bolt80.com/piecrust", 166 url="http://bolt80.com/piecrust",
167 keywords=' '.join([ 167 keywords=' '.join([
168 'python', 168 'python',
169 'website', 169 'website',
170 'generator', 170 'generator',
171 'blog', 171 'blog',
172 'portfolio', 172 'portfolio',
173 'gallery', 173 'gallery',
174 'cms' 174 'cms'
175 ]), 175 ]),
176 packages=find_packages(exclude=['garcon', 'tests']), 176 packages=find_packages(exclude=['garcon', 'tests']),
177 include_package_data=True, 177 include_package_data=True,
178 zip_safe=False, 178 zip_safe=False,
179 install_requires=install_requires, 179 install_requires=install_requires,
180 tests_require=tests_require, 180 tests_require=tests_require,
181 cmdclass={ 181 cmdclass={
182 'test': PyTest, 182 'test': PyTest,
183 'version': GenerateVersionCommand 183 'version': GenerateVersionCommand
184 }, 184 },
185 classifiers=[ 185 classifiers=[
186 'Development Status :: 4 - Beta', 186 'Development Status :: 4 - Beta',
187 'License :: OSI Approved :: Apache Software License', 187 'License :: OSI Approved :: Apache Software License',
188 'Environment :: Console', 188 'Environment :: Console',
189 'Intended Audience :: Developers', 189 'Intended Audience :: Developers',
190 'Intended Audience :: System Administrators', 190 'Intended Audience :: System Administrators',
191 'Natural Language :: English', 191 'Natural Language :: English',
192 'Operating System :: MacOS :: MacOS X', 192 'Operating System :: MacOS :: MacOS X',
193 'Operating System :: POSIX :: Linux', 193 'Operating System :: POSIX :: Linux',
194 'Operating System :: Microsoft :: Windows', 194 'Operating System :: Microsoft :: Windows',
195 'Programming Language :: Python :: 3 :: Only', 195 'Programming Language :: Python :: 3 :: Only',
196 'Topic :: Internet :: WWW/HTTP :: Site Management' 196 'Topic :: Internet :: WWW/HTTP :: Site Management'
197 ], 197 ],
198 entry_points={'console_scripts': [ 198 entry_points={'console_scripts': [
199 'chef = piecrust.main:main' 199 'chef = piecrust.main:main'
200 ]} 200 ]}
201 ) 201 )
202 202