Skip to content

Commit

Permalink
modernize setup
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 26, 2018
1 parent b010a3b commit 68453ab
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 157 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Expand Up @@ -27,8 +27,8 @@ build_script:
- cd bin
- cmd: cmake -G "MinGW Makefiles" ..
- sh: cmake ..
- make
- cmake --build .

after_build:
- make test
- ctest -V

11 changes: 5 additions & 6 deletions .travis.yml
Expand Up @@ -28,19 +28,18 @@ install:
- pip -q install -e .[tests,full]
- cd bin
- cmake ..
- make
- cmake --build .

script:
- make test
- ctest -V
- cd ..

- mypy . --ignore-missing-imports
- flake8

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
coverage run tests/test_all.py;
pytest --cov;
coveralls;
fi

after_failure:
- ctest -V

36 changes: 35 additions & 1 deletion setup.cfg
Expand Up @@ -4,5 +4,39 @@ ignore = E501
exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/

[metadata]
description-file = README.md
name = pymap3d
version = 1.7.2
description = pure Python coordinate conversions, following convention of several popular Matlab routines.
author = Michael Hirsch, Ph.D.
url = https://github.com/scivision/pymap3d
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Scientific/Engineering :: GIS
license_file = LICENSE
keywords = coordinate conversion
long_description = file: README.md
long_description_content_type = text/markdown

[options]
include_package_data = True
packages = find:
install_requires =
python-dateutil
pytz
numpy

[options.extras_require]
tests =
pyproj
pytest
pytest-cov
coveralls
flake8
mypy
full = astropy
33 changes: 2 additions & 31 deletions setup.py
@@ -1,34 +1,5 @@
#!/usr/bin/env python
# Copyright (c) 2014-2018 Michael Hirsch, Ph.D.
from setuptools import setup

from setuptools import setup, find_packages

install_requires = ['python-dateutil', 'pytz', 'numpy']
tests_require = ['pytest', 'coveralls', 'pyproj', 'flake8', 'mypy']
# %%


setup(name='pymap3d',
packages=find_packages(),
version='1.7.1',
description='pure Python coordinate conversions, following convention of several popular Matlab routines.',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
author='Michael Hirsch, Ph.D.',
url='https://github.com/scivision/pymap3d',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: GIS',
],
install_requires=install_requires,
tests_require=tests_require,
extras_require={'tests': tests_require,
'full': ['astropy']},
python_requires='>=3.6',
)
setup(python_requires='>=3.6')

0 comments on commit 68453ab

Please sign in to comment.