-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert from flit to setuptools. (GitHub #3)
- Loading branch information
1 parent
af0efcb
commit 173ef88
Showing
10 changed files
with
64 additions
and
30 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 |
---|---|---|
|
@@ -94,7 +94,7 @@ jobs: | |
git config user.email "${{ github.triggering_actor }}@users.noreply.github.com" | ||
git pull | ||
- name: Publish to Test PyPi | ||
uses: pypa/[email protected].3 | ||
uses: pypa/[email protected].4 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
|
@@ -129,7 +129,7 @@ jobs: | |
- name: Run post-publish steps | ||
run: vjer release | ||
- name: Publish to PyPi | ||
uses: pypa/[email protected].3 | ||
uses: pypa/[email protected].4 | ||
with: | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
- name: Upload released artifacts | ||
|
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
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,13 +1,14 @@ | ||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "git-stream" | ||
description = "Git Stream Implementation" | ||
authors = [{ name = "Jeffery G. Smith", email = "[email protected]" }] | ||
readme = "DOCUMENTATION.md" | ||
license = { file = "LICENSE" } | ||
dynamic = ["version", "description"] | ||
dynamic = ["version"] | ||
|
||
requires-python = "~=3.12" | ||
keywords = ["python", "programming", "utilities"] | ||
|
@@ -23,9 +24,7 @@ classifiers = [ | |
"Natural Language :: English", | ||
] | ||
|
||
dependencies = [ | ||
"BatCave" | ||
] | ||
dependencies = ["BatCave"] | ||
|
||
[project.optional-dependencies] | ||
dev = ["vjer", "bumpver"] | ||
|
@@ -41,6 +40,12 @@ documentation = "https://git-stream.readthedocs.io" | |
repository = "https://github.com/arisilon/git-stream/" | ||
changelog = "https://github.com/arisilon/git-stream/blob/main/CHANGELOG.md" | ||
|
||
[tool.setuptools] | ||
packages = ["git_stream"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "git_stream.__version__" } | ||
|
||
[tool.flake8] | ||
max-line-length = 200 | ||
ignore = ["ANN002", "ANN003", "ANN101", "ANN204", "ANN401"] | ||
|
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,8 +1,3 @@ | ||
$ErrorActionPreference = 'Stop' | ||
Set-StrictMode -Version Latest | ||
|
||
python -m pip install --upgrade pip | ||
pip install --upgrade --upgrade-strategy eager setuptools wheel | ||
pip install --upgrade --upgrade-strategy eager flit | ||
pip freeze | ForEach-Object{$_.split('==')[0]} | ForEach-Object{pip install --upgrade $_} | ||
flit install --only-deps --deps all | ||
& $PSScriptRoot\update-env-core.ps1 |
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 @@ | ||
python -m pip install --upgrade pip | ||
pip install --upgrade --upgrade-strategy eager setuptools wheel | ||
pip install --upgrade --upgrade-strategy eager .[dev] |
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,8 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
python -m pip install --upgrade pip | ||
pip install --upgrade --upgrade-strategy eager setuptools wheel | ||
pip install --upgrade --upgrade-strategy eager flit | ||
pip freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install --upgrade | ||
flit install -s --only-deps --deps all | ||
SCRIPT_DIR="" | ||
bash $(dirname "$(realpath "$0")")/update-env-core.ps1 |
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