-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Modernize build methods and instructions So far, this works well enough to install the package "successfully." I haven't tested whether it actually works or not, or whether the git version number integration works properly, or whether you can make an EXE. (I used Python 3.10.6 on Windows 10 for testing so far. I know of issues with the spec file.) While I was here, I tried moving everything I could out of setup.py and into the new file format shared by all build systems. Maybe that was a bit unnecessary... But I figure pyproject.toml is easier to analyze with tools, for people who want to scour GitHub and identify security problems in popular packages and stuff like that. * Update CI to match the current build process progress And remove a line of setup.py that I accidentally added while debugging why some headers couldn't be found in the exhal folder... * Build EXEs and fix setuptools_scm version junk
- Loading branch information
1 parent
824dcc8
commit 7ac872b
Showing
13 changed files
with
93 additions
and
117 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ |
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,6 @@ | ||
# Required to provide version information to setuptools_scm if someone downloads | ||
# CoilSnake's code as an archive, instead of cloning with git. See | ||
# https://setuptools-scm.readthedocs.io/en/stable/usage/#builtin-mechanisms-for-obtaining-version-numbers | ||
# for more details. | ||
.git_archival.txt export-subst | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.idea | ||
/build | ||
/coilsnake_venv | ||
/dist | ||
/*.egg-info | ||
/.coverage | ||
|
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
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
include README.md | ||
recursive-include coilsnake/assets * | ||
recursive-include coilsnake/assets * | ||
recursive-include coilsnake/util/eb * |
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
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
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,31 @@ | ||
[build-system] | ||
# 62.1.0 changes the folder layout for built extensions -- we need the new layout | ||
# (Before that, 61 is the first version supporting pyproject.toml.) | ||
requires = ["setuptools >= 62.1", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "coilsnake" | ||
dynamic = ["version"] | ||
description = "CoilSnake" | ||
urls = {Homepage = "https://pk-hack.github.io/CoilSnake"} | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"Pillow>=3.0.0", | ||
"PyYAML>=3.11", | ||
"CCScriptWriter @ https://github.com/pk-hack/CCScriptWriter/tarball/master", | ||
"ccscript @ https://github.com/charasyn/ccscript_legacy/archive/refs/tags/v1.500.tar.gz", | ||
# ??? CoilSnake hasn't been tested on Mac in a while. Is this still needed? | ||
"pyobjc-framework-Cocoa; platform_system == 'Darwin'", | ||
] | ||
|
||
[project.scripts] | ||
coilsnake-cli = "coilsnake.ui.cli:main" | ||
# Comment out the next line to make CoilSnake launch with a terminal window on Windows | ||
[project.gui-scripts] | ||
coilsnake = "coilsnake.ui.gui:main" | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.setuptools_scm] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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