Skip to content

Commit b3ed8ad

Browse files
author
Jorge
authored
Merge pull request #39 from AeroPython/flit
Update to modern python
2 parents bd43d96 + 0ce92ef commit b3ed8ad

20 files changed

Lines changed: 165 additions & 72 deletions

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: python
2+
dist: xenial
3+
matrix:
4+
include:
5+
- python: 3.6
6+
env:
7+
- TOXENV=check
8+
- python: 3.6
9+
env:
10+
- TOXENV=coverage
11+
- python: 3.6
12+
env:
13+
- TOXENV=py36
14+
- python: 3.7
15+
env: TOXENV=py37
16+
- python: 3.8
17+
env: TOXENV=py38
18+
install:
19+
- pip install tox
20+
- pip install codecov
21+
script:
22+
tox -e $TOXENV
23+
after_success:
24+
- codecov

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
:target: https://aeropython.github.io/scikit-aero/
1414
:alt: Docs
1515

16+
.. image:: https://img.shields.io/travis/com/aeropython/scikit-aero/master?style=for-the-badge
17+
:target: https://travis-ci.com/aeropython/scikit-aero
18+
:alt: Travis
19+
1620
.. image:: https://img.shields.io/badge/mailing%20list-groups.io-8cbcd1.svg?style=for-the-badge
1721
:target: aeropython@groups.io
1822
:alt: Email

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
requires = [
3+
"flit_core >=2,<3",
4+
"wheel",
5+
]
6+
build-backend = "flit_core.buildapi"
7+
8+
[tool.flit.metadata]
9+
module = "skaero"
10+
author = "Juan Luis Cano"
11+
author-email = "hello@juanlu.space"
12+
description-file = "README.rst"
13+
home-page = "https://www.github.com/aeropython/scikit-aero"
14+
keywords = "aero,aeronautical,aerospace,engineering,atmopshere,gas"
15+
classifiers=[
16+
"Development Status :: 2 - Pre-Alpha",
17+
"Intended Audience :: Education",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: BSD License",
20+
"Operating System :: OS Independent",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: Implementation :: CPython",
23+
"Topic :: Scientific/Engineering",
24+
"Topic :: Scientific/Engineering :: Physics"
25+
]
26+
requires-python = ">=3.6"
27+
requires = [
28+
"numpy",
29+
"scipy",
30+
]
31+
32+
[tool.flit.metadata.requires-extra]
33+
dev = [
34+
"black",
35+
"isort",
36+
"pytest",
37+
"pytest-cov",
38+
"sphinx",
39+
"sphinx_rtd_theme",
40+
"tox",
41+
]
42+
43+
[tool.flit.metadata.urls]
44+
Source = "https://github.com/aeropython/scikit-aero"
45+
Tracker = "https://github.com/aeropython/scikit-aero/issues"
46+
47+
48+
[tool.flit.entrypoints."console_scripts"]
49+
skaero = "skaero.cli:main"

setup.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

skaero/__init__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

skaero/version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/skaero/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""
2+
===========
3+
scikit-aero
4+
===========
5+
6+
Aeronautical engineering calculations in Python
7+
8+
"""
9+
10+
__version__ = "0.2.dev0"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
88
"""
99

10-
from __future__ import division, absolute_import
10+
from __future__ import absolute_import, division
1111

1212
import numpy as np
13-
from scipy import interpolate, constants
13+
from scipy import constants, interpolate
1414

1515
from skaero.atmosphere import util
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77

8-
from __future__ import division, absolute_import
8+
from __future__ import absolute_import, division
99

1010
import numpy as np
1111

0 commit comments

Comments
 (0)