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

chore: open draft PR for initial setup of Python library structure #2944

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
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
10 changes: 10 additions & 0 deletions integrations/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# lib9c generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info

# venv
.venv
1 change: 1 addition & 0 deletions integrations/python/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.7
11 changes: 11 additions & 0 deletions integrations/python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Description:
This is a Python library designed for managing integrations and dependencies within the /integrations/python directory. The library follows PEP 621 standards for configuration and uses rye as the dependency manager and build tool.

## Installation:
Install dependencies with rye
```
rye sync
```

## Project Setup
This project is configured with a pyproject.toml file following PEP 621 standards, which defines dependencies and project metadata.
31 changes: 31 additions & 0 deletions integrations/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[project]
name = "lib9c"
version = "0.1.0"
description = "A Python library for managing integrations and dependencies in the /integrations/python directory"
authors = [
{ name = "forwardyoung", email = "[email protected]" }
]
keywords = ["lib9c", "planetarium"]

classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python"
]
dependencies = []
readme = "README.md"
requires-python = ">= 3.8"
license = { text = "MIT" }

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/lib9c"]
12 changes: 12 additions & 0 deletions integrations/python/requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
12 changes: 12 additions & 0 deletions integrations/python/requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
2 changes: 2 additions & 0 deletions integrations/python/src/lib9c/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def hello() -> str:
return "Hello from lib9c!"