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:
parent
0fd55137f6
commit
4be39e991e
1 changed files with 3 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
|||
import setuptools
|
||||
import os
|
||||
import re
|
||||
|
||||
import distutils.log
|
||||
|
||||
def main():
|
||||
long_description, version = read_meta()
|
||||
distutils.log.set_verbosity(1)
|
||||
setuptools.setup(
|
||||
name='deltachat',
|
||||
version=version,
|
||||
|
@ -28,8 +29,6 @@ def main():
|
|||
|
||||
|
||||
def read_meta():
|
||||
with open('README.rst') as fd:
|
||||
long_description = fd.read()
|
||||
with open(os.path.join("src", "deltachat", "__init__.py")) as f:
|
||||
for line in f:
|
||||
m = re.match('__version__ = "(\S*).*"', line)
|
||||
|
@ -43,4 +42,3 @@ def read_meta():
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue