Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2.0 Staging PR #53

Merged
merged 124 commits into from
Feb 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
402326f
add pybind11 submodule
EmilDohne Feb 17, 2024
4f5b693
Add initial working bindings for LayeredFile
EmilDohne Feb 17, 2024
074208f
add python bindings to cmakelists
EmilDohne Feb 17, 2024
4637e9e
add initial docs for python bindings, this still needs to be improved…
EmilDohne Feb 18, 2024
4308496
update c++ docs to add some extra spacing
EmilDohne Feb 19, 2024
89de79e
update python binding docs
EmilDohne Feb 19, 2024
03c9706
update bindings to have a single main file
EmilDohne Feb 19, 2024
3a63d01
Add inline-tabs dependency and order docs by insertion order
EmilDohne Feb 19, 2024
24d9844
Add wrapper for converting indices and ids to a ChannelIDInfo struct
EmilDohne Feb 19, 2024
c81195a
update docs to change structs -> classes
EmilDohne Feb 19, 2024
64823b2
set pybind11 to v2.11.1
EmilDohne Feb 20, 2024
9da9630
fix bug in imagelayer where we indexed based on a uint16_t which woul…
EmilDohne Feb 21, 2024
f9f0ecd
dont copy ptr for layers
EmilDohne Feb 21, 2024
3e9578e
add removeLayer syntax which takes a string rather than index or laye…
EmilDohne Feb 21, 2024
453e5cc
update enums to numpy style docs
EmilDohne Feb 21, 2024
eb17a76
update docs to numpy docs and fix heap memory corruption due to not s…
EmilDohne Feb 21, 2024
091520a
update access to layers in LayeredFile
EmilDohne Feb 21, 2024
d4ced02
add MSVC NOMINMAX as compile option since pybind11 wont build without it
EmilDohne Feb 21, 2024
c38a428
add numpydoc requirements
EmilDohne Feb 21, 2024
61636f4
Heavily modify docs of ImageLayer to add examples
EmilDohne Feb 23, 2024
eb31883
Create base Layer instance docs
EmilDohne Feb 23, 2024
060ec7e
Add GroupLayer docs
EmilDohne Feb 23, 2024
c61babe
update docs
EmilDohne Feb 23, 2024
ed013d9
Switch benchmarks to use a tab system now
EmilDohne Feb 23, 2024
f386c78
Update ImageLayer to use structure bindings instead of pair when iter…
EmilDohne Feb 23, 2024
a5c1bb3
Correctly indicate that masks can also be extracted with getChannel
EmilDohne Feb 23, 2024
aa99e43
add string mapping for channelIDs
EmilDohne Feb 23, 2024
532deb5
Expose more of the enums
EmilDohne Feb 23, 2024
bd4e9ae
Add support for the GroupLayer in the python bindings
EmilDohne Feb 23, 2024
5515f28
Heavily modify the image layer bindings to allow for simple construction
EmilDohne Feb 23, 2024
8f8d24e
Expose the base Layer class
EmilDohne Feb 23, 2024
33a9d4d
add extra constructor to layeredFile
EmilDohne Feb 23, 2024
18f49f0
Add declarations to py module
EmilDohne Feb 23, 2024
6611e4e
Add ICC profile loading
EmilDohne Feb 23, 2024
51132ed
Fix spelling mistake
EmilDohne Feb 23, 2024
50cb36c
LICENSE.txt -> LICENSE
EmilDohne Feb 23, 2024
22607d4
add workflow for wheels (untested)
EmilDohne Feb 23, 2024
ef39659
Add python binding information
EmilDohne Feb 23, 2024
7e517a0
add py::arg() to avoid unneeded args
EmilDohne Feb 23, 2024
ab55cc3
add python build artifacts to gitignore
EmilDohne Feb 23, 2024
8e895a4
Add warning if we build docs without building python
EmilDohne Feb 23, 2024
ca1bfc7
add pyproject.toml
EmilDohne Feb 23, 2024
972e61c
add setup.py to build our python dist
EmilDohne Feb 23, 2024
a76d62a
update build-wheels to run on publish
EmilDohne Feb 23, 2024
8840617
update cmake-build to run on release as well
EmilDohne Feb 23, 2024
ec80e55
run wheels on push to bindings branch (temporary)
EmilDohne Feb 23, 2024
84a145f
update wheels to no longer try and compile on windows as well as only…
EmilDohne Feb 23, 2024
26c5c73
Add stub directory and remove dosctrings from python bindings cleanin…
EmilDohne Feb 24, 2024
39db56f
Update docs conf.py to use the stubs instead of the compiled pyd
EmilDohne Feb 24, 2024
4be68c3
fix minor compile errors
EmilDohne Feb 24, 2024
6b75151
add py.typed
EmilDohne Feb 24, 2024
143d239
attempt to include stubs in setup.py
EmilDohne Feb 24, 2024
82fc16d
Delete TODO.md
EmilDohne Feb 24, 2024
acbfd57
Remove python stub search
EmilDohne Feb 24, 2024
4501fda
update builds to run on a matrix instead
EmilDohne Feb 24, 2024
fa64e95
bump gcc to 13
EmilDohne Feb 24, 2024
aca71c1
disable fail-fast for actions
EmilDohne Feb 24, 2024
98820cc
change to env vars
EmilDohne Feb 24, 2024
6dbd524
Explicitly set env variables
EmilDohne Feb 24, 2024
1649c1e
pass __VA_OPT__ to macros in order to avoid compiler errors
EmilDohne Feb 24, 2024
63976ba
Fix regression where __VA_OPT__ wasnt compiling on windows
EmilDohne Feb 24, 2024
5dbf2d4
Fix missing <cstring> include for std::memcpy
EmilDohne Feb 24, 2024
ffcc0a9
Fix compiler error due to us brace initializing a ref param
EmilDohne Feb 24, 2024
31927d8
Fix same issue again
EmilDohne Feb 24, 2024
8b5a8fc
Add default ctor for FileParams
EmilDohne Feb 24, 2024
d86855b
Update initialization of FileParams
EmilDohne Feb 24, 2024
1f864d2
Fix missing include
EmilDohne Feb 24, 2024
72bac9f
Fix incorrect instantiation of FileParams struct
EmilDohne Feb 24, 2024
045a35d
specify AVX2 arch in compile options
EmilDohne Feb 24, 2024
e444ae0
Disable building of python in main cmake build
EmilDohne Feb 24, 2024
8347957
Fix brace initialization in Test and Bench
EmilDohne Feb 24, 2024
6c8f2fb
add output on failure to ctest
EmilDohne Feb 24, 2024
10d7cc1
Merge pull request #49 from EmilDohne/feat-add-cross-compilation
EmilDohne Feb 24, 2024
cb107f3
move py.typed and .pyi files to MANIFEST.in
EmilDohne Feb 26, 2024
b1f322d
fix invalid string in python requires
EmilDohne Feb 26, 2024
bdc8cee
fix again
EmilDohne Feb 26, 2024
cb96dae
change version to build > 3.10
EmilDohne Feb 26, 2024
88f7288
Try include in setup.py
EmilDohne Feb 26, 2024
bc90912
Move stubs to explicit stubs dir
EmilDohne Feb 26, 2024
d8f0bdd
Move stubs back under python dir and update package-data
EmilDohne Feb 26, 2024
d3742a4
Make package_data relative path
EmilDohne Feb 26, 2024
85148fb
add def to move stubs to root as well as packaging all subdirs
EmilDohne Feb 26, 2024
995e79a
change to rmtree
EmilDohne Feb 26, 2024
da90ebf
move psapi-stubs to root
EmilDohne Feb 26, 2024
8e366f8
Fix path error
EmilDohne Feb 26, 2024
76ba124
Package files in rel dir
EmilDohne Feb 26, 2024
494ade7
add back shutil move
EmilDohne Feb 26, 2024
f96ac47
listdir for debugging
EmilDohne Feb 26, 2024
b649888
temporarily remove pkg
EmilDohne Feb 26, 2024
f1db529
mkdir psapi-stubs and package
EmilDohne Feb 26, 2024
6b36d67
Tell setuptools that the package_dir is in python/
EmilDohne Feb 26, 2024
97fcce7
Explicitly include subdirectories in package_data
EmilDohne Feb 26, 2024
45d9c49
Stubs seem to require `from ... import *` syntax instead of `from ...…
EmilDohne Feb 26, 2024
b0f3413
Move docstrings from stubs to declaration to make the stubs less heavy
EmilDohne Feb 26, 2024
0e6ec55
(experimental) try building python bindings on rtd
EmilDohne Feb 26, 2024
2978f53
Fix issue where py::enum_ doesnt actually have a doc() attrib
EmilDohne Feb 26, 2024
92c89df
Fix some minor formatting in docstrings
EmilDohne Feb 26, 2024
7617735
Change wheels to run on a matrix with ubuntu and macos
EmilDohne Feb 26, 2024
af65f17
specify gcc version in build-wheels
EmilDohne Feb 26, 2024
d73cf7f
drop ubuntu-latest as manylinux doesnt support gcc13 as well as arm b…
EmilDohne Feb 26, 2024
85400ca
lower py version to 3.7
EmilDohne Feb 26, 2024
2cfd201
Update wheels to upload artifact with name
EmilDohne Feb 26, 2024
a4a3744
Merge pull request #50 from EmilDohne/feat-add-python-bindings
EmilDohne Feb 26, 2024
00e4d51
Fix bug where layer_mask parameter was not defaulted in GroupLayer
EmilDohne Feb 26, 2024
433d046
Set do_copy to default true
EmilDohne Feb 26, 2024
2129890
Reorder module order to allow for better debug messages
EmilDohne Feb 26, 2024
61d5615
Port all examples to python
EmilDohne Feb 26, 2024
8b6c6ef
Change workflow rules such that they only trigger on merge to master
EmilDohne Feb 26, 2024
2e49a20
Merge pull request #51 from EmilDohne/feat-add-python-examples
EmilDohne Feb 26, 2024
4bb5002
update build to call our python script which generates a release and …
EmilDohne Feb 26, 2024
83c8c55
Move generate_release.py and optimize it for gh actions
EmilDohne Feb 26, 2024
3026f2c
Add some comments
EmilDohne Feb 26, 2024
9aedc75
Update docs
EmilDohne Feb 26, 2024
345fb76
Change wheels name
EmilDohne Feb 26, 2024
53a8adb
remove test branch from push qualifier
EmilDohne Feb 26, 2024
86a3216
Merge pull request #52 from EmilDohne/feat-improve-ci
EmilDohne Feb 26, 2024
ceea5f3
build wheels on push to dev and publish to pypi (temporary)
EmilDohne Feb 26, 2024
121af6d
Merge branch 'dev' of https://github.com/EmilDohne/PhotoshopAPI into dev
EmilDohne Feb 26, 2024
1bfa004
bump version requirements to speed up compilation (temporary)
EmilDohne Feb 26, 2024
4a5a894
Put README.md as long description
EmilDohne Feb 26, 2024
f7cae5f
Change readthedocs to simply pip install our package to doc it
EmilDohne Feb 26, 2024
779ade6
Update docs to fix spelling mistake in Glacius' name
EmilDohne Feb 27, 2024
89c0159
Remove wheels build from dev and only publish to pypi on release
EmilDohne Feb 27, 2024
caa03b7
Update docs with some extra examples for python bindings and better r…
EmilDohne Feb 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lower py version to 3.7
  • Loading branch information
EmilDohne committed Feb 26, 2024
commit 85400cac6377b378edaa4d1b847add466d22cb8b
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ def build_extension(self, ext: CMakeExtension) -> None:
install_requires= [
"numpy>=1.26"
],
python_requires=">=3.11", # Temporary for testing, will be removed later
python_requires=">=3.7",
)