Skip to content

Commit

Permalink
build: migrate to Poetry
Browse files Browse the repository at this point in the history
v0.13.0
  • Loading branch information
dbohdan committed Jun 2, 2020
1 parent ef6f61a commit 91e2420
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 52 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ matrix:
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
- python: 3.8
dist: xenial
install: python setup.py install
script: python setup.py test
install:
- pip install poetry
- poetry install
script: poetry run python -m unittest discover
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ environment:
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "64"
version: "0.12.0.{build}"
version: "0.13.0.{build}"
init:
- cmd: echo ===== INIT & %PYTHON%\python --version
- cmd: echo ===== INIT & %PYTHON%\python -m pip install poetry
build_script:
- cmd: echo ===== BUILD & %PYTHON%\python setup.py install
- cmd: echo ===== BUILD & %PYTHON%\python -m poetry install
test_script:
- cmd: echo ===== TEST & %PYTHON%\python setup.py test
- cmd: echo ===== TEST & %PYTHON%\python -m poetry run python -m unittest discover
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[tool.poetry]
name = "remarshal"
version = "0.13.0"
description = "Convert between CBOR, JSON, MessagePack, TOML, and YAML"
authors = ["D. Bohdan"]
license = "MIT"

[tool.poetry.dependencies]
python = "^2.7 || ^3.5"
python-dateutil = "^2.5"
pytoml = "^0.1.11"
PyYAML = "^5.1"
u-msgpack-python = "^2.5.1"
cbor2 = "^5.0"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.poetry.scripts]
remarshal = 'remarshal:main'
cbor2cbor = 'remarshal:main'
cbor2json = 'remarshal:main'
cbor2msgpack = 'remarshal:main'
cbor2toml = 'remarshal:main'
cbor2yaml = 'remarshal:main'
json2cbor = 'remarshal:main'
json2json = 'remarshal:main'
json2msgpack = 'remarshal:main'
json2toml = 'remarshal:main'
json2yaml = 'remarshal:main'
msgpack2cbor = 'remarshal:main'
msgpack2json = 'remarshal:main'
msgpack2msgpack = 'remarshal:main'
msgpack2toml = 'remarshal:main'
msgpack2yaml = 'remarshal:main'
toml2cbor = 'remarshal:main'
toml2json = 'remarshal:main'
toml2msgpack = 'remarshal:main'
toml2toml = 'remarshal:main'
toml2yaml = 'remarshal:main'
yaml2cbor = 'remarshal:main'
yaml2json = 'remarshal:main'
yaml2msgpack = 'remarshal:main'
yaml2toml = 'remarshal:main'
yaml2yaml = 'remarshal:main'
4 changes: 2 additions & 2 deletions remarshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from collections import OrderedDict


__version__ = '0.12.0'
__version__ = '0.13.0'

FORMATS = ['cbor', 'json', 'msgpack', 'toml', 'yaml']

Expand Down Expand Up @@ -134,7 +134,7 @@ def parse_command_line(argv):
format_from_argv0, argv0_from, argv0_to = argv0_to_format(me)

parser = argparse.ArgumentParser(
description='Convert between TOML, MessagePack, YAML, JSON, and CBOR.'
description='Convert between CBOR, JSON, MessagePack, TOML, and YAML.'
)

input_group = parser.add_mutually_exclusive_group()
Expand Down
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

0 comments on commit 91e2420

Please sign in to comment.