Skip to content

Commit 04b9d79

Browse files
authored
refresh infrastructure (#31)
1 parent a57d69a commit 04b9d79

File tree

6 files changed

+202
-251
lines changed

6 files changed

+202
-251
lines changed

.gitignore

Lines changed: 134 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,139 @@
1-
*.py[co]
1+
# setuptools-scm
2+
_version.py
23

3-
build
4-
dist
5-
iris_sample_data.egg-info
6-
7-
# Created by editors
4+
# Editors and IDEs
85
*~
96
\#*
107
\.\#*
118
*.swp
12-
*.ipynb_checkpoints*
9+
.idea/
10+
11+
# Byte-compiled / optimized / DLL files
12+
__pycache__/
13+
*.py[cod]
14+
*$py.class
15+
16+
# C extensions
17+
*.so
18+
19+
# Distribution / packaging
20+
.Python
21+
build/
22+
develop-eggs/
23+
dist/
24+
downloads/
25+
eggs/
26+
.eggs/
27+
lib/
28+
lib64/
29+
parts/
30+
sdist/
31+
var/
32+
wheels/
33+
pip-wheel-metadata/
34+
share/python-wheels/
35+
*.egg-info/
36+
.installed.cfg
37+
*.egg
38+
MANIFEST
39+
40+
# PyInstaller
41+
# Usually these files are written by a python script from a template
42+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
43+
*.manifest
44+
*.spec
45+
46+
# Installer logs
47+
pip-log.txt
48+
pip-delete-this-directory.txt
49+
50+
# Unit test / coverage reports
51+
htmlcov/
52+
.tox/
53+
.nox/
54+
.coverage
55+
.coverage.*
56+
.cache
57+
nosetests.xml
58+
coverage.xml
59+
*.cover
60+
*.py,cover
61+
.hypothesis/
62+
.pytest_cache/
63+
64+
# Translations
65+
*.mo
66+
*.pot
67+
68+
# Django stuff:
69+
*.log
70+
local_settings.py
71+
db.sqlite3
72+
db.sqlite3-journal
73+
74+
# Flask stuff:
75+
instance/
76+
.webassets-cache
77+
78+
# Scrapy stuff:
79+
.scrapy
80+
81+
# Sphinx documentation
82+
docs/_build/
83+
84+
# PyBuilder
85+
target/
86+
87+
# Jupyter Notebook
88+
.ipynb_checkpoints
89+
90+
# IPython
91+
profile_default/
92+
ipython_config.py
93+
94+
# pyenv
95+
.python-version
96+
97+
# pipenv
98+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
99+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
100+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
101+
# install all needed dependencies.
102+
#Pipfile.lock
103+
104+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
105+
__pypackages__/
106+
107+
# Celery stuff
108+
celerybeat-schedule
109+
celerybeat.pid
110+
111+
# SageMath parsed files
112+
*.sage.py
113+
114+
# Environments
115+
.env
116+
.venv
117+
env/
118+
venv/
119+
ENV/
120+
env.bak/
121+
venv.bak/
122+
123+
# Spyder project settings
124+
.spyderproject
125+
.spyproject
126+
127+
# Rope project settings
128+
.ropeproject
129+
130+
# mkdocs documentation
131+
/site
132+
133+
# mypy
134+
.mypy_cache/
135+
.dmypy.json
136+
dmypy.json
137+
138+
# Pyre type checker
139+
.pyre/

generate_from_data_zoo.py

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

iris_sample_data/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import os
44

5-
6-
# Iris sample data version.
7-
__version__ = '2.4.0dev'
5+
from ._version import version as __version__
86

97
# Root directory containing the iris sample data.
10-
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample_data')
8+
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "sample_data")

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[build-system]
2+
# Defined by PEP 518
3+
requires = [
4+
"setuptools>=45",
5+
"setuptools_scm[toml]>=6.2",
6+
"wheel"
7+
]
8+
# Defined by PEP 517
9+
build-backend = "setuptools.build_meta"
10+
11+
12+
[tool.setuptools_scm]
13+
write_to = "iris_sample_data/_version.py"

setup.cfg

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[metadata]
2+
author = SciTools Developers
3+
author_email = [email protected]
4+
classifiers =
5+
Development Status :: 5 - Production/Stable
6+
Intended Audience :: Science/Research
7+
License :: Freely Distributable
8+
Operating System :: MacOS
9+
Operating System :: POSIX
10+
Operating System :: POSIX :: Linux
11+
Operating System :: Unix
12+
Programming Language :: Python
13+
Programming Language :: Python :: 3 :: Only
14+
Programming Language :: Python :: 3.7
15+
Programming Language :: Python :: 3.8
16+
Programming Language :: Python :: Implementation :: CPython
17+
Topic :: Scientific/Engineering
18+
Topic :: Scientific/Engineering :: Atmospheric Science
19+
description =
20+
Iris sample data
21+
download_url = https://github.com/SciTools/iris-sample-data
22+
keywords =
23+
cf-metadata
24+
earth-science
25+
grib
26+
netcdf
27+
meteorology
28+
oceanography
29+
ugrid
30+
license = Open Government
31+
long_description = file: README.rst
32+
long_description_content_type = text/x-rst
33+
name = iris-sample-data
34+
project_urls =
35+
Code = https://github.com/SciTools/iris-sample-data
36+
Issues = https://github.com/SciTools/iris-sample-data/issues
37+
url = https://github.com/SciTools/iris-sample-data
38+
version = attr: iris.__version__
39+
40+
[options]
41+
include_package_data = True
42+
packages = find:
43+
python_requires =
44+
>=3.7
45+
zip_safe = False
46+
47+
[options.package_data]
48+
* = *.grib2, *.nc, *.pp
49+
50+
[options.packages.find]
51+
include = iris_sample_data

0 commit comments

Comments
 (0)