diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml deleted file mode 100644 index 7ba357a..0000000 --- a/.github/workflows/deploy-staging.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy CI/CD to Staging - -on: - push: - branches: - - staging - -jobs: - deploy: - runs-on: ubuntu-latest - timeout-minutes: 90 - - steps: - - name: Deploy to Staging - uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.STAGING_KEY }} - port: 22 - command_timeout: 30m - script_stop: true - script: | - set -x - cd /home/frappe/frappe-bench/apps/wiki - git pull upstream staging - cd /home/frappe/frappe-bench - bench setup requirements wiki - bench migrate - bench build --app wiki - bench clear-cache - bench restart diff --git a/.github/workflows/deploy-test-production.yml b/.github/workflows/deploy-test-production.yml deleted file mode 100644 index 8190809..0000000 --- a/.github/workflows/deploy-test-production.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy CI/CD to Test production - -on: - push: - branches: - - test-production - -jobs: - deploy: - runs-on: ubuntu-latest - timeout-minutes: 90 - - steps: - - name: Deploy to Test Production - uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.STAGING_KEY }} - port: 22 - command_timeout: 30m - script_stop: true - script: | - set -x - cd /home/frappe/test-production/apps/wiki - git pull upstream test-production - cd /home/frappe/test-production - bench setup requirements wiki - bench migrate - bench build --app wiki - bench clear-cache - bench restart diff --git a/pyproject.toml b/pyproject.toml index b757a53..f8da56d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,20 @@ +[project] +name = "wiki" +authors = [ + { name = "Frappe", email = "developers@frappe.io" } +] +description = "Simple Wiki App" +requires-python = ">=3.10" +readme = "README.md" +dynamic = ["version"] +dependencies = [ + "ghdiff", +] + +[build-system] +requires = ["flit_core >=3.4,<4"] +build-backend = "flit_core.buildapi" + [tool.black] line-length = 99 diff --git a/setup.py b/setup.py deleted file mode 100644 index 9e2d2b2..0000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -from setuptools import find_packages, setup - -with open("requirements.txt") as f: - install_requires = f.read().strip().split("\n") - -# get version from __version__ variable in wiki/__init__.py -from wiki import __version__ as version - -setup( - name="wiki", - version=version, - description="Simple Wiki App", - author="Frappe", - author_email="developers@frappe.io", - packages=find_packages(), - zip_safe=False, - include_package_data=True, - install_requires=install_requires, -)