Skip to content

Commit

Permalink
switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Sep 24, 2024
1 parent f9254b0 commit e332408
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 59 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Deploys to PyPi on new tags.
name: Build, test and publish

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build:
Expand All @@ -17,21 +17,18 @@ jobs:
- name: Rewrite version for dev if not tag
if: "!startsWith(github.ref, 'refs/tags/')"
run: |
perl -i -pe "s/__version__\s*=\s*'(.*?)(\.rc.*|\.a.*|\.post.*)?'/__version__='\1.dev0+${GITHUB_SHA::8}'/" setup.py
perl -i -pe "s/version\s*=\s*\"(.*?)(\.rc.*|\.a.*|\.post.*)?\"/version=\"\1.dev0+${GITHUB_SHA::8}\"/" pyproject.toml
- name: Note version
run: |
echo "PACKAGE_VERSION=$(python3 -- ./setup.py --version)" >> $GITHUB_ENV
- name: Set up Python 3.8
echo "PACKAGE_VERSION=$(tomlq '.project.version' pyproject.toml -r)" >> $GITHUB_ENV
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Upgrade pip
python-version: 3.12
- name: Build wheels
run: |
python -m pip install --upgrade pip
- name: Build Python wheels
uses: RalfG/[email protected]_x86_64
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
python3 -m pip install --upgrade pip build
python3 -m build
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -47,10 +44,10 @@ jobs:
uses: actions/download-artifact@v4
with:
name: wheels
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graft riptide/assets
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ["setuptools", "setuptools-rust"]
build-backend = "setuptools.build_meta"

[project]
name = "riptide-lib"
version = "0.9.0"
description = "Tool to manage development environments for web applications using containers - Library Package"
readme = "README.rst"
requires-python = ">=3.8"
license = { file = "LICENSE" }
authors = [
{ name = "Marco Köpcke", email = "[email protected]" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"configcrunch >= 1.0.3",
"schema >= 0.7",
"pyyaml >= 5.4",
"appdirs >= 1.4",
"janus >= 0.7",
"psutil >= 5.8",
"GitPython >= 3.1",
"pywinpty >= 0.5.5; sys_platform == 'win32'",
"python-hosts >= 0.4",
"python-dotenv >= 0.19.0"
]

[project.urls]
Repository = "https://github.com/theCapypara/riptide-lib"
Documentation = "https://riptide-docs.readthedocs.io"

[tool.setuptools.packages.find]
exclude = ["test_assets"]
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit e332408

Please sign in to comment.