Skip to content

Commit 8913167

Browse files
committed
test tarball
1 parent 0d410d1 commit 8913167

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ script:
5151
pushd /tmp && pytest -n 2 -rxs --cov=oceans tests && popd ;
5252
fi
5353

54+
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
55+
pip wheel . -w dist --no-deps ;
56+
check-manifest --verbose ;
57+
twine check dist/* ;
58+
fi
59+
5460
- if [[ $TRAVIS_JOB_NAME == doctests ]]; then
5561
pytest -vv oceans --doctest-modules ;
5662
fi

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ def read(*parts):
1616
maintainer = "Filipe Fernandes"
1717
authors = [u"André Palóczy", "Arnaldo Russo", "Filipe Fernandes"]
1818

19-
LICENSE = read("LICENSE.txt")
20-
long_description = "{}\n{}".format(read("README.rst"), read("CHANGES.txt"))
21-
2219
# Dependencies.
2320
hard = ["gsw", "matplotlib", "numpy", "seawater"]
2421
soft = {"full": ["cartopy", "iris", "netcdf4", "pandas", "scipy"]}
@@ -29,8 +26,9 @@ def read(*parts):
2926
cmdclass=versioneer.get_cmdclass(),
3027
packages=find_packages(),
3128
package_data={"oceans": ["colormaps/cmap_data/*.dat"]},
32-
license=LICENSE,
33-
long_description=long_description,
29+
license="BSD-3-Clause",
30+
long_description=f'{read("README.md")}',
31+
long_description_content_type="text/markdown",
3432
classifiers=[
3533
"Development Status :: 4 - Beta",
3634
"Environment :: Console",
@@ -45,6 +43,7 @@ def read(*parts):
4543
"Programming Language :: Python :: 3 :: Only",
4644
"Programming Language :: Python :: 3.6",
4745
"Programming Language :: Python :: 3.7",
46+
"Programming Language :: Python :: 3.8",
4847
],
4948
description="Misc functions for oceanographic data analysis",
5049
author=authors,
@@ -56,5 +55,6 @@ def read(*parts):
5655
keywords=["oceanography", "data analysis"],
5756
extras_require=soft,
5857
install_requires=hard,
58+
python_requires='>=3.6',
5959
tests_require=["pytest"],
6060
)

0 commit comments

Comments
 (0)