1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 02:09:17 +02:00

Minor cleanup

This commit is contained in:
Floris Bruynooghe 2018-11-01 21:10:08 +02:00
parent 0fd55137f6
commit 4be39e991e

View file

@ -1,15 +1,16 @@
import setuptools import setuptools
import os import os
import re import re
import distutils.log
def main(): def main():
long_description, version = read_meta() long_description, version = read_meta()
distutils.log.set_verbosity(1)
setuptools.setup( setuptools.setup(
name='deltachat', name='deltachat',
version=version, version=version,
description='Python bindings for deltachat-core using CFFI', description='Python bindings for deltachat-core using CFFI',
long_description = long_description, long_description=long_description,
author='holger krekel, bjoern petersen and contributors', author='holger krekel, bjoern petersen and contributors',
setup_requires=['cffi>=1.0.0'], setup_requires=['cffi>=1.0.0'],
install_requires=['cffi>=1.0.0', 'requests', 'attrs', 'six'], install_requires=['cffi>=1.0.0', 'requests', 'attrs', 'six'],
@ -28,8 +29,6 @@ def main():
def read_meta(): def read_meta():
with open('README.rst') as fd:
long_description = fd.read()
with open(os.path.join("src", "deltachat", "__init__.py")) as f: with open(os.path.join("src", "deltachat", "__init__.py")) as f:
for line in f: for line in f:
m = re.match('__version__ = "(\S*).*"', line) m = re.match('__version__ = "(\S*).*"', line)
@ -43,4 +42,3 @@ def read_meta():
if __name__ == "__main__": if __name__ == "__main__":
main() main()