Skip to content

Commit 87ec0b8

Browse files
authored
Setup fixes (#45)
* minor-fixes * Updated readmes and deployment method
1 parent 595a822 commit 87ec0b8

File tree

10 files changed

+56
-63
lines changed

10 files changed

+56
-63
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 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 build # Added requests for the version check
24+
pip install setuptools wheel twine requests
2525
2626
# Check if the current version is already on PyPI
2727
- name: Check version on PyPI
@@ -34,12 +34,12 @@ jobs:
3434
- name: Build package
3535
if: steps.version_check.outputs.version_exists != 'true'
3636
run: |
37-
python3 setup.py sdist bdist_wheel
37+
python setup.py sdist bdist_wheel
3838
3939
- name: Upload to PyPI
4040
if: steps.version_check.outputs.version_exists != 'true'
4141
env:
4242
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
4343
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
4444
run: |
45-
twine upload dist/*
45+
twine upload dist/*

MANIFEST.in

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ recursive-include appointment/static/css *.css
2727
recursive-include appointment/static/js *.js
2828
recursive-include appointment/static/img *.jpg
2929
recursive-include appointment/templates/ *.html
30-
recursive-include appointment/tests/base *.py
31-
recursive-include appointment/tests/mixins *.py
32-
recursive-include appointment/tests/models *.py
33-
recursive-include appointment/tests/utils *.py
3430
recursive-include appointment/tests *.py
3531
recursive-include appointment/utils *.py
3632

3733
# Exclusions
34+
exclude release_notes.md
35+
exclude check_version.py
36+
exclude manage.py
37+
exclude db.sqlite3
38+
exclude .gitignore
39+
exclude .git
40+
exclude .svn
41+
exclude .hg
3842
exclude appointment/__pycache__
3943
exclude appointment/migrations/__pycache__
4044
exclude appointment/django_appointment.egg-info/PKG-INFO
@@ -44,5 +48,6 @@ exclude appointment/django_appointment.egg-info/requires.txt
4448
exclude appointment/django_appointment.egg-info/top_level.txt
4549

4650
# Recursive exclusions
47-
recursive-exclude appointment/migrations *
48-
recursive-exclude appointments *
51+
recursive-exclude appointment/migrations *.py
52+
recursive-exclude appointments *.py
53+
recursive-exclude appointment *.pyc

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.5.dev1"
7+
__version__ = "2.1.1"

docs/admin_views.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Example:
2222
```html
2323

2424
<head>
25+
<title>My title</title>
2526
...
2627
{% block customMetaTag %}
2728
{% endblock %}
@@ -110,7 +111,7 @@ Failure to include this block might result in errors during asynchronous operati
110111
- **Endpoint**: `email_change_verification_code/`
111112
- **Description**: When a user changes their email, they need to verify the new email through a code. This endpoint
112113
handles the verification process.
113-
- **Methods**: GET (display verification code form), POST (submit verification code)
114+
- **Methods**: GET (it displays a verification code form), POST (submit verification code)
114115

115116
#### **Days Off Management**:
116117

@@ -152,8 +153,8 @@ Failure to include this block might result in errors during asynchronous operati
152153
- **Delete Working Hours**:
153154
- **Endpoint**: `delete-working-hours/`, `delete-working-hours/<int:working_hours_id>/`,
154155
and `delete-working-hours/<int:working_hours_id>/<int:staff_user_id>/`
155-
- **Description**: Users can remove a working hours entry. Superusers can delete any entry, while staff members can
156-
only delete their own.
156+
- **Description**: Users can remove a working hours' entry.
157+
Superusers can delete any entry, while staff members can only delete their own.
157158
- **Methods**: GET
158159

159160
### Note on updating personal info

docs/models.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- [Django Appointment System](#django-appointment-system)
1+
- [Django Appointment System]()
22
* [Models](#models)
33
+ [Service](#service)
44
+ [StaffMember](#staffmember)
@@ -149,13 +149,11 @@ appointment request.
149149
- `get_service_img_url`: Returns the URL of the service's image.
150150
- `get_service_description`: Returns the description of the service.
151151
- `get_appointment_date`: Returns the date of the appointment.
152-
- `is_paid`: Returns whether the appointment has been paid for.
152+
- `is_paid`: Returns if the appointment has been paid for.
153153
- `get_appointment_amount_to_pay`: Returns the amount to be paid for the appointment.
154154
- `get_appointment_amount_to_pay_str`: Returns a formatted amount to pay text.
155155
- `get_appointment_currency`: Returns the currency of the appointment price.
156156
- `get_appointment_id_request`: Returns the ID of the appointment.
157-
- `get_created_at`: Returns the timestamp when the appointment was created.
158-
- `get_updated_at`: Returns the timestamp when the appointment was last updated.
159157
- `set_appointment_paid_status`: Sets the paid status of the appointment.
160158
- `get_absolute_url`: Returns the absolute URL for the appointment.
161159
- `get_background_color`: Returns the background color of the service.
@@ -266,7 +264,7 @@ The `WorkingHours` model represents the working hours for a staff member on a sp
266264
- `clean`: Validates that the `start_time` is before the `end_time`.
267265
- `get_start_time`: Returns the start time of the working hours.
268266
- `get_end_time`: Returns the end time of the working hours.
269-
- `get_day_of_week_str`: Returns the name of the day of the week.
267+
- `get_day_of_week_str`: Returns the name of the day.
270268
- `is_owner`: Returns a boolean indicating if the given user ID matches the user ID of the staff member associated with
271269
the working hours.
272270

docs/payment_url_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ determines where the user is redirected for payment processing after an appointm
77

88
### 1. Direct Payment Gateway URL:
99

10-
If you have a direct URL to a payment gateway or an external payment page, you can simply set
10+
If you have a direct URL to a payment gateway or an external payment page, you can set
1111
the `APPOINTMENT_PAYMENT_URL` to that URL. For instance:
1212

1313
```python

docs/views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- [Django Appointment](#django-appointment-system)
1+
- [Django Appointment]()
22
* [Views](#views)
33
+ [get_available_slots_ajax](#get-available-slots-ajax)
44
+ [get_next_available_date_ajax](#get-next-available-date-ajax)

pyproject.toml

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

setup.cfg

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[metadata]
2+
license = Apache License 2.0
3+
classifiers =
4+
Development Status :: 3 - Alpha
5+
Intended Audience :: Developers
6+
License :: OSI Approved :: Apache Software License
7+
Framework :: Django
8+
Framework :: Django :: 4.2
9+
Programming Language :: Python
10+
Programming Language :: Python :: 3
11+
Programming Language :: Python :: 3 :: Only
12+
Programming Language :: Python :: 3.10
13+
Programming Language :: Python :: 3.11
14+
Operating System :: OS Independent
15+
Environment :: Web Environment
16+
Topic :: Internet :: WWW/HTTP
17+
Topic :: Internet :: WWW/HTTP :: Dynamic Content
18+
Topic :: Software Development :: Libraries :: Application Frameworks
19+
20+
[options]
21+
include_package_data = true
22+
packages = find:
23+
python_requires = >=3.8
24+
install_requires =
25+
Django>=4.2
26+
Pillow>=10.1.0
27+
phonenumbers>=8.13.22
28+
django-phonenumber-field>=7.2.0
29+
babel>=2.13.0
30+
pytz>=2023.3

setup.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,4 @@
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-
classifiers=[
25-
# Maturity of project
26-
# 3 - Alpha
27-
# 4 - Beta
28-
# 5 - Production/Stable
29-
'Development Status :: 3 - Alpha',
30-
31-
# Intended for
32-
'Intended Audience :: Developers',
33-
34-
# License
35-
"License :: OSI Approved :: Apache Software License",
36-
37-
# Python versions supported.
38-
"Programming Language :: Python",
39-
"Programming Language :: Python :: 3",
40-
"Programming Language :: Python :: 3 :: Only",
41-
"Programming Language :: Python :: 3.10",
42-
"Programming Language :: Python :: 3.11",
43-
44-
# OS
45-
"Operating System :: OS Independent",
46-
47-
# Topic
48-
"Topic :: Internet :: WWW/HTTP",
49-
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
50-
"Topic :: Software Development :: Libraries :: Application Frameworks",
51-
],
52-
license="Apache License 2.0",
53-
python_requires='>=3.8',
54-
install_requires=[
55-
"Django>=4.2",
56-
"Pillow>=10.1.0",
57-
"phonenumbers>=8.13.22",
58-
"django-phonenumber-field>=7.2.0",
59-
"babel>=2.13.0",
60-
"pytz>=2023.3",
61-
]
6221
)

0 commit comments

Comments
 (0)