Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 24cb08f

Browse files
author
ydcjeff
committed
v0.2.9: build
1 parent 5a32dd4 commit 24cb08f

File tree

6 files changed

+62
-10
lines changed

6 files changed

+62
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python setup.py install
3939
python setup.py sdist bdist_wheel
4040
twine check dist/*
41-
twine upload dist/* -u $USERNAME -p $PASSWORD
41+
twine upload dist/*.whl dist/*.tar.gz -u $USERNAME -p $PASSWORD
4242
- store_test_results:
4343
path: test-results
4444
- store_artifacts:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ Options:
8383
-h, --help Output usage information
8484
```
8585

86+
[![asciicast](https://asciinema.org/a/317100.svg)](https://asciinema.org/a/317100)
87+
8688
## LICENSE
8789

8890
[MIT](https://opensource.org/licenses/MIT)

clifold/clifold_main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def __version__():
1111
"""return package version"""
12-
return "0.2.8"
12+
return "0.2.9"
1313

1414

1515
def cli():
@@ -25,17 +25,17 @@ def cli():
2525

2626
group = parser.add_argument_group('Options')
2727
group.add_argument('-g', '--git', action='store_true', default=True,
28-
dest='git', help='Make git initialization')
28+
dest='git', help='Make git initialization (Default: True)')
2929
group.add_argument('-ng', '--no-git', action='store_false',
3030
dest='git', help='Skip git initialization')
3131

3232
group.add_argument('-p', '--pkg', action='store_true', default=True,
33-
dest='pkg', help='Ask packages to install')
33+
dest='pkg', help='Ask packages to install (Default: True)')
3434
group.add_argument('-np', '--no-pkg', action='store_false', dest='pkg',
3535
help='Skip packages installation')
3636

3737
group.add_argument('-i', '--init', action='store_true', default=True,
38-
dest='init', help='Create setup.py file')
38+
dest='init', help='Create setup.py file (Default: True)')
3939
group.add_argument('-ni', '--no-init', action='store_false',
4040
dest='init', help='Skip setup.py file')
4141

docs/index.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
}
3838

3939
p {
40-
margin: 3em;
40+
margin-top: 3em;
41+
margin-bottom: 3em;
4142
font-size: 1.5em;
4243
display: block;
4344
position: relative;
@@ -79,9 +80,12 @@
7980
}
8081

8182
.clifold {
82-
font-size: 5em;
83+
font-size: 3.25em;
8384
font-family: "Dosis", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
8485
color: #5acfc9;
86+
margin-left: 1em;
87+
margin-right: 1em;
88+
text-align: center;
8589
}
8690
</style>
8791
</head>
@@ -95,8 +99,8 @@
9599
</p>
96100
<p id="three">
97101
Are you copying the content of setup.py and .gitignore from
98-
<a href="https://docs.python.org">Python Docs</a> and from
99-
<a href="https://github.com">GitHub</a> till now?
102+
<a href="https://docs.python.org" target="_blank" rel="noopener noreferrer">Python Docs</a> and from
103+
<a href="https://github.com" target="_blank" rel="noopener noreferrer">GitHub</a> till now?
100104
</p>
101105
<p id="four">
102106
Do you want to get rid of those time consuming configurations?
@@ -121,7 +125,7 @@
121125
<p id="eight">
122126
<h1>Introducing...</h1>
123127
</p>
124-
<img src="logo.svg" alt="Clifold logo" />
128+
<img width="250" src="logo.svg" alt="Clifold logo" />
125129
<h1 class="clifold">Clifold.py</h1>
126130
<p id="nine">
127131
<div id="clifold">
@@ -135,6 +139,10 @@ <h1 class="clifold">Clifold.py</h1>
135139
<li>requests to fetch .gitignore & setup.py.</li>
136140
</div>
137141
</p>
142+
<script id="asciicast-317100" src="https://asciinema.org/a/317100.js" async></script>
143+
<p>
144+
<a href="https://github.com/ydcjeff/clifold" target="_blank" rel="noopener noreferrer">GitHub</a>
145+
</p>
138146
</body>
139147

140148
</html>

tests/test_commands.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def test_arbitary_commands():
9898
assert arbitary_status == 512
9999

100100

101+
def test_proj_only():
102+
output = os.system('clif torch')
103+
assert output == 256
104+
105+
101106
def test_cli():
102107
with pytest.raises(SystemExit):
103108
clifold_main.cli()

tests/test_main.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,40 @@ def test_check():
3737
assert output14 == True
3838
assert output15 == True
3939
assert output16 == True
40+
41+
42+
def test_torch():
43+
os.system("cd ..")
44+
output1 = os.path.exists("torch-venv")
45+
output2 = os.path.exists("torch-venv/bin")
46+
output3 = os.path.exists("torch-venv/include")
47+
output4 = os.path.exists("torch-venv/lib")
48+
output5 = os.path.exists("torch-venv/pyvenv.cfg")
49+
output6 = os.path.exists("torch-venv/torch")
50+
output7 = os.path.exists("torch-venv/torch/torch")
51+
output8 = os.path.exists("torch-venv/torch/torch/__init__.py")
52+
output9 = os.path.exists("torch-venv/torch/torch/main.py")
53+
output10 = os.path.exists("torch-venv/torch/tests")
54+
output11 = os.path.exists("torch-venv/torch/tests/__init__.py")
55+
output12 = os.path.exists("torch-venv/torch/tests/test_main.py")
56+
output13 = os.path.exists("torch-venv/torch/.gitignore")
57+
output14 = os.path.exists("torch-venv/torch/MANIFEST.in")
58+
output15 = os.path.exists("torch-venv/torch/README.md")
59+
output16 = os.path.exists("torch-venv/torch/setup.py")
60+
61+
assert output1 == True
62+
assert output2 == True
63+
assert output3 == True
64+
assert output4 == True
65+
assert output5 == True
66+
assert output6 == True
67+
assert output7 == True
68+
assert output8 == True
69+
assert output9 == True
70+
assert output10 == True
71+
assert output11 == True
72+
assert output12 == True
73+
assert output13 == True
74+
assert output14 == True
75+
assert output15 == True
76+
assert output16 == True

0 commit comments

Comments
 (0)