-
Notifications
You must be signed in to change notification settings - Fork 6
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
Mukesh Mithrakumar
committed
Jul 7, 2019
1 parent
9242ff4
commit ecb6f87
Showing
16 changed files
with
740 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
omit = | ||
tensorflow_scientific\quantum\* | ||
tensorflow_scientific\solvers\* | ||
C:\Users\Mukesh\AppData\Roaming\Python\Python36\* | ||
*\__init__.py |
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,54 @@ | ||
# http://flake8.pycqa.org/en/latest/user/options.html | ||
# http://flake8.pycqa.org/en/latest/user/error-codes.html | ||
# http://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes | ||
|
||
[flake8] | ||
|
||
# Increase the verbosity of Flake8’s output. | ||
verbose = 0 | ||
# Decrease the verbosity of Flake8’s output. | ||
# quiet = 0 | ||
|
||
# Print the total number of errors. | ||
count = True | ||
|
||
# Print the source code generating the error/warning in question. | ||
show-source = True | ||
|
||
# Count the number of occurrences of each error/warning code and print a report. | ||
statistics = True | ||
|
||
# Redirect all output to the specified file. | ||
output-file = .flake8.log | ||
|
||
# Also print output to stdout if output-file has been configured. | ||
tee = True | ||
|
||
# Provide a comma-separated list of glob patterns to exclude from checks. | ||
exclude = | ||
.git, | ||
__pycache__, | ||
.venv, | ||
.tox, | ||
dist, | ||
doc, | ||
build, | ||
*.egg | ||
|
||
# Provide a comma-separate list of glob patterns to include for checks. | ||
filename = | ||
*.py | ||
|
||
# Report all errors, even if it is on the same line as a `# NOQA` comment. | ||
disable-noqa = False | ||
|
||
# Set the maximum length that any line (with some exceptions) may be. | ||
max-line-length = 120 | ||
|
||
# Specify a list of codes to ignore. | ||
ignore = | ||
W503, | ||
E731 | ||
|
||
# Enable PyFlakes syntax checking of doctests in docstrings. | ||
doctests = True |
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,28 @@ | ||
dist: xenial | ||
language: python | ||
|
||
python: | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
|
||
install: | ||
- python setup.py -q install | ||
- pip install -r test-requirements.txt | ||
|
||
script: | ||
- echo "Running Tests ..." | ||
- pytest | ||
- pytest -v --cov | ||
- flake8 | ||
- coverage run --source=tensorflow_scientific -m pytest | ||
|
||
after_success: | ||
- coveralls | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always |
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,3 @@ | ||
[pytest] | ||
filterwarnings = | ||
ignore::DeprecationWarning |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
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,4 +1,4 @@ | ||
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. | ||
# Copyright 2019, Mukesh Mithrakumar. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -24,39 +24,55 @@ | |
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
import os | ||
import sys | ||
|
||
# To enable importing version.py directly, we add its path to sys.path. | ||
version_path = os.path.join(os.path.dirname(__file__), 'tensorflow_scientific') | ||
sys.path.append(version_path) | ||
from version import __version__ # noqa: E402 | ||
|
||
|
||
project_name = 'tensorflow-scientific' | ||
project_version = '1.0.0-beta0' | ||
project_version = '0.1.0-dev' | ||
|
||
REQUIRED_PACKAGES = [ | ||
'six >= 1.10.0', | ||
'tensorflow==2.0.0-beta0' | ||
] | ||
|
||
with open('README.md', 'r') as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name=project_name, | ||
version=project_version.replace('-', ''), | ||
version=__version__, | ||
description='Scientific modeling in TensorFlow', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
author='Mukesh Mithrakumar', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
author_email='[email protected]', | ||
url='https://github.com/mukeshmithrakumar/scientific', | ||
packages=find_packages(exclude=['tests']), | ||
install_requires=REQUIRED_PACKAGES, | ||
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=[ | ||
'Development Status :: 0 - Alpha', | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Education', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Software Development :: Libraries', | ||
], | ||
project_urls={ | ||
'Source': 'https://github.com/mukeshmithrakumar/scientific' | ||
}, | ||
license='Apache 2.0', | ||
keywords='tensorflow scientific', | ||
keywords=('tensorflow', 'scientific') | ||
) |
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,22 @@ | ||
# Copyright 2019, The TensorFlow Scientific Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ============================================================================== | ||
"""A scientific extension for TensorFlow.""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
|
||
# flake8: noqa: F401 | ||
from tensorflow_scientific.integrate import odes |
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
Oops, something went wrong.