-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code field to product resource, which was added to oscar (#57)
* Added code field to product resource, which was added to oscar The code field can be used to store external id's * Added tests * Test against oscar from github * Updated setup.py according to pypa instruction https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html * kltsie zegt bats
- Loading branch information
1 parent
18e205a
commit ca6469c
Showing
8 changed files
with
834 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# this setup.py script is completely generated dynamically by poetry and | ||
# is needed to be able to integrate this project in tools that are based on setuptools | ||
from pathlib import Path | ||
from setuptools import setup | ||
|
||
from poetry.core.factory import Factory | ||
from poetry.core.masonry.builders.sdist import SdistBuilder | ||
|
||
# let poetry construct setupt.py | ||
cwd_path = Path(".").resolve() | ||
poetry = Factory().create_poetry() | ||
sdist_builder = SdistBuilder(poetry) | ||
setup_py = sdist_builder.build_setup() | ||
|
||
# run setup in the current context | ||
exec(setup_py, globals(), locals()) | ||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters