Skip to content

Commit 4b79734

Browse files
committed
remove second-person references and continue proofreading
1 parent d467691 commit 4b79734

3 files changed

Lines changed: 151 additions & 171 deletions

File tree

tutorial/examples/PyPackage/0.package.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@
1010
# next to all the things you'll want to change. Once you've handled
1111
# them, you can save this file and test your package like this:
1212
#
13-
# spack install py-pandas
13+
# spack install py-python-dateutil
1414
#
1515
# You can edit this file again by typing:
1616
#
17-
# spack edit py-pandas
17+
# spack edit py-python-dateutil
1818
#
1919
# See the Spack documentation for more information on packaging.
2020
# ----------------------------------------------------------------------------
2121

22-
from spack.package import *
2322
from spack_repo.builtin.build_systems.python import PythonPackage
23+
from spack.package import *
2424

2525

26-
class PyPandas(PythonPackage):
26+
class PyPythonDateutil(PythonPackage):
2727
"""FIXME: Put a proper description of your package here."""
2828

2929
# FIXME: Add a proper url for your package's homepage here.
3030
homepage = "https://www.example.com"
31-
pypi = "pandas/pandas-0.19.0.tar.gz"
31+
pypi = "python-dateutil/python-dateutil-2.9.0.post0.tar.gz"
3232

3333
# FIXME: Add a list of GitHub accounts to
3434
# notify when the package is updated.
@@ -39,12 +39,7 @@ class PyPandas(PythonPackage):
3939
# the license, set checked_by to your Github username.
4040
license("UNKNOWN", checked_by="github_user1")
4141

42-
version(
43-
"2.2.3",
44-
sha256="4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667",
45-
)
46-
47-
depends_on("c", type="build")
42+
version("2.9.0.post0", sha256="37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3")
4843

4944
# FIXME: Only add the python/pip/wheel dependencies if you need specific versions
5045
# or need to change the dependency type. Generic python/pip/wheel dependencies are
@@ -68,3 +63,4 @@ def config_settings(self, spec, prefix):
6863
# FIXME: If not needed, delete this function
6964
settings = {}
7065
return settings
66+
Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
1-
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2-
# Spack Project Developers. See the top-level COPYRIGHT file for details.
1+
# Copyright Spack Project Developers. See COPYRIGHT file for details.
32
#
43
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
54

6-
from spack import *
5+
from spack_repo.builtin.build_systems.python import PythonPackage
6+
from spack.package import *
77

88

9-
class PyPandas(PythonPackage):
10-
"""pandas is a Python package providing fast, flexible, and expressive
11-
data structures designed to make working with relational or
12-
labeled data both easy and intuitive. It aims to be the
13-
fundamental high-level building block for doing practical, real
14-
world data analysis in Python. Additionally, it has the broader
15-
goal of becoming the most powerful and flexible open source data
16-
analysis / manipulation tool available in any language.
17-
"""
18-
homepage = "http://pandas.pydata.org/"
19-
url = "https://pypi.io/packages/source/p/pandas/pandas-0.19.0.tar.gz"
9+
class PyPythonDateutil(PythonPackage):
10+
"""Extensions to the standard Python datetime module."""
2011

21-
version('0.19.0', 'bc9bb7188e510b5d44fbdd249698a2c3')
22-
version('0.18.0', 'f143762cd7a59815e348adf4308d2cf6')
23-
version('0.16.1', 'fac4f25748f9610a3e00e765474bdea8')
24-
version('0.16.0', 'bfe311f05dc0c351f8955fbd1e296e73')
12+
homepage = "https://dateutil.readthedocs.io/"
13+
pypi = "python-dateutil/python-dateutil-2.9.0.post0.tar.gz"
14+
15+
version("2.9.0.post0", sha256="37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3")
16+
17+
depends_on("py-setuptools", type="build")
18+
depends_on("py-setuptools-scm@:7", type="build")
19+
depends_on("py-wheel", type="build")
20+
depends_on("py-six", type=("build", "run"))
2521

26-
depends_on('py-dateutil', type=('build', 'run'))
27-
depends_on('py-numpy', type=('build', 'run'))
28-
depends_on('py-setuptools', type='build')
29-
depends_on('py-cython', type='build')
30-
depends_on('py-pytz', type=('build', 'run'))
31-
depends_on('py-numexpr', type=('build', 'run'))
32-
depends_on('py-bottleneck', type=('build', 'run'))

0 commit comments

Comments
 (0)