Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ onepy/__pycache__/
tests/__pycache__/
.project
.pydevproject
# pixi environments
.pixi
*.egg-info

/pixi.lock
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
14 changes: 14 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[project]
name = "one-py"
version = "0.2.1"
description = "COM Object Model for OneNote 2013 in Python"
authors = [" Varun Srinivasan <[email protected]>", "Matt Wilkie <[email protected]>"]
channels = ["conda-forge"]
platforms = ["win-64"]

[tasks]

[dependencies]
python = ">=3.12.4,<4"
pywin32 = ">=306,<307"
pip = ">=24.2,<25"
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down