Skip to content

Commit ee87636

Browse files
committed
redevelop main functionality
1 parent 649c670 commit ee87636

File tree

12 files changed

+266
-2223
lines changed

12 files changed

+266
-2223
lines changed

src/compas_skeleton/__init__.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
"""
2-
********************************************************************************
3-
compas_skeleton
4-
********************************************************************************
5-
6-
.. currentmodule:: compas_skeleton
7-
8-
9-
.. toctree::
10-
:maxdepth: 1
11-
12-
compas_skeleton.datastructure
13-
compas_skeleton.rhino
14-
15-
16-
"""
17-
18-
from __future__ import print_function
19-
201
import os
21-
import compas
222

233

244
__author__ = ["Wenqian Yang"]
@@ -35,25 +15,5 @@
3515
DOCS = os.path.abspath(os.path.join(HOME, "docs"))
3616
TEMP = os.path.abspath(os.path.join(HOME, "temp"))
3717

38-
# Check if package is installed from git
39-
# If that's the case, try to append the current head's hash to __version__
40-
try:
41-
git_head_file = compas._os.absjoin(HOME, '.git', 'HEAD')
42-
43-
if os.path.exists(git_head_file):
44-
# git head file contains one line that looks like this:
45-
# ref: refs/heads/master
46-
with open(git_head_file, 'r') as git_head:
47-
_, ref_path = git_head.read().strip().split(' ')
48-
ref_path = ref_path.split('/')
49-
50-
git_head_refs_file = compas._os.absjoin(HOME, '.git', *ref_path)
51-
52-
if os.path.exists(git_head_refs_file):
53-
with open(git_head_refs_file, 'r') as git_head_ref:
54-
git_commit = git_head_ref.read().strip()
55-
__version__ += '-' + git_commit[:8]
56-
except Exception:
57-
pass
5818

5919
__all__ = ["HOME", "DATA", "DOCS", "TEMP"]

src/compas_skeleton/datastructure/__init__.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)