Compare commits

..

2 Commits

Author SHA1 Message Date
ca2dc8f9cf Reorg'd code, doesn't work 2024-06-03 17:43:14 -03:00
fcdb8a28b3 Reorg'd code, doesn't work 2024-06-03 17:42:43 -03:00
37 changed files with 253 additions and 78 deletions

162
.gitignore vendored Normal file
View File

@ -0,0 +1,162 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

View File

View File

@ -1,5 +1,5 @@
#!/usr/local/bin/python
from Pyxform import *
from pyxforms import *
#
# Init the library (sucks but works)

24
pyproject.toml Normal file
View File

@ -0,0 +1,24 @@
[project]
name = "pyxforms"
version = "0.3.0"
description = "A Python binding for XForms"
authors = [
{ name = "Roberto Alsina", email = "roberto.alsina@gmail.com" }
]
dependencies = []
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.rye]
managed = true
dev-dependencies = []
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/pyxforms"]

11
requirements-dev.lock Normal file
View File

@ -0,0 +1,11 @@
# 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
-e file:.

11
requirements.lock Normal file
View File

@ -0,0 +1,11 @@
# 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
-e file:.

View File

@ -1,5 +0,0 @@
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0

116
setup.py
View File

@ -2,143 +2,116 @@
from setuptools import setup, Extension
bitmaps = Extension(
"Pyxform.bitmaps",
sources=["Pyxform/Modules/bitmaps.c"],
name="pyxforms.bitmaps",
sources=["src/pyxforms/bitmaps.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
box = Extension(
"Pyxform.box",
sources=["Pyxform/Modules/box.c"],
name="pyxforms.box",
sources=["src/pyxforms/box.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
browser = Extension(
"Pyxform.browser",
sources=["Pyxform/Modules/browser.c"],
name="pyxforms.browser",
sources=["src/pyxforms/browser.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
button = Extension(
"Pyxform.button",
sources=["Pyxform/Modules/button.c"],
name="pyxforms.button",
sources=["src/pyxforms/button.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
choice = Extension(
"Pyxform.choice",
sources=["Pyxform/Modules/choice.c"],
name="pyxforms.choice",
sources=["src/pyxforms/choice.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
clock = Extension(
"Pyxform.clock",
sources=["Pyxform/Modules/clock.c"],
name="pyxforms.clock",
sources=["src/pyxforms/clock.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
counter = Extension(
"Pyxform.counter",
sources=["Pyxform/Modules/counter.c"],
name="pyxforms.counter",
sources=["src/pyxforms/counter.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
dial = Extension(
"Pyxform.dial",
sources=["Pyxform/Modules/dial.c"],
name="pyxforms.dial",
sources=["src/pyxforms/dial.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
forms = Extension(
"Pyxform.forms",
sources=["Pyxform/Modules/forms.c"],
name="pyxforms.forms",
sources=["src/pyxforms/forms.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
frame = Extension(
"Pyxform.frame",
sources=["Pyxform/Modules/frame.c"],
name="pyxforms.frame",
sources=["src/pyxforms/frame.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
goodies = Extension(
"Pyxform.goodies",
sources=["Pyxform/Modules/goodies.c"],
name="pyxforms.goodies",
sources=["src/pyxforms/goodies.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
input = Extension(
"Pyxform.input",
sources=["Pyxform/Modules/input.c"],
name="pyxforms.input",
sources=["src/pyxforms/input.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
menu = Extension(
"Pyxform.menu",
sources=["Pyxform/Modules/menu.c"],
name="pyxforms.menu",
sources=["src/pyxforms/menu.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
objects = Extension(
"Pyxform.objects",
sources=["Pyxform/Modules/objects.c"],
name="pyxforms.objects",
sources=["src/pyxforms/objects.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
pixmaps = Extension(
"Pyxform.pixmaps",
sources=["Pyxform/Modules/pixmaps.c"],
name="pyxforms.pixmaps",
sources=["src/pyxforms/pixmaps.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
popups = Extension(
"Pyxform.popups",
sources=["Pyxform/Modules/popups.c"],
name="pyxforms.popups",
sources=["src/pyxforms/popups.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
positioner = Extension(
"Pyxform.positioner",
sources=["Pyxform/Modules/positioner.c"],
name="pyxforms.positioner",
sources=["src/pyxforms/positioner.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
slider = Extension(
"Pyxform.slider",
sources=["Pyxform/Modules/slider.c"],
name="pyxforms.slider",
sources=["src/pyxforms/slider.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
text = Extension(
"Pyxform.text",
sources=["Pyxform/Modules/text.c"],
name="pyxforms.text",
sources=["src/pyxforms/text.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
timer = Extension(
"Pyxform.timer",
sources=["Pyxform/Modules/timer.c"],
name="pyxforms.timer",
sources=["src/pyxforms/timer.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
xforms = Extension(
"Pyxform.xforms",
sources=["Pyxform/Modules/xforms.c"],
name="pyxforms.xforms",
sources=["src/pyxforms/xforms.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
xyplot = Extension(
"Pyxform.xyplot",
sources=["Pyxform/Modules/xyplot.c"],
name="pyxforms.xyplot",
sources=["src/pyxforms/xyplot.c"],
libraries=["forms"],
library_dirs=["/usr/local/lib"],
)
setup(
name="PyXForms",
version="0.2",
description="This is OLD code",
author="Roberto Alsina",
author_email="ralsina@netmanagers.com.ar",
ext_modules=[
bitmaps,
box,
@ -163,5 +136,4 @@ setup(
xforms,
xyplot,
],
packages=["Pyxform"],
)