summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-07-29 18:26:05 -0500
committerLuis Martinez2021-07-29 18:26:50 -0500
commitf70190e72475d44ba4f7e9689687e7b5c9fb922c (patch)
tree17bf1fe98d079cb9dd4c9fd97af8b85202ff3bc4
parent7e991061f0b6edfbfdfed7ec18ba47f607e5aa99 (diff)
downloadaur-python-plaster.tar.gz
add validpgpkeys and armor file
-rw-r--r--.SRCINFO15
-rw-r--r--CHANGES.rst86
-rw-r--r--PKGBUILD35
3 files changed, 114 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6c266abdddd..a49d1645ab6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,18 @@
pkgbase = python-plaster
pkgdesc = A loader interface around multiple config file formats.
pkgver = 1.0
- pkgrel = 3
- url = https://github.com/Pylons/plaster
+ pkgrel = 4
+ url = https://github.com/pylons/plaster
+ changelog = CHANGES.rst
arch = any
license = MIT
checkdepends = python-pytest-runner
makedepends = python-setuptools
- depends = python
- source = https://github.com/Pylons/plaster/archive/1.0.tar.gz
- sha256sums = d998cf4d51ca868f2aa72a7b4901c62183c1da759eacbe4d25a5bd2385f0a7af
+ depends = python>=3.4
+ source = python-plaster-1.0.tar.gz::https://files.pythonhosted.org/packages/source/p/plaster/plaster-1.0.tar.gz
+ source = python-plaster-1.0.tar.gz.asc::https://files.pythonhosted.org/packages/source/p/plaster/plaster-1.0.tar.gz.asc
+ validpgpkeys = CC1A48C957AC6ABEF05B2C596BC977B056B829E5
+ sha256sums = 8351c7c7efdf33084c1de88dd0f422cbe7342534537b553c49b857b12d98c8c3
+ sha256sums = SKIP
pkgname = python-plaster
-
diff --git a/CHANGES.rst b/CHANGES.rst
new file mode 100644
index 00000000000..ca0858f56b2
--- /dev/null
+++ b/CHANGES.rst
@@ -0,0 +1,86 @@
+1.0 (2017-10-11)
+================
+
+- Improve the exception message for ``InvalidURI`` to show the ``config_uri``.
+ See https://github.com/Pylons/plaster/pull/17
+
+0.5 (2017-06-02)
+================
+
+- When a scheme is not supplied, ``plaster.parse_uri`` will now autogenerate
+ a scheme from the file extension with the format ``file+<ext>`` instead of
+ simply ``<ext>`` (for example, ``file+ini`` instead of ``ini``).
+ See https://github.com/Pylons/plaster/pull/16
+
+- Absolute lookups are now pulled from the start of the scheme instead of
+ the end. This means that if you want to explicitly define the package that
+ the loader is pulled from, use ``package+scheme`` instead of
+ ``scheme+package``.
+ See https://github.com/Pylons/plaster/pull/16
+
+0.4 (2017-03-30)
+================
+
+- Removed the ``plaster.NoSectionError`` exception. It's expected that
+ individual loaders should return an empty dictionary of settings in the
+ case that a section cannot be found.
+ See https://github.com/Pylons/plaster/pull/12
+
+- Expect the ``wsgi`` protocol to raise ``LookupError`` exceptions when
+ a named wsgi component cannot be found.
+ See https://github.com/Pylons/plaster/pull/12
+
+0.3 (2017-03-27)
+================
+
+- Lookup now works differently. First "foo+bar" looks for an installed project
+ distribution named "bar" with a loader named "foo". If this fails then it
+ looks for any loader named "foo+bar".
+
+- Rename the loader entry point to ``plaster.loader_factory``.
+
+- Add the concept of protocols to ``plaster.get_loader`` and
+ ``plaster.find_loaders``.
+
+- ``plaster.find_loaders`` now works on just schemes and protocols
+ instead of full ``PlasterURL`` objects and implements the lookup
+ algorithm for finding loader factories.
+
+- Change the ``ILoaderInfo`` interface to avoid being coupled to a
+ particular uri. ``ILoaderInfo.load`` now takes a ``config_uri``
+ parameter.
+
+- Add a ``options`` dictionary to ``PlasterURL`` containing any arguments
+ decoded from the query string. Loaders may use these for whatever they wish
+ but one good option is default values in a config file.
+
+- Define the ``IWSGIProtocol`` interface which addons can use to implement
+ a loader that can return full wsgi apps, servers and filters.
+
+- The scheme is now case-insensitive.
+
+0.2 (2016-06-15)
+================
+
+- Allow ``config_uri`` syntax ``scheme:path`` alongside ``scheme://path``.
+ See https://github.com/Pylons/plaster/issues/3
+
+- Improve errors to show the user-supplied values in the error message.
+ See https://github.com/Pylons/plaster/pull/4
+
+- Add ``plaster.find_loaders`` which can be used by people who need a way
+ to recover when ambiguous loaders are discovered via ``plaster.get_loader``.
+ See https://github.com/Pylons/plaster/pull/5
+
+- Rename ``plaster.Loader`` to ``plaster.ILoader`` to signify its purpose
+ as an interface with no actual implementation.
+ See https://github.com/Pylons/plaster/pull/5
+
+- Introduce ``plaster.ILoaderFactory`` to document what the entry point targets
+ are expected to implement.
+ See https://github.com/Pylons/plaster/pull/5
+
+0.1 (2016-06-12)
+================
+
+- Initial release.
diff --git a/PKGBUILD b/PKGBUILD
index 82233e0d358..f559a2f7192 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,37 @@
-# Maintainer: Aleksandar Trifunović <akstrfn at gmail dot com>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
+# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
# Contributor: Chih-Hsuan Yen <yan12125 at gmail dot com>
pkgname=python-plaster
pkgver=1.0
-_distname=plaster-$pkgver
-pkgrel=3
+pkgrel=4
pkgdesc="A loader interface around multiple config file formats."
arch=('any')
-url="https://github.com/Pylons/plaster"
+url="https://github.com/pylons/plaster"
license=('MIT')
-depends=('python')
+depends=('python>=3.4')
makedepends=('python-setuptools')
checkdepends=('python-pytest-runner')
-source=("$url/archive/$pkgver.tar.gz")
-sha256sums=('d998cf4d51ca868f2aa72a7b4901c62183c1da759eacbe4d25a5bd2385f0a7af')
+changelog=CHANGES.rst
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/plaster/plaster-$pkgver.tar.gz"
+ "$pkgname-$pkgver.tar.gz.asc::https://files.pythonhosted.org/packages/source/p/plaster/plaster-$pkgver.tar.gz.asc")
+sha256sums=('8351c7c7efdf33084c1de88dd0f422cbe7342534537b553c49b857b12d98c8c3'
+ 'SKIP')
+validpgpkeys=('CC1A48C957AC6ABEF05B2C596BC977B056B829E5')
build(){
- cd $_distname
- python setup.py build
+ cd "plaster-$pkgver"
+ python setup.py build
}
check(){
- cd $_distname
- # workaround for current failures which I am lazy to patch
- rm tests/test_loaders.py
- python setup.py pytest -v
+ cd "plaster-$pkgver"
+ python setup.py pytest -v
}
package(){
- cd $_distname
- python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
- install -D LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "plaster-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
+ install -Dm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
}