Skip to content

Commit

Permalink
Fix & Chore: Fix symlink; Update project files
Browse files Browse the repository at this point in the history
- Fix temp dir symlink issue
- Migrate from 'setup.py' to 'pyproject.toml'
- Remove upper version limit on 'rope'
- Upgrade setuptools
- Update Makefile commands for dev convenience
  • Loading branch information
dave-msk committed Sep 29, 2024
1 parent b4392b5 commit e7f1d5d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 86 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
all: dev
all: clean build

build: clean
python setup.py bdist_wheel

dev: clean
python setup.py develop
build:
python -m build -w

clean:
pip uninstall merak -y
rm -rf build dist merak.egg-info
rm -rf build/ dist/ merak.egg-info/

install:
pip install setuptools build
pip install .
57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[build-system]
requires = ["setuptools >= 72.1.0"]
build-backend = "setuptools.build_meta"

[project]
name = "merak"
version = "0.3.2"
authors = [
{name = "(David) Siu-Kei Muk", email = "david.muk@proton.me"},
]
license = {file = "LICENSE"}
description = "Python binary package builder (via Cython)"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">= 3.7"
keywords = ["merak", "cython", "binary", "package", "build"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Cython",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Compilers"
]

dynamic = ["dependencies"]

[project.scripts]
merak = "merak.main:main"

[project.urls]
Repository = "https://github.com/dave-msk/merak"

[tool.setuptools]
include-package-data = true

[tool.setuptools.package-data]
merak = ["data/*"]

[tool.setuptools.packages.find]
include = ["merak", "merak.*"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cement (>=3.0.4, <4.0.0)
colorlog (>=4.6.2, <5.0.0)
cython (>=0.29.21)
rope (>=0.19.0, <1.0.0)
setuptools (>=51.0.0)
absolufy-imports (>=0.3.1, <0.4.0)
cement (>=3.0.4, <4.0.0)
colorlog (>=4.6.2)
cython (>=3.0.0)
rope (>=1.0.0)
setuptools (>=72.1.0)
73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit e7f1d5d

Please sign in to comment.