From b48ed1e6544c1d2dccda199cd29361a0bbd61056 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 26 Feb 2016 06:42:11 +0100 Subject: [PATCH 1/3] Use setuptools instead of distutils (so develop setup is possible) --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From 8bc66bbceb15bb8d7473e70a015b418d0e4df7a8 Mon Sep 17 00:00:00 2001 From: Matt Wilkie Date: Mon, 5 Aug 2024 12:56:13 -0700 Subject: [PATCH 2/3] setup for Pixi package manager --- .gitattributes | 2 ++ .gitignore | 5 +++++ README.md | 21 ++++++++++++++++----- pixi.toml | 13 +++++++++++++ 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .gitattributes create mode 100644 pixi.toml 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..b5f6701 --- /dev/null +++ b/pixi.toml @@ -0,0 +1,13 @@ +[project] +name = "one-py" +version = "0.1.0" +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" From 05ec13806c09e6bcd7ba98fd3a99a9f3cc457b20 Mon Sep 17 00:00:00 2001 From: Matt Wilkie Date: Mon, 5 Aug 2024 13:10:10 -0700 Subject: [PATCH 3/3] make `pip install -e` work --- pixi.toml | 3 ++- pyproject.toml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pixi.toml b/pixi.toml index b5f6701..91f7690 100644 --- a/pixi.toml +++ b/pixi.toml @@ -1,6 +1,6 @@ [project] name = "one-py" -version = "0.1.0" +version = "0.2.1" description = "COM Object Model for OneNote 2013 in Python" authors = [" Varun Srinivasan ", "Matt Wilkie "] channels = ["conda-forge"] @@ -11,3 +11,4 @@ platforms = ["win-64"] [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"