Skip to content

Commit 743b730

Browse files
Merge pull request #48 from connor-makowski/1.9.0-dev
1.9.0: Add support for python 3.14 and future annotations
2 parents e017429 + f94087c commit 743b730

Some content is hidden

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

50 files changed

+2893
-352
lines changed

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# syntax = docker/dockerfile:1
2+
3+
## Uncomment the version of python you want to test against
4+
# FROM python:3.9-alpine
5+
# FROM python:3.10-alpine
6+
# FROM python:3.11-alpine
7+
# FROM python:3.12-alpine
8+
# FROM python:3.13-alpine
9+
FROM python:3.14-rc-alpine
10+
11+
# Set the working directory to /app
12+
WORKDIR /app/
13+
14+
# Copy and install the requirements
15+
# This includes egg installing the type_enforced package
16+
COPY type_enforced/__init__.py /app/type_enforced/__init__.py
17+
COPY pyproject.toml /app/pyproject.toml
18+
RUN pip install -e .
19+
20+
COPY ./util_test_helper.sh /app/util_test_helper.sh
21+
COPY ./test/test_fn_01.py /app/test/test_fn_01.py
22+
23+
CMD ["/bin/ash"]
24+
# Comment out ENTRYPOINT to drop into an interactive shell for debugging when using test.sh
25+
ENTRYPOINT ["/app/util_test_helper.sh"]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Connor Makowski
3+
Copyright (c) 2025 Connor Makowski
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,17 @@ print(WithSubclasses.get_subclasses(Foo)) # Prints: [<class '__main__.Foo'>, <cl
303303
my_fn(Foo()) # Passes as expected
304304
my_fn(Bar()) # Passes as expected
305305
my_fn(Baz()) # Raises TypeError as expected
306-
```
306+
```
307+
308+
# Development
309+
## Running Tests
310+
### Debug and Test using Docker
311+
312+
- Creates a docker container and runs all tests in the `test` folder.
313+
- Alternately, you can comment out the `ENTRYPOINT` line in the `Dockerfile` and drop into a shell to run tests individually.
314+
- Runs the tests on the python version specified in the `Dockerfile`.
315+
- Modify this as needed to ensure function across all supported python versions (3.9+)
316+
317+
```bash
318+
./test.sh
319+
```

build/lib/type_enforced/__init__.py

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

build/lib/type_enforced/enforcer.py

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

build/lib/type_enforced/utils.py

Lines changed: 0 additions & 25 deletions
This file was deleted.
12.5 KB
Binary file not shown.

dist/type_enforced-1.9.0.tar.gz

19.3 KB
Binary file not shown.

docs/0.0.16/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h2>Submodules</h2>
3131
<footer>
3232
<select id="version-selector">
3333
<option value="latest">latest</option>
34+
<option value="1.9.0">1.9.0</option>
3435
<option value="1.8.1">1.8.1</option>
3536
<option value="1.7.0">1.7.0</option>
3637
<option value="1.6.0">1.6.0</option>

docs/0.0.16/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="1.9.0">1.9.0</option>
5152
<option value="1.8.1">1.8.1</option>
5253
<option value="1.7.0">1.7.0</option>
5354
<option value="1.6.0">1.6.0</option>

docs/1.1.1/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h2>Submodules</h2>
3131
<footer>
3232
<select id="version-selector">
3333
<option value="latest">latest</option>
34+
<option value="1.9.0">1.9.0</option>
3435
<option value="1.8.1">1.8.1</option>
3536
<option value="1.7.0">1.7.0</option>
3637
<option value="1.6.0">1.6.0</option>

docs/1.1.1/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="1.9.0">1.9.0</option>
5152
<option value="1.8.1">1.8.1</option>
5253
<option value="1.7.0">1.7.0</option>
5354
<option value="1.6.0">1.6.0</option>

0 commit comments

Comments
 (0)