diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index c76636d..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include README.md -include MANIFEST.in -recursive-include colab_spb_theme/templates * -recursive-include colab_spb_theme/static * -recursive-exclude * __pycache__ -recursive-exclude * *.py[co] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c4146b --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +PACKAGE = colab-spb-theme +VERSION = 0.2.0 +DISTDIR = dist +PACKAGE_NAME = $(PACKAGE)-$(VERSION) +TARBALL = $(PACKAGE_NAME).tar.gz + +all: + @echo Nothing to be $@, all good. + +colab_dir=/usr/lib/colab + +dist: clean + mkdir -p $(DISTDIR)/$(PACKAGE_NAME) + tar --exclude=.git --exclude=$(DISTDIR) -cf - * | (cd $(DISTDIR)/$(PACKAGE_NAME) && tar xaf -) + cd $(DISTDIR) && tar -caf $(TARBALL) $(PACKAGE_NAME) + rm -r $(DISTDIR)/$(PACKAGE_NAME) +clean: + $(RM) $(TARBALL) + $(RM) -r $(DISTDIR) + +install: + install -d -m 0755 $(DESTDIR)/$(colab_dir)/colab-spb-theme + cp -vr colab_spb_theme $(DESTDIR)/$(colab_dir)/colab-spb-theme diff --git a/setup.py b/setup.py index 667bc96..651dd04 100644 --- a/setup.py +++ b/setup.py @@ -13,10 +13,11 @@ setup( version='0.2.0', author='Carlos Oliveira', author_email='carlospecter@gmail.com', - url='https://softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme', + url='https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme', description='The Brazilian Public Software Portal theme for Colab', long_description=__doc__, license='GPLv3', + package_dir={'colab_spb_theme': 'colab_spb_theme'}, packages=find_packages('colab_spb_theme'), zip_safe=False, install_requires=install_requires, -- libgit2 0.21.2