Migrate to pipenv

Closes #384
This commit is contained in:
2021-02-04 13:16:47 +00:00
parent 3853ad0871
commit 9279131edf
7 changed files with 1516 additions and 90 deletions

View File

@@ -36,20 +36,20 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ env.pythonLocation }} path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }} key: ${{ env.pythonLocation }}-${{ hashFiles('Pipfile.lock') }}
- name: Install Dependencies - name: Install Dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pycodestyle coveralls django_coverage_plugin pytest-cov pip install pipenv
pip install --upgrade --upgrade-strategy eager -r requirements.txt pipenv install -d
- name: Basic Checks - name: Basic Checks
run: | run: |
pycodestyle . --exclude=migrations,node_modules pipenv run pycodestyle . --exclude=migrations,node_modules
python manage.py check pipenv run python manage.py check
python manage.py makemigrations --check --dry-run pipenv run python manage.py makemigrations --check --dry-run
python manage.py collectstatic --noinput pipenv run python manage.py collectstatic --noinput
- name: Run Tests - name: Run Tests
run: pytest --cov -n 8 run: pipenv run pytest --cov -n 8
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: failure() if: failure()
with: with:
@@ -57,4 +57,4 @@ jobs:
path: screenshots/ path: screenshots/
retention-days: 5 retention-days: 5
- name: Coveralls - name: Coveralls
run: coveralls --service=github run: pipenv run coveralls --service=github

94
Pipfile Normal file
View File

@@ -0,0 +1,94 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
ansicolors = "==1.1.8"
asgiref = "==3.3.1"
"backports.tempfile" = "==1.0"
"backports.weakref" = "==1.0.post1"
beautifulsoup4 = "==4.9.3"
Brotli = "==1.0.9"
cachetools = "==4.2.1"
certifi = "==2020.12.5"
chardet = "==4.0.0"
configparser = "==5.0.1"
contextlib2 = "==0.6.0.post1"
cssselect = "==1.1.0"
cssutils = "==1.0.2"
diff-match-patch = "==20200713"
dj-database-url = "==0.5.0"
dj-static = "==0.0.6"
Django = "==3.1.5"
django-debug-toolbar = "==3.2"
django-filter = "==2.4.0"
django-gulp = "==4.1.0"
django-ical = "==1.7.1"
django-recaptcha = "==2.0.6"
django-recurrence = "==1.10.3"
django-registration-redux = "==2.9"
django-reversion = "==3.0.9"
django-toolbelt = "==0.0.1"
django-widget-tweaks = "==1.4.8"
django-htmlmin = "==0.11.0"
envparse = "==0.2.0"
gunicorn = "==20.0.4"
icalendar = "==4.0.7"
idna = "==2.10"
importlib-metadata = "==3.4.0"
lxml = "==4.6.2"
Markdown = "==3.3.3"
msgpack = "==1.0.2"
pep517 = "==0.9.1"
Pillow = "==8.1.0"
pluggy = "==0.13.1"
premailer = "==3.7.0"
progress = "==1.5"
psutil = "==5.8.0"
psycopg2 = "==2.8.6"
Pygments = "==2.7.4"
pyparsing = "==2.4.7"
PyPDF2 = "==1.26.0"
PyPOM = "==2.2.0"
python-dateutil = "==2.8.1"
pytoml = "==0.1.21"
pytz = "==2020.5"
pytest-django = "==4.1.0"
pytest-xdist = "==2.2.0"
pytest-cov = "==2.11.1"
raven = "==6.10.0"
reportlab = "==3.5.59"
requests = "==2.25.1"
retrying = "==1.3.3"
selenium = "==3.141.0"
simplejson = "==3.17.2"
six = "==1.15.0"
soupsieve = "==2.1"
sqlparse = "==0.4.1"
static3 = "==0.7.0"
svg2rlg = "==0.3"
tini = "==3.0.1"
tornado = "==6.1"
urllib3 = "==1.26.2"
whitenoise = "==5.2.0"
yolk = "==0.4.3"
"z3c.rml" = "==4.1.2"
zipp = "==3.4.0"
"zope.component" = "==4.6.2"
"zope.deferredimport" = "==4.3.1"
"zope.deprecation" = "==4.4.0"
"zope.event" = "==4.5.0"
"zope.hookable" = "==5.0.1"
"zope.interface" = "==5.2.0"
"zope.proxy" = "==4.3.5"
"zope.schema" = "==6.0.1"
[dev-packages]
pycodestyle = "*"
coveralls = "*"
django-coverage-plugin = "*"
pytest-cov = "*"
[requires]
python_version = "3.9"

1413
Pipfile.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

View File

View File

@@ -1,80 +0,0 @@
ansicolors==1.1.8
asgiref==3.3.1
backports.tempfile==1.0
backports.weakref==1.0.post1
beautifulsoup4==4.9.3
Brotli==1.0.9
cachetools==4.2.1
certifi==2020.12.5
chardet==4.0.0
configparser==5.0.1
contextlib2==0.6.0.post1
cssselect==1.1.0
cssutils==1.0.2
diff-match-patch==20200713
dj-database-url==0.5.0
dj-static==0.0.6
Django==3.1.5
django-debug-toolbar==3.2
django-filter==2.4.0
django-gulp==4.1.0
django-ical==1.7.1
django-recaptcha==2.0.6
django-recurrence==1.10.3
django-registration-redux==2.9
django-reversion==3.0.9
django-toolbelt==0.0.1
django-widget-tweaks==1.4.8
django-htmlmin==0.11.0
envparse==0.2.0
gunicorn==20.0.4
icalendar==4.0.7
idna==2.10
importlib-metadata==3.4.0
lxml==4.6.2
Markdown==3.3.3
msgpack==1.0.2
packaging==20.8
pep517==0.9.1
Pillow==8.1.0
pluggy==0.13.1
premailer==3.7.0
progress==1.5
psutil==5.8.0
psycopg2==2.8.6
Pygments==2.7.4
pyparsing==2.4.7
PyPDF2==1.26.0
PyPOM==2.2.0
python-dateutil==2.8.1
pytoml==0.1.21
pytz==2020.5
pytest-django==4.1.0
pytest-xdist==2.2.0
pytest-cov==2.11.1
raven==6.10.0
reportlab==3.5.59
requests==2.25.1
retrying==1.3.3
selenium==3.141.0
simplejson==3.17.2
six==1.15.0
soupsieve==2.1
sqlparse==0.4.1
static3==0.7.0
svg2rlg==0.3
tini==3.0.1
tornado==6.1
urllib3==1.26.2
whitenoise==5.2.0
yolk==0.4.3
z3c.rml==4.1.2
zipp==3.4.0
zope.component==4.6.2
zope.deferredimport==4.3.1
zope.deprecation==4.4.0
zope.event==4.5.0
zope.hookable==5.0.1
zope.interface==5.2.0
zope.proxy==4.3.5
zope.schema==6.0.1

View File

@@ -1 +0,0 @@
python-3.9.1