Skip to content

Commit 524f485

Browse files
☘️ use ruamel.yaml instead of YAML
Issue: #10
1 parent e0f8278 commit 524f485

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

1build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env python
2-
import yaml
3-
42
import os
53
import sys
4+
from ruamel.yaml import YAML
65

76

87
def run(arguments):
@@ -81,7 +80,7 @@ def parse_project_config():
8180
if os.path.exists("1build.yaml"):
8281
with open("1build.yaml", 'r') as stream:
8382
try:
84-
content = yaml.safe_load(stream)
83+
content = YAML(typ='safe').load(stream)
8584
return Project(name=(content["project"]), commands=(get_command_list_from_config(content["commands"])))
8685
except:
8786
raise ValueError(

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PyYAML==5.1
1+
ruamel.yaml>=0.15.94

setup.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name='1build',
8+
version='0.0.4',
9+
scripts=['1build'],
10+
packages=setuptools.find_packages(),
11+
install_requires=['ruamel.yaml>=0.15.94'],
12+
setup_requires=['ruamel.yaml>=0.15.94'],
13+
url='https://github.com/gopinath-langote/1build',
14+
license='MIT',
15+
author='Gopinath Langote',
16+
author_email='[email protected]',
17+
description='1 build command for all your build tools for each project.',
18+
long_description=long_description,
19+
long_description_content_type="text/markdown",
20+
classifiers=[
21+
"License :: OSI Approved :: MIT License",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.0",
25+
"Programming Language :: Python :: 3.1",
26+
"Programming Language :: Python :: 3.2",
27+
"Programming Language :: Python :: 3.3",
28+
"Programming Language :: Python :: 3.4",
29+
"Programming Language :: Python :: 3.5",
30+
"Programming Language :: Python :: 3.6",
31+
"Programming Language :: Python :: 3.7",
32+
"Programming Language :: Python :: 3.8",
33+
"Topic :: Terminals",
34+
"Topic :: Software Development :: Build Tools"
35+
],
36+
)

0 commit comments

Comments
 (0)