-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,37 +3,53 @@ | |
import re | ||
|
||
CURDIR = os.path.dirname(os.path.abspath(__file__)) | ||
url = 'https://github.com/Bugazelle/export-csv-to-inlfux' | ||
|
||
with open(os.path.join(CURDIR, 'requirements.txt')) as f: | ||
REQUIRES = f.read().splitlines() | ||
|
||
with open(os.path.join(CURDIR, 'src', 'ExportCsvToInflux', '__version__.py')) as f: | ||
VERSION = re.search("__version__ = '(.*)'", f.read()).group(1) | ||
download_url = '{0}/archive/v{1}.tar.gz'.format(url, VERSION) | ||
|
||
this_directory = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(this_directory, 'README.md')) as f: | ||
long_description = f.read() | ||
index = long_description.find('''```\n\n> **Note''') | ||
new_long_description = long_description[:index].replace('```bash', '')\ | ||
.replace('## Install', '**Install**')\ | ||
.replace('## Features', '**Features**')\ | ||
.replace('## Command Arguments', '**Command Arguments**') | ||
suffix = '\nFor more info, please refer to the {0}'.format(url) | ||
long_description = new_long_description + suffix | ||
|
||
setup( | ||
name='ExportCsvToInflux', | ||
package_dir={'': 'src'}, | ||
packages=find_packages('src'), | ||
version=VERSION, | ||
license='bsd-3-clause-clear', | ||
description='Export', | ||
zip_safe=False, | ||
include_package_data=True, | ||
description='ExportCsvToInflux: A Solution to export csv to influx db', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
author='Bugazelle', | ||
author_email='[email protected]', | ||
keywords=['python', 'csv', 'influx'], | ||
install_requires=REQUIRES, | ||
download_url='https://github.com/Bugazelle/export-csv-to-inlfux/archive/v{0}.tar.gz'.format(VERSION), | ||
url='https://github.com/Bugazelle/export-csv-to-inlfux', | ||
download_url=download_url, | ||
url=url, | ||
classifiers=( | ||
'Development Status :: Production/Stable', | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 237', | ||
'Programming Language :: Python :: 3.7', | ||
), | ||
entry_points={ | ||
'console_scripts': [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.1.0' | ||
__version__ = '0.1.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters