comparison setup.py @ 373:9fb7c4921d75

setup: Keep the requirements in sync between `setuptools` and `pip`.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 07 May 2015 21:36:17 -0700
parents acc718ab56da
children d4a01a023998
comparison
equal deleted inserted replaced
372:115668bb447d 373:9fb7c4921d75
14 with open(os.path.join(os.path.dirname(__file__), fname)) as fp: 14 with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
15 return fp.read() 15 return fp.read()
16 16
17 17
18 def runcmd(cmd): 18 def runcmd(cmd):
19 with subprocess.Popen(cmd, stdout=subprocess.PIPE, 19 with subprocess.Popen(
20 cmd, stdout=subprocess.PIPE,
20 stderr=subprocess.PIPE) as p: 21 stderr=subprocess.PIPE) as p:
21 out, err = p.communicate() 22 out, err = p.communicate()
22 return out, err 23 return out, err
23 24
24 25
151 except ImportError: 152 except ImportError:
152 raise Exception("Can't get version from either a version file or " 153 raise Exception("Can't get version from either a version file or "
153 "from the repository.") 154 "from the repository.")
154 155
155 156
156 setup(name="PieCrust", 157 install_requires = read('requirements.txt').splitlines()
158 tests_require = read('dev-requirements.txt').splitlines()
159
160
161 setup(
162 name="PieCrust",
157 version=version, 163 version=version,
158 description="A powerful static website generator and lightweight CMS.", 164 description="A powerful static website generator and lightweight CMS.",
159 long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'), 165 long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'),
160 author="Ludovic Chabant", 166 author="Ludovic Chabant",
161 author_email="ludovic@chabant.com", 167 author_email="ludovic@chabant.com",
171 'cms' 177 'cms'
172 ]), 178 ]),
173 packages=find_packages(), 179 packages=find_packages(),
174 include_package_data=True, 180 include_package_data=True,
175 zip_safe=False, 181 zip_safe=False,
176 install_requires=[ 182 install_requires=install_requires,
177 'Jinja2==2.7.3', 183 tests_require=tests_require,
178 'Markdown==2.4.1',
179 'MarkupSafe==0.23',
180 'PyYAML==3.11',
181 'Pygments==1.6',
182 'Werkzeug==0.9.6',
183 'colorama==0.3.1',
184 'compressinja==0.0.2',
185 'mock==1.0.1',
186 'py==1.4.23',
187 'python-dateutil==2.2',
188 'repoze.lru==0.6',
189 'smartypants==1.8.6',
190 'strict-rfc3339==0.4',
191 'textile==2.2.1'
192 ],
193 tests_require=[
194 'pytest==2.6.1',
195 'pytest-mock==0.2.0'
196 ],
197 cmdclass={ 184 cmdclass={
198 'test': PyTest, 185 'test': PyTest,
199 'version' : GenerateVersionCommand 186 'version': GenerateVersionCommand
200 }, 187 },
201 classifiers=[ 188 classifiers=[
202 'Development Status :: 3 - Alpha', 189 'Development Status :: 3 - Alpha',
203 'License :: OSI Approved :: Apache Software License', 190 'License :: OSI Approved :: Apache Software License',
204 'Environment :: Console', 191 'Environment :: Console',