forked from GrafeasGroup/blossom
-
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.
Merge branch 'GrafeasGroup:master' into master
- Loading branch information
Showing
251 changed files
with
1,589 additions
and
1,399 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
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,42 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10.x' | ||
- uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
- name: Install Dependencies | ||
run: | | ||
pip install --upgrade pip | ||
sudo apt-get install libjpeg8 libjpeg-dev libpng-dev libpq-dev -y | ||
poetry install | ||
- name: Add CURRENT_TIME env property | ||
# the smart thing to do here would be to use the commit hash, but | ||
# github releases are ALPHABETIZED, so a commit hash of `abcdef` will | ||
# not be listed as the latest release if `defabc` came before. (╥﹏╥) | ||
run: echo "CURRENT_TIME_VERSION=v$(date '+%s')" >> $GITHUB_ENV | ||
- name: Build the sucker | ||
run: | | ||
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" blossom/__init__.py | ||
make build | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "build/blossom.pyz" | ||
body: "It's releasin' time" | ||
generateReleaseNotes: true | ||
tag: ${{ env.CURRENT_TIME_VERSION }} | ||
commit: master | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,35 @@ | ||
name: Build blossom.pyz and test | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10.x' | ||
- uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
- name: Install Dependencies | ||
run: | | ||
pip install --upgrade pip | ||
sudo apt-get install libjpeg8 libjpeg-dev libpng-dev libpq-dev -y | ||
poetry install | ||
- name: Add CURRENT_TIME env property | ||
# the smart thing to do here would be to use the commit hash, but | ||
# github releases are ALPHABETIZED, so a commit hash of `abcdef` will | ||
# not be listed as the latest release if `defabc` came before. (╥﹏╥) | ||
run: echo "CURRENT_TIME_VERSION=v$(date '+%s')" >> $GITHUB_ENV | ||
- name: Build the sucker | ||
run: | | ||
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" blossom/__init__.py | ||
make build | ||
- name: Remove source to make sure it doesn't interfere with the tests | ||
run: rm -rf blossom/ | ||
- name: Run selfcheck on compiled binary | ||
run: ./build/blossom.pyz selfcheck |
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 |
---|---|---|
|
@@ -106,3 +106,7 @@ venv.bak/ | |
|
||
static/ | ||
.idea/* | ||
|
||
# packaging artifacts | ||
setup.py | ||
blossom.pyz |
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 @@ | ||
graft blossom |
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,12 @@ | ||
setup: | ||
poetry run python manage.py collectstatic --noinput --settings=blossom.settings.testing > /dev/null | ||
poetry run poetry2setup > setup.py | ||
|
||
build: setup shiv | ||
|
||
clean: | ||
rm setup.py | ||
|
||
shiv: | ||
mkdir -p build | ||
poetry run shiv -c blossom -o build/blossom.pyz . --compressed |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
"""Metadata about Blossom. Nothing to see here.""" | ||
|
||
import os | ||
|
||
import toml | ||
|
||
try: | ||
with open( | ||
os.path.join(os.path.dirname(__file__), "..", "pyproject.toml"), "r" | ||
) as f: | ||
__version__ = toml.load(f)["tool"]["poetry"]["version"] | ||
except OSError: | ||
__version__ = "unknown" | ||
pass | ||
__version__ = "?????" # will be replaced by CI pipeline |
File renamed without changes.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class ApiConfig(AppConfig): | ||
name = "api" | ||
name = "blossom.api" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.