Compare commits

..

5 Commits

Author SHA1 Message Date
2ac90bd35c Archiving build artefacts 2021-07-16 13:35:32 +02:00
3685db6892 Im dumb 2021-07-16 13:31:03 +02:00
d5789cef75 Screw it, building is not handled by pipenv 2021-07-16 13:28:58 +02:00
5fca4dc52a Setuptools outside of venv 2021-07-16 13:24:01 +02:00
cbf45af5f5 setuptools dev depedency 2021-07-16 13:20:03 +02:00
3 changed files with 11 additions and 3 deletions

10
Jenkinsfile vendored
View File

@ -13,12 +13,12 @@ pipeline {
} }
stages { stages {
stage('setup') { stage('setup') {
steps { steps {
script { script {
sh 'pipenv install' sh 'pipenv install'
sh 'pipenv install --dev' sh 'pipenv install --dev'
sh 'pip install setuptools'
} }
} }
} }
@ -34,9 +34,15 @@ pipeline {
stage('build') { stage('build') {
steps { steps {
script { script {
sh 'python django_lostplaces/setup.py bdist_wheel --universal' sh 'pipenv run build'
} }
} }
} }
} }
post {
success {
archiveArtifacts artifacts: 'dist/*.whl', fingerprint: true
}
}
} }

View File

@ -12,6 +12,7 @@ wheel = "*"
twine = "*" twine = "*"
pandoc = "*" pandoc = "*"
pylint-django = "*" pylint-django = "*"
setuptools = "*"
[packages] [packages]
django = "*" django = "*"
@ -26,3 +27,4 @@ server = "django_lostplaces/manage.py runserver --ipv6"
dbshell = "django_lostplaces/manage.py dbshell" dbshell = "django_lostplaces/manage.py dbshell"
showmigrations = "django_lostplaces/manage.py showmigrations" showmigrations = "django_lostplaces/manage.py showmigrations"
makemigrations = "django_lostplaces/manage.py makemigrations --no-input" makemigrations = "django_lostplaces/manage.py makemigrations --no-input"
build = "django_lostplaces/setup.py bdist_wheel --universal"

View File

@ -3,7 +3,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
with open('../Readme.md') as f: with open('Readme.md') as f:
readme = f.read() readme = f.read()
setup( setup(