From c1790db0dd03f06b2e70729da2e194f20a956931 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Fri, 12 Jan 2024 09:16:45 +0100 Subject: [PATCH] build and publish package --- .gitlab-ci.yml | 11 +++++++++++ LICENSE | 29 +++++++++++++++++++++++++++++ MANIFEST.in | 2 ++ pyproject.toml | 7 +++++++ requirements.txt | 2 +- setup.cfg | 24 ++++++++++++++++++++++++ 6 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 LICENSE create mode 100644 MANIFEST.in create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4016df6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +upload: + stage: deploy + needs: [] + image: python:latest + only: + - main + script: + - pip install "setuptools>=62.6" twine + - pip install -r requirements.txt + - python setup.py sdist + - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fec6e12 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2019, Bryan BRANCOTTE +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9c8317c --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE +include README.rst \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d541b30 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[tool.black] +line-length = 120 +skip-string-normalization = true +exclude = '''( + migrations\/ | manage.py | wsgi.py | .venv | venv +) +''' diff --git a/requirements.txt b/requirements.txt index fe81162..f550897 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -django-basetheme-bootstrap>=v1.6 \ No newline at end of file +django-basetheme-bootstrap>=1.6.1 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..797c606 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = ebaii-theme +version = 1.3 +description = A theme for EBAII school for django-basetheme-bootstrap app +long_description = file: README.rst +author = Bryan Brancotte +author_email = bryan.brancotte@pasteur.fr +license = BSD-3-Clause # Example license +classifiers = + Environment :: Web Environment + Framework :: Django + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Topic :: Internet :: WWW/HTTP + Topic :: Internet :: WWW/HTTP :: Dynamic Content + +[options] +include_package_data = true +packages = find: +python_requires = >=3.4 +install_requires = file: requirements.txt -- GitLab