Skip to content

Commit

Permalink
☘️ use ruamel.yaml instead of YAML
Browse files Browse the repository at this point in the history
Issue: #10
  • Loading branch information
gopinath-langote committed Apr 25, 2019
1 parent e0f8278 commit 524f485
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
5 changes: 2 additions & 3 deletions 1build
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python
import yaml

import os
import sys
from ruamel.yaml import YAML


def run(arguments):
Expand Down Expand Up @@ -81,7 +80,7 @@ def parse_project_config():
if os.path.exists("1build.yaml"):
with open("1build.yaml", 'r') as stream:
try:
content = yaml.safe_load(stream)
content = YAML(typ='safe').load(stream)
return Project(name=(content["project"]), commands=(get_command_list_from_config(content["commands"])))
except:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PyYAML==5.1
ruamel.yaml>=0.15.94
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import setuptools

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name='1build',
version='0.0.4',
scripts=['1build'],
packages=setuptools.find_packages(),
install_requires=['ruamel.yaml>=0.15.94'],
setup_requires=['ruamel.yaml>=0.15.94'],
url='https://github.com/gopinath-langote/1build',
license='MIT',
author='Gopinath Langote',
author_email='gopinathlangote11@gmail.com',
description='1 build command for all your build tools for each project.',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Terminals",
"Topic :: Software Development :: Build Tools"
],
)

0 comments on commit 524f485

Please sign in to comment.