Skip to content

Commit e3a8324

Browse files
authored
use-local-frontend-template (#13)
1 parent 032419d commit e3a8324

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+116
-108
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ jobs:
4242
python-version: ${{ matrix.python-version }}
4343
- name: Set up Django ${{ matrix.django-version }}
4444
run: |
45+
pip install --upgrade pip
4546
pip install Django==${{ matrix.django-version }}
4647
- name: Install dependencies
4748
run: |
48-
pip install -e .
49+
pip install .
4950
pip install -r tests/requirements/django.txt
51+
- name: PYTHONPATH
52+
run: |
53+
echo "PYTHONPATH=${PWD}" >> $GITHUB_ENV
5054
- name: Test with pytest
5155
run: |
5256
pytest tests/tests_django
@@ -71,11 +75,15 @@ jobs:
7175
python-version: ${{ matrix.python-version }}
7276
- name: Set up Flask ${{ matrix.flask-version }}
7377
run: |
78+
pip install --upgrade pip
7479
pip install Flask==${{ matrix.flask-version }}
7580
- name: Install dependencies
7681
run: |
77-
pip install -e .
82+
pip install .
7883
pip install -r tests/requirements/flask.txt
84+
- name: PYTHONPATH
85+
run: |
86+
echo "PYTHONPATH=${PWD}" >> $GITHUB_ENV
7987
- name: Test with pytest
8088
run: |
8189
pytest tests/tests_flask

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

Makefile

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
.PHONY: clean build publish
1+
.PHONY: docs
22

3-
clean:
4-
@echo "Cleaning..."
5-
@find webpack_loader/ -name '*.pyc' -delete
6-
@rm -rf ./build ./*egg* ./.coverage ./dist
3+
docs:
4+
mkdocs serve --dev-addr '127.0.0.1:9090'
75

8-
build: clean
9-
@echo "Building..."
10-
@pip install -U setuptools
11-
@python setup.py sdist bdist_wheel --universal
6+
build:
7+
poetry build
128

13-
publish: build
14-
@echo "Publishing to pypi..."
15-
@twine upload dist/*
9+
publish:
10+
poetry publish
1611

17-
publish_test: build
18-
@echo "Publishing to test pypi..."
19-
@twine upload --repository testpypi dist/*
12+
# poetry config repositories.testpypi https://test.pypi.org/legacy/
13+
publish-test:
14+
poetry publish -r testpypi

docs/setup_with_django.md

Lines changed: 2 additions & 2 deletions

docs/setup_with_flask.md

Lines changed: 8 additions & 5 deletions

examples/django_basic/README.md

Lines changed: 5 additions & 2 deletions

examples/django_basic/example/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
4040

41-
'webpack_loader',
41+
'webpack_boilerplate',
4242
]
4343

4444
MIDDLEWARE = [

examples/django_basic/frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../frontend_template/{{cookiecutter.project_slug}}/
1+
../../webpack_boilerplate/frontend_template/{{cookiecutter.project_slug}}

examples/flask_basic/README.md

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)