Skip to content

Commit

Permalink
chore: setup lib9c.py project
Browse files Browse the repository at this point in the history
* chore: open draft PR for initial setup of Python library structure

* chore: rename library
  • Loading branch information
forwardyoung authored Oct 28, 2024
1 parent c3bff25 commit f117ae6
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 0 deletions.
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!"

0 comments on commit f117ae6

Please sign in to comment.