diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..07fe41c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# GitHub syntax highlighting +pixi.lock linguist-language=YAML linguist-generated=true diff --git a/.gitignore b/.gitignore index 227fee7..9c4e01b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,8 @@ onepy/__pycache__/ tests/__pycache__/ .project .pydevproject +# pixi environments +.pixi +*.egg-info + +/pixi.lock diff --git a/README.md b/README.md index ab68220..eb17e96 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,22 @@ COM Object Model for OneNote 2013 in Python #### How do I setup my environment? -* Install Python 3.4 x86 from [here](https://www.python.org/download/releases/3.4.0/) -* Install PyWin32 for Python 3.4 x86 from [here](http://sourceforge.net/projects/pywin32/files/pywin32/) -* Add `C:\Python34\` to your PATH variable -* Run `C:\Python34\Lib\site-packages\win32com\client\makepy.py` -* Select `Microsoft OneNote 15.0 Extended Type Library` +Install Pixi from Prefix.dev, and git, then: + +```shell +git clone https://github.com/maphew/one-py.git +cd one-py +pixi install + # will install python and dependencies for this project + # could take awhile if this is first time using pixi +``` + +Create python object wrapper for Oneonote DLL with pywin23: +```shell +pixi shell +`.pixi\envs\default\Lib\site-packages\win32com\client\makepy.py` + # Select `Microsoft OneNote 15.0 Extended Type Library` +``` #### How do I submit a new version to the Package Manager? diff --git a/pixi.toml b/pixi.toml new file mode 100644 index 0000000..91f7690 --- /dev/null +++ b/pixi.toml @@ -0,0 +1,14 @@ +[project] +name = "one-py" +version = "0.2.1" +description = "COM Object Model for OneNote 2013 in Python" +authors = [" Varun Srinivasan ", "Matt Wilkie "] +channels = ["conda-forge"] +platforms = ["win-64"] + +[tasks] + +[dependencies] +python = ">=3.12.4,<4" +pywin32 = ">=306,<307" +pip = ">=24.2,<25" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7b95937 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=64", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 0b1a52b..21b5818 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ +import setuptools +from setuptools import setup import os -from distutils.core import setup - def get_version(): with open(os.path.join('onepy', '__init__.py')) as f: