Skip to content

Commit

Permalink
refresh infrastructure (SciTools#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Sep 17, 2021
1 parent a57d69a commit 04b9d79
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 251 deletions.
141 changes: 134 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,139 @@
*.py[co]
# setuptools-scm
_version.py

build
dist
iris_sample_data.egg-info

# Created by editors
# Editors and IDEs
*~
\#*
\.\#*
*.swp
*.ipynb_checkpoints*
.idea/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
166 changes: 0 additions & 166 deletions generate_from_data_zoo.py

This file was deleted.

6 changes: 2 additions & 4 deletions iris_sample_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import os


# Iris sample data version.
__version__ = '2.4.0dev'
from ._version import version as __version__

# Root directory containing the iris sample data.
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample_data')
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "sample_data")
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[build-system]
# Defined by PEP 518
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel"
]
# Defined by PEP 517
build-backend = "setuptools.build_meta"


[tool.setuptools_scm]
write_to = "iris_sample_data/_version.py"
51 changes: 51 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[metadata]
author = SciTools Developers
author_email = [email protected]
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
License :: Freely Distributable
Operating System :: MacOS
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Atmospheric Science
description =
Iris sample data
download_url = https://github.com/SciTools/iris-sample-data
keywords =
cf-metadata
earth-science
grib
netcdf
meteorology
oceanography
ugrid
license = Open Government
long_description = file: README.rst
long_description_content_type = text/x-rst
name = iris-sample-data
project_urls =
Code = https://github.com/SciTools/iris-sample-data
Issues = https://github.com/SciTools/iris-sample-data/issues
url = https://github.com/SciTools/iris-sample-data
version = attr: iris.__version__

[options]
include_package_data = True
packages = find:
python_requires =
>=3.7
zip_safe = False

[options.package_data]
* = *.grib2, *.nc, *.pp

[options.packages.find]
include = iris_sample_data
Loading

0 comments on commit 04b9d79

Please sign in to comment.