From 1e012b3a5b77c7fad3ad80ed57a7d0bbc9aa6b83 Mon Sep 17 00:00:00 2001 From: Jens Kleineheismann Date: Thu, 10 Oct 2019 13:28:28 +0200 Subject: [PATCH] fixed .gitignore --- .buildbot/dist/01-sdist.sh | 22 ++++++++++++++++++++++ .gitignore | 20 ++++++++++---------- 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 .buildbot/dist/01-sdist.sh diff --git a/.buildbot/dist/01-sdist.sh b/.buildbot/dist/01-sdist.sh new file mode 100644 index 0000000..267c9eb --- /dev/null +++ b/.buildbot/dist/01-sdist.sh @@ -0,0 +1,22 @@ +if test -z "$DIST_FORMAT" ; then + DIST_FORMAT="gztar" +fi + +python setup.py sdist --dist-dir . --formats "$DIST_FORMAT" + +if test -n "$DIST_FILE" ; then + dist_name=`python setup.py --name` + dist_version=`python setup.py --version` + case "$DIST_FORMAT" in + gztar) + dist_suffix=".tar.gz" + ;; + *) + dist_suffix=".${DIST_FORMAT}" + ;; + esac + produced_file="${dist_name}-${dist_version}${dist_suffix}" + if test "$produced_file" != "$DIST_FILE" ; then + mv "$produced_file" "$DIST_FILE" + fi +fi diff --git a/.gitignore b/.gitignore index 1a6ba11..8ca2309 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,15 @@ -.idea/ +/.idea/ -manage.py -conf/ -pythonenv/ -tmp/ -var/ +/manage.py +/conf/ +/pythonenv/ +/tmp/ +/var/ *.pyc -.coverage -geckodriver.log +/.coverage +/geckodriver.log -django_test.egg-info/ -dist/ +/django_test.egg-info/ +/dist/