-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from AeroPython/flit
Update to modern python
- Loading branch information
Showing
20 changed files
with
165 additions
and
72 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,24 @@ | ||
language: python | ||
dist: xenial | ||
matrix: | ||
include: | ||
- python: 3.6 | ||
env: | ||
- TOXENV=check | ||
- python: 3.6 | ||
env: | ||
- TOXENV=coverage | ||
- python: 3.6 | ||
env: | ||
- TOXENV=py36 | ||
- python: 3.7 | ||
env: TOXENV=py37 | ||
- python: 3.8 | ||
env: TOXENV=py38 | ||
install: | ||
- pip install tox | ||
- pip install codecov | ||
script: | ||
tox -e $TOXENV | ||
after_success: | ||
- codecov |
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,49 @@ | ||
[build-system] | ||
requires = [ | ||
"flit_core >=2,<3", | ||
"wheel", | ||
] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.metadata] | ||
module = "skaero" | ||
author = "Juan Luis Cano" | ||
author-email = "hello@juanlu.space" | ||
description-file = "README.rst" | ||
home-page = "https://www.github.com/aeropython/scikit-aero" | ||
keywords = "aero,aeronautical,aerospace,engineering,atmopshere,gas" | ||
classifiers=[ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics" | ||
] | ||
requires-python = ">=3.6" | ||
requires = [ | ||
"numpy", | ||
"scipy", | ||
] | ||
|
||
[tool.flit.metadata.requires-extra] | ||
dev = [ | ||
"black", | ||
"isort", | ||
"pytest", | ||
"pytest-cov", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"tox", | ||
] | ||
|
||
[tool.flit.metadata.urls] | ||
Source = "https://github.com/aeropython/scikit-aero" | ||
Tracker = "https://github.com/aeropython/scikit-aero/issues" | ||
|
||
|
||
[tool.flit.entrypoints."console_scripts"] | ||
skaero = "skaero.cli:main" |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
""" | ||
=========== | ||
scikit-aero | ||
=========== | ||
Aeronautical engineering calculations in Python | ||
""" | ||
|
||
__version__ = "0.2.dev0" |
File renamed without changes.
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
File renamed without changes.
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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
skaero/geometry/joukowsky.py → src/skaero/geometry/joukowsky.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
File renamed without changes.
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
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,61 @@ | ||
[tox] | ||
description = list of environments against which tox runs the tests | ||
envlist = | ||
clean | ||
check | ||
reformat | ||
coverage | ||
py36 | ||
py37 | ||
py38 | ||
skipsdist = True | ||
|
||
[testenv] | ||
basepython = | ||
py36: {env:PYTHON:python3.6} | ||
py37: {env:PYTHON:python3.7} | ||
py38: {env:PYTHON:python3.8} | ||
{clean,check,reformat,coverage}: {env:PYTHON:python3} | ||
setenv = | ||
PYTHONUNBUFFERED=yes | ||
passenv = | ||
* | ||
deps = | ||
flit | ||
pygments | ||
commands = | ||
flit install --symlink | ||
pytest {posargs: -vvv} | ||
|
||
[testenv:coverage] | ||
description = measures code coverage | ||
commands = | ||
flit install --symlink | ||
pytest --cov-report html --cov=src tests/ | ||
|
||
[testenv:check] | ||
description = this environments checks for isort and black code style | ||
deps = | ||
isort | ||
black | ||
skip_install = true | ||
commands = | ||
isort --check-only --diff --recursive --project skaero --section-default THIRDPARTY src | ||
black --check src | ||
|
||
|
||
[testenv:reformat] | ||
description = reformats the code using black and isort | ||
deps = | ||
black | ||
isort | ||
skip_install = true | ||
commands = | ||
isort --recursive --project skaero --section-default THIRDPARTY src | ||
black src | ||
|
||
[testenv:clean] | ||
deps = coverage | ||
skip_install = true | ||
commands = coverage erase | ||
|