Skip to content
Snippets Groups Projects
Commit e8d8c182 authored by Andreas Burbach's avatar Andreas Burbach
Browse files

poetry

parent b7ef6dbf
No related branches found
No related tags found
1 merge request!1Merge feedingChickenWithChicken into main
image: docker
services:
- docker:dind
stages:
- build
- test
- deploy
before_script:
- docker version
- apk add --no-cache docker-compose
- docker-compose version
- docker login -u gitlab-ci-token -p $REGISTRY_TOKEN $REGISTRY
after_script:
- docker-compose -f docker-compose.ci.yml down
- docker-compose -f docker-compose.ci.yml ps
build:
stage: build
script:
- echo "Building ..."
- docker-compose -f docker-compose.ci.yml build
- docker-compose -f docker-compose.ci.yml push
test:
stage: test
needs:
- build
script:
- echo "Testing ..."
- docker-compose -f docker-compose.ci.yml pull
- docker-compose -f docker-compose.ci.yml run web sh -c "pipenv run python manage.py makemigrations && pipenv run python manage.py migrate && pipenv run python manage.py test core -v 2"
deploy:
stage: deploy
needs:
- test
script:
- echo "Deploying ..."
- pip install poetry
- mw /the_social_network /not_needed
- mw /core /the_social_network
- poetry --version
- poetry config pypi-token.pypi $POETRY_PYPI_TOKEN_PYPI
- poetry publish
\ No newline at end of file
include LICENSE
include README.rst
include core/*
exclude the_social_network/*
exclude setup.cfg
exclude MANIFEST.in
exclude manage.py
\ No newline at end of file
[tool.poetry]
name = "the-social-network"
version = "0.0.1"
description = "Basic social network core."
authors = ["Marc Feger <marc.feger@hhu.de>"]
license = "BSD-4"
exclude = ["core"]
[tool.poetry.dependencies]
python = "^3.8"
Django = "^3.2.9"
djangorestframework = "^3.12.4"
Pillow = "^8.4.0"
django-cors-headers = "^3.10.0"
django-dotenv = "^1.4.2"
uWSGI = "^2.0.20"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[metadata]
name = the-social-network
version = 0.1
description = Basic core of all social network backends
long_description = file: README.rst
url = https://www.example.com/
author = Marc Feger
author_email = marc.feger@uni-duesseldorf.de
license = BSD-4-Clause
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 3.1.2 # Replace "X.Y" as appropriate
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.9
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
[options]
include_package_data = true
packages = find:
\ No newline at end of file
from setuptools import setup
setup()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment