diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..137fb381afb68daedc80ff91318b00c249ef8a82 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +--- +image: python:3.6 + +stages: + - test + - release + +test: + stage: test + script: + - echo 'Make your tests here !' + except: + - master + tags: + - sib + +publish: + stage: release + before_script: + - git config user.name "${GITLAB_USER_NAME}" + - git config user.email "${GITLAB_USER_EMAIL}" + - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@git.happy-dev.fr/${CI_PROJECT_PATH}.git" + - pip install git+https://github.com/plup/python-semantic-release + - pip install sib-commit-parser + script: + - semantic-release publish + only: + - master + tags: + - sib diff --git a/djangoldp_notification/__init__.py b/djangoldp_notification/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c6f830d7e767a643f720342a482a1483d9b95f71 --- /dev/null +++ b/djangoldp_notification/__init__.py @@ -0,0 +1,2 @@ +__version__ = '0.0.0' +name = "djangoldp_notification" diff --git a/djangoldp_notifications/admin.py b/djangoldp_notification/admin.py similarity index 100% rename from djangoldp_notifications/admin.py rename to djangoldp_notification/admin.py diff --git a/djangoldp_notification/apps.py b/djangoldp_notification/apps.py new file mode 100644 index 0000000000000000000000000000000000000000..934aba1dbffe0e14dcae90c406aa3069db959922 --- /dev/null +++ b/djangoldp_notification/apps.py @@ -0,0 +1,4 @@ +from django.apps import AppConfig + +class DjangoldpNotificationConfig(AppConfig): + name = 'djangoldp_notification' diff --git a/djangoldp_notifications/migrations/0001_initial.py b/djangoldp_notification/migrations/0001_initial.py similarity index 100% rename from djangoldp_notifications/migrations/0001_initial.py rename to djangoldp_notification/migrations/0001_initial.py diff --git a/djangoldp_notifications/migrations/__init__.py b/djangoldp_notification/migrations/__init__.py similarity index 100% rename from djangoldp_notifications/migrations/__init__.py rename to djangoldp_notification/migrations/__init__.py diff --git a/djangoldp_notifications/models.py b/djangoldp_notification/models.py similarity index 100% rename from djangoldp_notifications/models.py rename to djangoldp_notification/models.py diff --git a/djangoldp_notifications/urls.py b/djangoldp_notification/urls.py similarity index 100% rename from djangoldp_notifications/urls.py rename to djangoldp_notification/urls.py diff --git a/djangoldp_notifications/__init__.py b/djangoldp_notifications/__init__.py deleted file mode 100644 index 8f85b580f5a55081811b062b0665c521a72d1529..0000000000000000000000000000000000000000 --- a/djangoldp_notifications/__init__.py +++ /dev/null @@ -1 +0,0 @@ -name = "djangoldp_notifications" \ No newline at end of file diff --git a/djangoldp_notifications/apps.py b/djangoldp_notifications/apps.py deleted file mode 100644 index 014d0a39758d40237ed6153b24275d4aade5fe17..0000000000000000000000000000000000000000 --- a/djangoldp_notifications/apps.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.apps import AppConfig - -class DjangoldpNotificationsConfig(AppConfig): - name = 'djangoldp_notifications' diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..5c2b9d44ff962166c9a76452cd6f4f9fcb3df66c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,18 @@ +[metadata] +name = djangoldp_notification +version = attr: djangoldp_notification.__version__ +url = https://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-notifications +author = Startin'blox +author_email = matthieu@happy-dev.fr +description = djangoldp package for notifications data models +license = MIT + +[options] +packages = find: +install_requires = + djangoldp~=0.5 + +[semantic_release] +version_source = tag +version_variable = djangoldp_profile/__init__.py:__version__ +commit_parser = commit_parser.parse diff --git a/setup.py b/setup.py index 18760ef417d5b1e4ca972b35c19df899cd511b4a..beda28e821662c8d9fdefee034d83a5d75f9c023 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,5 @@ -import os -from setuptools import setup, find_packages +#!/usr/bin/env python -# allow setup.py to be run from any path -os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) +from setuptools import setup -setup(name='djangoldp_notifications', - version='0.0.1', - description='djangoldp package for notifications data models', - url='https://git.happy-dev.fr/startinblox/djangoldp-packages/djangoldp-notifications', - author="Startin'blox", - author_email='matthieu@happy-dev.fr', - license='MIT', - packages=find_packages(), - zip_safe=False) +setup()