Merge pull request #56 from NandaScott/develop

Develop
This commit is contained in:
Nanda Scott 2021-02-07 10:43:55 -05:00 committed by GitHub
commit 7c190f7ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 16 deletions

View File

@ -1,21 +1,31 @@
# Changelog # Changelog
## 1.8.1
Changes
- Added support for `modal_dfc` to `image_uris()`.
## 1.8.0 ## 1.8.0
Changes Changes
- CI tests have now been added - CI tests have now been added
- Bulk data uri method has been updated, with a deprecation warning for the previous method. - Bulk data uri method has been updated, with a deprecation warning for the previous method.
- `preview()` method has been added to all card methods. - `preview()` method has been added to all card methods.
- Tests have been updated to reflect new changes. - Tests have been updated to reflect new changes.
## 1.7.1 ## 1.7.1
New stuff New stuff
- Added image uri compatability for adventure cards - Added image uri compatability for adventure cards
- Custom Scryfall based errors - Custom Scryfall based errors
## 1.7.0 ## 1.7.0
Changes Changes
- Added the following methods for card objects - Added the following methods for card objects
- `tcgplayer_id` - `tcgplayer_id`
- `frame_effect` - `frame_effect`
@ -27,6 +37,7 @@ Changes
- `colorshifted` - `colorshifted`
- `futureshifted` - `futureshifted`
- Renamed the following methods for card objects - Renamed the following methods for card objects
- `currency` is now `prices` - `currency` is now `prices`
- Created new endpoint object `TCGPlayerId()` - Created new endpoint object `TCGPlayerId()`
@ -34,16 +45,19 @@ Changes
## 1.6.2 ## 1.6.2
Changes Changes
- You can now pass arguments into `card.image_uris` to specify a single uri. - You can now pass arguments into `card.image_uris` to specify a single uri.
## 1.6.1 ## 1.6.1
Bugfixes Bugfixes
- Forgot to add bulk_data subpackage to Scrython, fixing import issues. - Forgot to add bulk_data subpackage to Scrython, fixing import issues.
## 1.6.0 ## 1.6.0
New stuff New stuff
- Artist names have been added to `catalog`. - Artist names have been added to `catalog`.
- Multiple new functions have been added to `Cards`, `Symbology`. - Multiple new functions have been added to `Cards`, `Symbology`.
- Added the `bulk-data` endpoint to Scrython. - Added the `bulk-data` endpoint to Scrython.
@ -56,6 +70,7 @@ New stuff
- Created unit tests for all classes. - Created unit tests for all classes.
Changes Changes
- Scrython has been changed to use spaces rather than tabs. - Scrython has been changed to use spaces rather than tabs.
- Multiple functions have had their names updated to properly reflect the new key names. - Multiple functions have had their names updated to properly reflect the new key names.
- Some functions have been deleted entirely. - Some functions have been deleted entirely.

View File

@ -175,7 +175,8 @@ class CardsObject(FoundationObject):
'emblem': lambda num: self.scryfallJson['image_uris'], 'emblem': lambda num: self.scryfallJson['image_uris'],
'augment': lambda num: self.scryfallJson['image_uris'], 'augment': lambda num: self.scryfallJson['image_uris'],
'host': lambda num: self.scryfallJson['image_uris'], 'host': lambda num: self.scryfallJson['image_uris'],
'adventure': lambda num: self.scryfallJson['image_uris'] 'adventure': lambda num: self.scryfallJson['image_uris'],
'modal_dfc': lambda num: self.scryfallJson['card_faces'][num]['image_uris']
} }
image_types = { image_types = {

View File

@ -3,7 +3,7 @@ from setuptools import setup
setup( setup(
name='scrython', name='scrython',
packages=['scrython', 'scrython.cards', 'scrython.rulings', 'scrython.catalog', 'scrython.sets', 'scrython.symbology', 'scrython.bulk_data'], packages=['scrython', 'scrython.cards', 'scrython.rulings', 'scrython.catalog', 'scrython.sets', 'scrython.symbology', 'scrython.bulk_data'],
version='1.8.0', version='1.8.1',
description='A wrapper for using the Scryfall API.', description='A wrapper for using the Scryfall API.',
long_description='https://github.com/NandaScott/Scrython/blob/master/README.md', long_description='https://github.com/NandaScott/Scrython/blob/master/README.md',
url='https://github.com/NandaScott/Scrython', url='https://github.com/NandaScott/Scrython',