Skip to content

Commit be250b0

Browse files
committed
improve setup.py add url/long description
1 parent 491f2bf commit be250b0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,26 @@
1616
import re
1717

1818

19-
with open(os.path.join(os.path.dirname(__file__),
20-
'influxdb',
21-
'__init__.py')) as f:
22-
version = re.search("__version__ = '([^']+)'", f.read()).group(1)
19+
with open(os.path.join(os.path.dirname(__file__), 'influxdb', '__init__.py')) as f:
20+
version = re.search("__version__ = '([^']+)'", f.read()).group(1)
2321

2422
with open('requirements.txt', 'r') as f:
2523
requires = [x.strip() for x in f if x.strip()]
2624

2725
with open('test-requirements.txt', 'r') as f:
2826
test_requires = [x.strip() for x in f if x.strip()]
2927

28+
with open('README.md', 'r') as f:
29+
readme = f.read()
30+
31+
3032
setup(
3133
name='influxdb',
3234
version=version,
33-
description="influxdb client",
34-
license='MIT',
35+
description="InfluxDB client",
36+
long_description=readme,
37+
url='https://github.com/influxdb/influxdb-python',
38+
license='MIT License',
3539
packages=find_packages(exclude=['tests']),
3640
test_suite='tests',
3741
tests_require=test_requires,

0 commit comments

Comments
 (0)