-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPP] Completed basic setup package and CI integration.
- Loading branch information
1 parent
635cd86
commit 5261712
Showing
6 changed files
with
137 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
\.vscode/ | ||
|
||
\.DS_Store | ||
|
||
__pycache__ | ||
|
||
*/__pycache__/* | ||
|
||
**/__pycache__/* | ||
|
||
.notipy.json | ||
|
||
.single_run | ||
|
||
*/__pycache__/* | ||
coverage.xml | ||
__pycache__ | ||
.coverage* | ||
|
||
coverage.xml | ||
\.DS_Store | ||
.single_run | ||
\.vscode/ | ||
.notipy.json |
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 @@ | ||
{"code_climate": {"code_climate_maintainability_url": "https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/maintainability", "code_climate_coverage_url": "https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/test_coverage"}} | ||
{"code_climate": {"code_climate_maintainability_url": "https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/maintainability", "code_climate_coverage_url": "https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/test_coverage"}, "codacy": {"codacy": "image:: https://api.codacy.com/project/badge/Grade/0968ff39b133475da3a9c528b8ae2c9d\n :target: https://www.codacy.com/manual/LucaCappelletti94/csv_trimming?utm_source=github.com&utm_medium=referral&utm_content=LucaCappelletti94/csv_trimming&utm_campaign=Badge_Grade"}} |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
csv_trimming | ||
========================================================================================= | ||
|travis| |sonar_quality| |sonar_maintainability| |codacy| | ||
|code_climate_maintainability| |pip| |downloads| | ||
|
||
Package python to remove common ugliness from a csv-like file | ||
|
||
How do I install this package? | ||
---------------------------------------------- | ||
As usual, just download it using pip: | ||
|
||
.. code:: shell | ||
pip install csv_trimming | ||
Tests Coverage | ||
---------------------------------------------- | ||
Since some software handling coverages sometime | ||
get slightly different results, here's three of them: | ||
|
||
|coveralls| |sonar_coverage| |code_climate_coverage| | ||
|
||
Package python to remove common ugliness from a csv-like file | ||
|
||
|
||
.. |travis| image:: https://travis-ci.org/LucaCappelletti94/csv_trimming.png | ||
:target: https://travis-ci.org/LucaCappelletti94/csv_trimming | ||
:alt: Travis CI build | ||
|
||
.. |sonar_quality| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_csv_trimming&metric=alert_status | ||
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_csv_trimming | ||
:alt: SonarCloud Quality | ||
|
||
.. |sonar_maintainability| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_csv_trimming&metric=sqale_rating | ||
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_csv_trimming | ||
:alt: SonarCloud Maintainability | ||
|
||
.. |sonar_coverage| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_csv_trimming&metric=coverage | ||
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_csv_trimming | ||
:alt: SonarCloud Coverage | ||
|
||
.. |coveralls| image:: https://coveralls.io/repos/github/LucaCappelletti94/csv_trimming/badge.svg?branch=master | ||
:target: https://coveralls.io/github/LucaCappelletti94/csv_trimming?branch=master | ||
:alt: Coveralls Coverage | ||
|
||
.. |pip| image:: https://badge.fury.io/py/csv_trimming.svg | ||
:target: https://badge.fury.io/py/csv_trimming | ||
:alt: Pypi project | ||
|
||
.. |downloads| image:: https://pepy.tech/badge/csv_trimming | ||
:target: https://pepy.tech/badge/csv_trimming | ||
:alt: Pypi total project downloads | ||
|
||
.. |codacy| image:: https://api.codacy.com/project/badge/Grade/0968ff39b133475da3a9c528b8ae2c9d | ||
:target: https://www.codacy.com/manual/LucaCappelletti94/csv_trimming?utm_source=github.com&utm_medium=referral&utm_content=LucaCappelletti94/csv_trimming&utm_campaign=Badge_Grade | ||
:alt: Codacy Maintainability | ||
|
||
.. |code_climate_maintainability| image:: https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/maintainability | ||
:target: https://codeclimate.com/github/LucaCappelletti94/csv_trimming/maintainability | ||
:alt: Maintainability | ||
|
||
.. |code_climate_coverage| image:: https://api.codeclimate.com/v1/badges/1e95e0c5b6331cbf85aa/test_coverage | ||
:target: https://codeclimate.com/github/LucaCappelletti94/csv_trimming/test_coverage | ||
:alt: Code Climate Coverate |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import os | ||
import re | ||
# To use a consistent encoding | ||
from codecs import open as copen | ||
|
||
from setuptools import find_packages, setup | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# Get the long description from the relevant file | ||
with copen(os.path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
|
||
def read(*parts): | ||
with copen(os.path.join(here, *parts), 'r') as fp: | ||
return fp.read() | ||
|
||
|
||
def find_version(*file_paths): | ||
version_file = read(*file_paths) | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", | ||
version_file, re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
__version__ = find_version("csv_trimming", "__version__.py") | ||
|
||
test_deps =[ | ||
"coveralls", | ||
"validate_version_code", | ||
"codacy-coverage", | ||
"pytest-cov", | ||
"pytest" | ||
] | ||
|
||
extras = { | ||
'test': test_deps, | ||
} | ||
|
||
setup( | ||
name='csv_trimming', | ||
version=__version__, | ||
description="Package python to remove common ugliness from a csv-like file", | ||
long_description=long_description, | ||
url="https://github.com/LucaCappelletti94/csv_trimming", | ||
author="LucaCappelletti94", | ||
author_email="cappelletti.luca94@gmail.com", | ||
# Choose your license | ||
license='MIT', | ||
include_package_data=True, | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3' | ||
], | ||
packages=find_packages(exclude=['contrib', 'docs', 'tests*']), | ||
tests_require=test_deps, | ||
# Add here the package dependencies | ||
install_requires=[], | ||
extras_require=extras, | ||
) |