From b19ad536e8f36f4c76683c946a32edca13c21009 Mon Sep 17 00:00:00 2001 From: Abner G Jacobsen Date: Thu, 6 Jul 2017 19:21:47 -0300 Subject: [PATCH] Initial commit --- .gitchangelog.rc | 289 +++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 143 +++++++++++++++++++++++ AUTHORS.md | 7 ++ CHANGELOG.md | 1 + CONTRIBUTING.md | 21 ++++ LICENSE | 21 ++++ Makefile | 203 +++++++++++++++++++++++++++++++++ README.md | 14 +++ src/.gitkeep | 0 tools/.gitkeep | 0 10 files changed, 699 insertions(+) create mode 100644 .gitchangelog.rc create mode 100644 .gitignore create mode 100644 AUTHORS.md create mode 100644 CHANGELOG.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md create mode 100644 src/.gitkeep create mode 100644 tools/.gitkeep diff --git a/.gitchangelog.rc b/.gitchangelog.rc new file mode 100644 index 0000000..453e68e --- /dev/null +++ b/.gitchangelog.rc @@ -0,0 +1,289 @@ +# -*- coding: utf-8; mode: python -*- +## +## Format +## +## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...] +## +## Description +## +## ACTION is one of 'chg', 'fix', 'new' +## +## Is WHAT the change is about. +## +## 'chg' is for refactor, small improvement, cosmetic changes... +## 'fix' is for bug fixes +## 'new' is for new features, big improvement +## +## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc' +## +## Is WHO is concerned by the change. +## +## 'dev' is for developpers (API changes, refactors...) +## 'usr' is for final users (UI changes) +## 'pkg' is for packagers (packaging changes) +## 'test' is for testers (test only related changes) +## 'doc' is for doc guys (doc only changes) +## +## COMMIT_MSG is ... well ... the commit message itself. +## +## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic' +## +## They are preceded with a '!' or a '@' (prefer the former, as the +## latter is wrongly interpreted in github.) Commonly used tags are: +## +## 'refactor' is obviously for refactoring code only +## 'minor' is for a very meaningless change (a typo, adding a comment) +## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...) +## 'wip' is for partial functionality but complete subfunctionality. +## +## Example: +## +## new: usr: support of bazaar implemented +## chg: re-indentend some lines !cosmetic +## new: dev: updated code to be compatible with last version of killer lib. +## fix: pkg: updated year of licence coverage. +## new: test: added a bunch of test around user usability of feature X. +## fix: typo in spelling my name in comment. !minor +## +## Please note that multi-line commit message are supported, and only the +## first line will be considered as the "summary" of the commit message. So +## tags, and other rules only applies to the summary. The body of the commit +## message will be displayed in the changelog without reformatting. + + +## +## ``ignore_regexps`` is a line of regexps +## +## Any commit having its full commit message matching any regexp listed here +## will be ignored and won't be reported in the changelog. +## +ignore_regexps = [ + r'@minor', r'!minor', + r'@cosmetic', r'!cosmetic', + r'@refactor', r'!refactor', + r'@wip', r'!wip', + r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:', + r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:', + r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$', + r'^$', ## ignore commits with empty messages +] + + +## ``section_regexps`` is a list of 2-tuples associating a string label and a +## list of regexp +## +## Commit messages will be classified in sections thanks to this. Section +## titles are the label, and a commit is classified under this section if any +## of the regexps associated is matching. +## +## Please note that ``section_regexps`` will only classify commits and won't +## make any changes to the contents. So you'll probably want to go check +## ``subject_process`` (or ``body_process``) to do some changes to the subject, +## whenever you are tweaking this variable. +## +section_regexps = [ + ('New', [ + r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', + ]), + ('Changes', [ + r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', + ]), + ('Fix', [ + r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', + ]), + + ('Other', None ## Match all lines + ), + +] + + +## ``body_process`` is a callable +## +## This callable will be given the original body and result will +## be used in the changelog. +## +## Available constructs are: +## +## - any python callable that take one txt argument and return txt argument. +## +## - ReSub(pattern, replacement): will apply regexp substitution. +## +## - Indent(chars=" "): will indent the text with the prefix +## Please remember that template engines gets also to modify the text and +## will usually indent themselves the text if needed. +## +## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns +## +## - noop: do nothing +## +## - ucfirst: ensure the first letter is uppercase. +## (usually used in the ``subject_process`` pipeline) +## +## - final_dot: ensure text finishes with a dot +## (usually used in the ``subject_process`` pipeline) +## +## - strip: remove any spaces before or after the content of the string +## +## - SetIfEmpty(msg="No commit message."): will set the text to +## whatever given ``msg`` if the current text is empty. +## +## Additionally, you can `pipe` the provided filters, for instance: +#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ") +#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') +#body_process = noop +body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip + + +## ``subject_process`` is a callable +## +## This callable will be given the original subject and result will +## be used in the changelog. +## +## Available constructs are those listed in ``body_process`` doc. +subject_process = (strip | + ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') | + SetIfEmpty("No commit message.") | ucfirst | final_dot) + + +## ``tag_filter_regexp`` is a regexp +## +## Tags that will be used for the changelog must match this regexp. +## +tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$' + + +## ``unreleased_version_label`` is a string or a callable that outputs a string +## +## This label will be used as the changelog Title of the last set of changes +## between last valid tag and HEAD if any. +unreleased_version_label = "CURRENT" + + +## ``output_engine`` is a callable +## +## This will change the output format of the generated changelog file +## +## Available choices are: +## +## - rest_py +## +## Legacy pure python engine, outputs ReSTructured text. +## This is the default. +## +## - mustache() +## +## Template name could be any of the available templates in +## ``templates/mustache/*.tpl``. +## Requires python package ``pystache``. +## Examples: +## - mustache("markdown") +## - mustache("restructuredtext") +## +## - makotemplate() +## +## Template name could be any of the available templates in +## ``templates/mako/*.tpl``. +## Requires python package ``mako``. +## Examples: +## - makotemplate("restructuredtext") +## +#output_engine = rest_py +#output_engine = mustache("restructuredtext") +output_engine = mustache("markdown") +#output_engine = makotemplate("ChangeLog") + + +## ``include_merge`` is a boolean +## +## This option tells git-log whether to include merge commits in the log. +## The default is to include them. +include_merge = True + + +## ``log_encoding`` is a string identifier +## +## This option tells gitchangelog what encoding is outputed by ``git log``. +## The default is to be clever about it: it checks ``git config`` for +## ``i18n.logOutputEncoding``, and if not found will default to git's own +## default: ``utf-8``. +#log_encoding = 'utf-8' + + +## ``publish`` is a callable +## +## Sets what ``gitchangelog`` should do with the output generated by +## the output engine. ``publish`` is a callable taking one argument +## that is an interator on lines from the output engine. +## +## Some helper callable are provided: +## +## Available choices are: +## +## - stdout +## +## Outputs directly to standard output +## (This is the default) +## +## - FileInsertAtFirstRegexMatch(file, pattern, idx=lamda m: m.start()) +## +## Creates a callable that will parse given file for the given +## regex pattern and will insert the output in the file. +## ``idx`` is a callable that receive the matching object and +## must return a integer index point where to insert the +## the output in the file. Default is to return the position of +## the start of the matched string. +## +## - FileRegexSubst(file, pattern, replace, flags) +## +## Apply a replace inplace in the given file. Your regex pattern must +## take care of everything and might be more complex. Check the README +## for a complete copy-pastable example. +## +# publish = FileInsertIntoFirstRegexMatch( +# "CHANGELOG.rst", +# r'/(?P[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/', +# idx=lambda m: m.start(1) +# ) +#publish = stdout + + +## ``revs`` is a list of callable or a list of string +## +## callable will be called to resolve as strings and allow dynamical +## computation of these. The result will be used as revisions for +## gitchangelog (as if directly stated on the command line). This allows +## to filter exaclty which commits will be read by gitchangelog. +## +## To get a full documentation on the format of these strings, please +## refer to the ``git rev-list`` arguments. There are many examples. +## +## Using callables is especially useful, for instance, if you +## are using gitchangelog to generate incrementally your changelog. +## +## Some helpers are provided, you can use them:: +## +## - FileFirstRegexMatch(file, pattern): will return a callable that will +## return the first string match for the given pattern in the given file. +## If you use named sub-patterns in your regex pattern, it'll output only +## the string matching the regex pattern named "rev". +## +## - Caret(rev): will return the rev prefixed by a "^", which is a +## way to remove the given revision and all its ancestor. +## +## Please note that if you provide a rev-list on the command line, it'll +## replace this value (which will then be ignored). +## +## If empty, then ``gitchangelog`` will act as it had to generate a full +## changelog. +## +## The default is to use all commits to make the changelog. +#revs = ["^1.0.3", ] +#revs = [ +# Caret( +# FileFirstRegexMatch( +# "CHANGELOG.rst", +# r"(?P[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")), +# "HEAD" +#] +revs = [] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..db199f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,143 @@ + +# Created by https://www.gitignore.io/api/git,go,vim,python + +### Git ### +*.orig + +### Go ### +# Binaries for programs and plugins +*.exe +*.dll +*.so +*.dylib + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 +.glide/ + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +### Vim ### +# swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-v][a-z] +[._]sw[a-p] +# session +Session.vim +# temporary +.netrwhist +*~ +# auto-generated tag files +tags + +# End of https://www.gitignore.io/api/git,go,vim,python + + +### Custom ### +tools/bump +tools/github-release +dist/ +build/ diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 0000000..f47c620 --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,7 @@ +# Authors + +## Project Lead +[Abner G Jacobsen](https://github.com/admindaspanel) <admin@daspanel.com> + +## Contributors +None yet. [Why not be the first?](CONTRIBUTING.md) diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..420e6f2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +# Change Log diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..5bb853e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,21 @@ +# Contributing +Contributions are welcome, and they are greatly appreciated! + +Every little bit helps, and credit will always be given. + +## Types of Contributions + +### Bug Reports, Feature Requests, and Feedback +Create a [new project issue][1]! Try to be as descriptive as possible. + +### Bug Fixes, New Features and Documentation +Create a [new merge/pull request][2]! Make sure to follow the guidelines. + +## Merge/Pull Request Guidelines +Make sure to have atomic commits and contextual commit messages! + +[Check out this awesome blog post by Chris Beams for more information.][3] + +[1]: https://github.com/daspanel/svc-api/issues/new +[2]: https://github.com/daspanel/svc-api/compare +[3]: http://chris.beams.io/posts/git-commit/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d8845bb --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Abner G Jacobsen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1329e8d --- /dev/null +++ b/Makefile @@ -0,0 +1,203 @@ +###################################################################### +# Thanks: +# https://github.com/aktau/github-release +# https://github.com/boertel/bump +# https://github.com/MozillaSecurity/dolly +# https://gist.github.com/danielestevez/2044589 +# https://github.com/vaab/gitchangelog +# https://github.com/tj/git-extras (not implemented yet because not +# know to generate release changfelog like github-release) +###################################################################### + +# Sane checks +ifeq ($(GITHUB_TOKEN),) + $(error GITHUB_TOKEN is not set) +endif + +###################################################################### +# Constants +###################################################################### + +LAST_TAG := $(shell git describe --abbrev=0 --tags) +COMPARISON := "$(LAST_TAG)..HEAD" + +CUR_VER=$(shell git describe --abbrev=0 --tags) +CUR_TAG=$(shell git describe --abbrev=0 --tags) +NUM_TAGS=$(shell git tag | wc -l) +IS_GITDIR=$(shell git rev-parse --is-inside-work-tree) +NEXT_PATCH=$(shell tools/bump patch `git describe --tags --abbrev=0`) +NEXT_MINOR=$(shell tools/bump minor `git describe --tags --abbrev=0`) +NEXT_MAJOR=$(shell tools/bump major `git describe --tags --abbrev=0`) +DIST_SRC=$(shell ls src/) + +.PHONY: clean-pyc clean-build clean guard-% + +help: + @echo "build-zip - build ZIP files to be dsitributed in the github release." + @echo "build-dist - put files under build/ into dist/." + @echo "docker-up-dev - Run docker-compose -f docker-compose-dev.yml up -d." + @echo "docker-down-dev - Run docker-compose -f docker-compose-dev.yml down." + @echo "docker-build-dev - build Docker dev image." + @echo "docker-clean-dev - clean Docker dev image." + @echo "docker-clean-dangling - clean all Docker dangling images." + @echo "check-status - will check whether there are outstanding changes." + @echo "check-release - will check whether the current directory matches the tagged release in git." + @echo "patch-release - increments the patch release level, build and push to github." + @echo "minor-release - increments the minor release level, build and push to github." + @echo "major-release - increments the major release level, build and push to github." + @echo "clean - remove all build artifacts" + @echo "clean-build - remove build artifacts" + @echo "clean-pyc - remove Python file artifacts" + @echo "showver - will show the current release tag based on the directory content." + @echo "install-tools - install tools needed to manage the project" + +rootfs-fixperms: + -@chmod -R go-w src + +docker-down-dev: + docker-compose -f docker-compose-dev.yml down + +docker-up-dev: + docker-compose -f docker-compose-dev.yml up -d + +docker-clean-dangling: + docker ps -a -f status=exited -q | xargs -r docker rm -v + docker images --no-trunc -q -f dangling=true | xargs -r docker rmi + +docker-clean-dev: + -@docker rmi admindaspanel/svc-api-dev + +docker-build-dev: clean docker-clean-dev rootfs-fixperms + docker build -f Dockerfile.dev -t admindaspanel/svc-api-dev . + +install-tools: + sudo pip install gitchangelog pystache + wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 -O github-release.tar.bz2 + tar xvjf github-release.tar.bz2 --strip-components 3 -C tools/ + rm github-release.tar.bz2 + chmod ugo+x tools/github-release + wget https://raw.githubusercontent.com/boertel/bump/master/bump -O tools/bump + chmod ugo+x tools/bump + +# Verify if env variable passe as argument is defined +guard-%: GUARD + @ if [ -z '${${*}}' ]; then echo 'Environment variable $* not set.' && exit 1; fi + +.PHONY: GUARD +GUARD: + +patch-release: guard-GITHUB_TOKEN clean check-status check-release build-zip build-dist + echo "Patch release $(NEXT_PATCH)..." + @git tag -a "$(NEXT_PATCH)" -m "Patch release $(NEXT_PATCH)" + @gitchangelog > ./CHANGELOG.md + @git tag -d "$(NEXT_PATCH)" + @git add CHANGELOG.md + @git commit -am "CHANGELOG.md for $(NEXT_PATCH) generated !cosmetic" + @git tag -a "$(NEXT_PATCH)" -m "Patch release $(NEXT_PATCH)" + @git push + @git push --tags + @changelog=$$(git log $(COMPARISON) --oneline --no-merges) ; \ + echo "**Changelog $(NEXT_PATCH)**
$$changelog"; \ + tools/github-release release -u daspanel -r svc-api -t $(NEXT_PATCH) -n $(NEXT_PATCH) -d "**Changelog**
$$changelog" + @DIST_FILES="$(shell ls dist/)"; \ + echo "$$DIST_FILES"; \ + for i in $$DIST_FILES; \ + do \ + echo "Uploading $$i..."; \ + tools/github-release upload -u daspanel -r svc-api -t $(NEXT_PATCH) -n $$i -f dist/$$i -R; \ + done + +minor-release: guard-GITHUB_TOKEN clean check-status check-release build-zip build-dist + echo "Minor release $(NEXT_MINOR)..." + @git tag -a "$(NEXT_MINOR)" -m "Minor release $(NEXT_MINOR)" + @gitchangelog > ./CHANGELOG.md + @git tag -d "$(NEXT_MINOR)" + @git add CHANGELOG.md + @git commit -am "CHANGELOG.md for $(NEXT_MINOR) generated !cosmetic" + @git tag -a "$(NEXT_MINOR)" -m "Minor release $(NEXT_MINOR)" + @git push + @git push --tags + echo $(COMPARISON) + @changelog=$$(git log $(COMPARISON) --oneline --no-merges) ; \ + echo "**Changelog $(NEXT_MINOR)**
$$changelog"; \ + tools/github-release release -u daspanel -r svc-api -t $(NEXT_MINOR) -n $(NEXT_MINOR) -d "**Changelog**
$$changelog" + @DIST_FILES="$(shell ls dist/)"; \ + echo "$$DIST_FILES"; \ + for i in $$DIST_FILES; \ + do \ + echo "Uploading $$i..."; \ + tools/github-release upload -u daspanel -r svc-api -t $(NEXT_MINOR) -n $$i -f dist/$$i -R; \ + done + +major-release: guard-GITHUB_TOKEN clean check-status check-release build-zip build-dist + echo "Major release $(NEXT_MAJOR)..." + @git tag -a "$(NEXT_MAJOR)" -m "Major release $(NEXT_MAJOR)" + @gitchangelog > ./CHANGELOG.md + @git tag -d "$(NEXT_MAJOR)" + @git add CHANGELOG.md + @git commit -am "CHANGELOG.md for $(NEXT_MAJOR) generated !cosmetic" + @git tag -a "$(NEXT_MAJOR)" -m "Major release $(NEXT_MAJOR)" + @git push + @git push --tags + @changelog=$$(git log $(COMPARISON) --oneline --no-merges) ; \ + echo "**Changelog $(NEXT_MAJOR)**
$$changelog"; \ + tools/github-release release -u daspanel -r svc-api -t $(NEXT_MAJOR) -n $(NEXT_MAJOR) -d "**Changelog**
$$changelog" + @DIST_FILES="$(shell ls dist/)"; \ + echo "$$DIST_FILES"; \ + for i in $$DIST_FILES; \ + do \ + echo "Uploading $$i..."; \ + tools/github-release upload -u daspanel -r svc-api -t $(NEXT_MAJOR) -n $$i -f dist/$$i -R; \ + done + + +showver: + @echo $(CUR_TAG) + +build-zip: + -@mkdir -p build + @rm -rf build/*.zip + @for i in $(DIST_SRC); \ + do \ + cd src/$$i; \ + zip -q -r ../../build/$$i.zip *; \ + cd ../..; \ + done + +build-dist: + -@mkdir -p dist + @rm -rf dist/* + @BUILD_SRC="$(shell ls build/)"; \ + echo "$$BUILD_SRC"; \ + for i in $$BUILD_SRC; \ + do \ + cp build/$$i dist/$$i; \ + done + +check-status: + @if [ `git status -s . | wc -l` != 0 ] ; then echo "\n\n\n\n\tERROR: YOU HAVE UNCOMMITTED CHANGES\n\n Commit any pending changes before push new release.\n\n\n\n"; exit 1; fi + +check-release: + @echo "LAST_TAG=$(LAST_TAG), Current TAG $(CUR_TAG), RELEASE $(CUR_VER) - $(NUM_TAGS) - $(IS_GITDIR)" + @if [ $(IS_GITDIR) != true ] ; then echo "\n\n\n\n\tERROR: YOU DON'T HAVE CREATED A GIT PROJECT\n\n Create and initialize a git project before continue.\n\n\n\n"; exit 1; fi + @if [ $(NUM_TAGS) = 0 ] ; then echo "\n\n\n\n\tERROR: YOU NOT HAVE CREATED ANY GIT TAG\n\n Commit any pending changes and create new tag/release using:\n\n\t'make [minor,major,patch]-release'.\n\n\n\n"; exit 1; fi + @echo "*** OK to push release ***" + +clean: clean-build clean-pyc + find . -name '*~' -exec rm -f {} + + +clean-build: + rm -rf build/* + rm -rf dist/* + rm -rf .eggs/ + find . -name '*.egg-info' -exec rm -fr {} + + find . -name '*.egg' -exec rm -f {} + + +clean-pyc: + find . -name '*.pyc' -exec rm -f {} + + find . -name '*.pyo' -exec rm -f {} + + find . -name '__pycache__' -exec rm -fr {} + + find . -name '*~' -exec rm -f {} + + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..92ceb50 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# svc-api +Docker container running Daspanel API server + +## Development +See [CONTRIBUTING](CONTRIBUTING.md) + +## History +See [CHANGELOG](CHANGELOG.md) + +## Credits +See [AUTHORS](AUTHORS.md) + +## License +See [LICENSE](LICENSE) diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tools/.gitkeep b/tools/.gitkeep new file mode 100644 index 0000000..e69de29