-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9254b0
commit e332408
Showing
4 changed files
with
56 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
graft riptide/assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |