Skip to content

Commit ef0e897

Browse files
authored
Minor fixes (#38)
* Minor fixes * Updated workflow and package build process
1 parent d866803 commit ef0e897

File tree

8 files changed

+37
-16
lines changed

8 files changed

+37
-16
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine requests # Added requests for the version check
24+
pip install setuptools wheel twine requests build # Added requests for the version check
2525
2626
# Check if the current version is already on PyPI
2727
- name: Check version on PyPI
@@ -34,7 +34,7 @@ jobs:
3434
- name: Build package
3535
if: steps.version_check.outputs.version_exists != 'true'
3636
run: |
37-
python setup.py sdist bdist_wheel
37+
python -m build
3838
3939
- name: Upload to PyPI
4040
if: steps.version_check.outputs.version_exists != 'true'

MANIFEST.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,14 @@ recursive-include appointment/static/css *.css
2828
recursive-include appointment/static/js *.js
2929
recursive-include appointment/static/img *.jpg
3030
recursive-include appointment/templates/ *.html
31+
recursive-include appointment/tests/base *.py
32+
recursive-include appointment/tests/mixins *.py
33+
recursive-include appointment/tests/models *.py
34+
recursive-include appointment/tests/utils *.py
3135
recursive-include appointment/tests *.py
3236
recursive-include appointment/utils *.py
3337

3438
# Exclusions
35-
exclude release_notes.md
36-
exclude check_version.py
37-
exclude manage.py
38-
exclude db.sqlite3
39-
exclude .gitignore
40-
exclude .git
41-
exclude .svn
42-
exclude .hg
4339
exclude appointment/__pycache__
4440
exclude appointment/migrations/__pycache__
4541

appointment/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
__description__ = "Managing appointment scheduling with customizable slots, staff features, and conflict handling."
55
__package_name__ = "django-appointment"
66
__url__ = "https://github.com/adamspd/django-appointment"
7-
__version__ = "2.1.3"
7+
__version__ = "2.1.4"

appointment/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class EmailVerificationCodeAdmin(admin.ModelAdmin):
4242

4343
@admin.register(Config)
4444
class ConfigAdmin(admin.ModelAdmin):
45-
list_display = ('slot_duration', 'lead_time', 'finish_time', 'appointment_buffer_time', 'website_name')
45+
list_display = (
46+
'slot_duration', 'lead_time', 'finish_time', 'appointment_buffer_time', 'website_name', 'app_offered_by_label')
4647

4748

4849
# Define a custom ModelForm for StaffMember

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ['setuptools>=40.8.0', 'wheel']
2+
requires = ['setuptools>=61.0', 'wheel']
33
build-backend = 'setuptools.build_meta:__legacy__'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Pillow==10.1.0
33
phonenumbers==8.13.25
44
django-phonenumber-field==7.2.0
55
babel==2.13.1
6-
setuptools==69.0.1
6+
setuptools==69.0.2
77
pytz~=2023.3.post1

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ classifiers =
1717
Topic :: Software Development :: Libraries :: Application Frameworks
1818

1919
[options]
20-
include_package_data = true
21-
packages = find:
2220
python_requires = >=3.8
2321
install_requires =
2422
Django>=4.2

setup.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,30 @@
1818
project_urls={
1919
"Author Website": __author_website__,
2020
},
21+
packages=setuptools.find_packages(where="appointments"),
22+
package_dir={"": "appointment"},
23+
include_package_data=True,
24+
package_data={
25+
'appointment': [
26+
'static/css/**/*.css',
27+
'static/js/**/*.js',
28+
'static/img/**/*.*',
29+
'templates/**/*.html',
30+
],
31+
'appointment.tests': [
32+
'mixins/*',
33+
'base/*',
34+
'models/*',
35+
'utils/*',
36+
'*.py'
37+
],
38+
},
39+
exclude_package_data={
40+
"appointment": [
41+
"django_appointment.egg-info"
42+
],
43+
"appointment.django_appointment": [
44+
"egg-info",
45+
]
46+
},
2147
)

0 commit comments

Comments
 (0)