-
Notifications
You must be signed in to change notification settings - Fork 1
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
ede3907
commit 6c4739a
Showing
13 changed files
with
119 additions
and
39 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 |
---|---|---|
|
@@ -25,7 +25,6 @@ mypy.ini | |
.gitignore | ||
.gitlab-ci.yml | ||
.python-version | ||
README.md | ||
.hooks | ||
.lets | ||
helm | ||
|
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,28 @@ | ||
name: Build & publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python with PDM ${{ matrix.python-version }} | ||
uses: pdm-project/setup-pdm@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Build and copy UI bundle | ||
run: ./scripts/build-copy-ui-dist.sh | ||
|
||
- name: Upload package to pypi.org | ||
run: pdm publish -u "__token__" -P ${{ secrets.PYPI_TOKEN }} |
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
- reopened | ||
|
||
jobs: | ||
test-web: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -22,5 +22,19 @@ jobs: | |
- name: Install lets | ||
uses: lets-cli/[email protected] | ||
|
||
- name: Run test | ||
- name: Set up Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
cache-dependency-path: ./ui/package-lock.json | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
working-directory: ./ui | ||
run: npm install | ||
|
||
- name: Build UI | ||
run: lets build-copy-ui-bundle | ||
|
||
- name: Run server tests | ||
run: lets test |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.0.0" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
[project] | ||
name = "evo-featureflags" | ||
version = "1.0.0" | ||
name = "evo-featureflags-server" | ||
dynamic = ["version"] | ||
description = "Feature flags server" | ||
readme = "README.md" | ||
authors = [ | ||
{name = "d.zakharchuk", email = "[email protected]"}, | ||
{name = "m.kindritskiy", email = "[email protected]"}, | ||
{name = "Vladimir Magamedov", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"evo-featureflags-protobuf==0.3.0", | ||
"grpclib==0.4.5", | ||
"grpclib==0.4.6", | ||
"hiku==0.7.1", | ||
"protobuf<4.0.0", | ||
"sqlalchemy[mypy]==1.4.42", | ||
|
@@ -44,7 +45,12 @@ build-backend = "pdm.backend" | |
|
||
[tool] | ||
|
||
[tool.pdm.version] | ||
source = "file" | ||
path = "featureflags/__init__.py" | ||
|
||
[tool.pdm.scripts] | ||
release = "./scripts/release.sh" | ||
test = "python -m pytest {args}" | ||
docs = "sphinx-build -a -b html docs public" | ||
ruff = "ruff check featureflags {args} --fix" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -e | ||
USAGE="Usage: VERSION=<> MESSAGE=<> pdm run release" | ||
|
||
if [ -z "${VERSION}" ]; then | ||
echo "$USAGE" | ||
echo "VERSION is not set" | ||
exit 1 | ||
fi | ||
if [ -z "${MESSAGE}" ]; then | ||
echo "$USAGE" | ||
echo "MESSAGE is not set" | ||
exit 1 | ||
fi | ||
|
||
echo "Releasing ${VERSION} with message: ${MESSAGE}" | ||
|
||
echo "__version__ = \"${VERSION}\"" > featureflags/__init__.py | ||
git add featureflags/__init__.py | ||
git commit -m "Release ${VERSION}" | ||
|
||
git tag -a v${VERSION} -m "${MESSAGE}" | ||
git push origin main --tags |