Skip to content

Commit

Permalink
New python build system including pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
luisza committed Jun 18, 2023
1 parent cffe319 commit d8dea2e
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 3,843 deletions.
28 changes: 27 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,37 @@ max_line_length = 88

# Use 2 spaces for the HTML files
[*.html]
indent_style = tab
indent_size = 2
tab_width = 1
html_alignment_tab_fill_style = optimal_fill
html_spaces_around_eq_in_pi_attribute = false
html_space_after_last_pi_attribute = true
html_blank_line_after_pi = false
html_spaces_around_eq_in_attribute = false
html_space_after_last_attribute = true
space_before_self_closing = true
html_attribute_indent = align_by_first_attribute
html_linebreak_before_all_elements = true
html_linebreaks_inside_tags_for_elements_with_child_elements = true
html_extra_spaces = remove_all
trim_trailing_whitespace = true
insert_final_newline = true

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
indent_style = space
indent_size = 2
insert_final_newline = true


# Minified JavaScript files shouldn't be changed
[**.min.js]
max_line_length = off
indent_size = unset
indent_style = unset
charset = unset
insert_final_newline = unset

# Makefiles always use tabs for indentation
[Makefile]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Icon
# Thumbnails
._*
_build/
build
# Files that might appear on external disk
.Spotlight-V100
.Trashes
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include Readme.rst
include LICENSE
include LICENSE.txt
include requirements.txt
graft djgentelella/templates
graft djgentelella/static
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ release: sdist
sdist: clean
cd demo && python manage.py makemigrations && python manage.py loaddevstatic && python manage.py createbasejs
cd djgentelella && django-admin compilemessages -l es
python setup.py sdist
python3 -m build
ls -l dist

2 changes: 2 additions & 0 deletions demo/demoapp/datatables/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ class PersonDataTableSerializer(serializers.Serializer):
draw = serializers.IntegerField(required=True)
recordsFiltered = serializers.IntegerField(required=True)
recordsTotal = serializers.IntegerField(required=True)


Loading

0 comments on commit d8dea2e

Please sign in to comment.