Browse Source

use nr.databind.core ~0.0.3

master
Niklas Rosenstein 1 year ago
parent
commit
b2197a9741
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
3 changed files with 5 additions and 5 deletions
  1. + 1
    - 1
      package.yaml
  2. + 1
    - 1
      setup.py
  3. + 3
    - 3
      src/wpx/providers/wallpapershome.py

+ 1
- 1
package.yaml

@ -8,7 +8,7 @@ requirements:
- python ^3.5
- beautifulsoup4 ^4.8.2
- nr.interface ~0.0.1
- nr.databind.core ~0.0.1
- nr.databind.core ~0.0.3
- nr.databind.json ~0.0.4
- requests ^2.22.0
- PyYAML ^5.3

+ 1
- 1
setup.py

@ -11,7 +11,7 @@ with io.open('src/wpx/__init__.py', encoding='utf8') as fp:
with io.open('README.md', encoding='utf8') as fp:
long_description = fp.read()
requirements = ['beautifulsoup4 >=4.8.2,<5.0.0', 'nr.interface >=0.0.1,<0.1.0', 'nr.databind.core >=0.0.1,<0.1.0', 'nr.databind.json >=0.0.4,<0.1.0', 'requests >=2.22.0,<3.0.0', 'PyYAML >=5.3,<6.0.0']
requirements = ['beautifulsoup4 >=4.8.2,<5.0.0', 'nr.interface >=0.0.1,<0.1.0', 'nr.databind.core >=0.0.3,<0.1.0', 'nr.databind.json >=0.0.4,<0.1.0', 'requests >=2.22.0,<3.0.0', 'PyYAML >=5.3,<6.0.0']
setuptools.setup(
name = 'wpx',

+ 3
- 3
src/wpx/providers/wallpapershome.py

@ -19,7 +19,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
from nr.databind.core import create_struct_class, Field, Struct
from nr.databind.core import Field, Struct, make_struct
from nr.databind.json import JsonFieldName
from nr.interface import implements
from urllib.parse import parse_qs, urljoin
@ -42,9 +42,9 @@ class PicPreview(Struct):
class Pic(Struct):
Tag = create_struct_class('Tag',
Tag = make_struct('Tag',
{'name': Field(str), 'category': Field(str)})
Uploader = create_struct_class('Uploader',
Uploader = make_struct('Uploader',
{'name': Field(str), 'id': Field(int)})
class Resolution(Struct):

Loading…
Cancel
Save