Skip to content

Commit

Permalink
fixed issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
etijskens committed Nov 11, 2019
1 parent 8e38f83 commit f38c9d4
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 3 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
This section summarizes all my steps on the way to a working micc,
including dead-ends.



issue: micc is no longer compatible with itself: `micc add foo --f2py` fails.
That is of course only a problem for myself.

v0.7.5 (2019-11-11)
===================
* fixed `Github issue #12 <https://github.com/etijskens/micc/issues/12>`_

v0.7.4 (2019-10-23)
===================
* `Github issue #3 <https://github.com/etijskens/micc/issues/3>`_
Expand Down
5 changes: 4 additions & 1 deletion micc.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
},
"cookiecutter" : {"default": "~/software/dev/workspace/micc/cookiecutter-mypackage"
,"text" :"location of the cookiecutter template"
}
},
"py" : {"default":"py"
,"text" :"python file extension"
}
}
4 changes: 4 additions & 0 deletions micc/micc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
,"type" :"click.Choice(['MIT license', 'BSD license', 'ISC license', 'Apache Software License 2.0', 'GNU General Public License v3', 'Not open source'])"
,"text" :"Choose open source license"
}
, "py"
: {"default":"py"
,"text" :"python file extension"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

def hello(who='world'):
"""'Hello world' method.

:param str who: whom to say hello to
:returns: a string
"""
result = "Hello " + who
return result

# eof
# eof
14 changes: 14 additions & 0 deletions micc_custom_build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from pathlib import Path
#if there is a custom build step the wheel tags are specific.

def build(setup_kwargs):

print('hello')
for k,v in setup_kwargs.items():
print(k,':',v)
d = Path.cwd() / 'micc'
glob = d.glob('*')
for v in glob:
print(v)
# raise Exception(f"cwd = {Path.cwd()}\n{glob}")
return 0
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ homepage = "https://github.com/etijskens/micc"

keywords = ['packaging', 'poetry']

# packages = [
# { include = "micc" },
# ]
#include = ["templates/**/*"]
build = "micc_custom_build.py"

[tool.poetry.dependencies]
python = "^3.7"
click = "^7.0"
Expand Down

0 comments on commit f38c9d4

Please sign in to comment.