build!: declarative builds
This commit is contained in:
parent
56c6a709cd
commit
20f85195f4
2
.github/workflows/patch.yml
vendored
2
.github/workflows/patch.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
2
.github/workflows/server-tests-mariadb.yml
vendored
2
.github/workflows/server-tests-mariadb.yml
vendored
@ -74,7 +74,7 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
2
.github/workflows/server-tests-postgres.yml
vendored
2
.github/workflows/server-tests-postgres.yml
vendored
@ -61,7 +61,7 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
@ -32,4 +32,4 @@ erpnext/patches/ @deepeshgarg007 @nextchamp-saqib @marination @an
|
|||||||
erpnext/public/ @nextchamp-saqib @marination
|
erpnext/public/ @nextchamp-saqib @marination
|
||||||
|
|
||||||
.github/ @ankush
|
.github/ @ankush
|
||||||
requirements.txt @gavindsouza
|
pyproject.toml @gavindsouza @ankush
|
||||||
|
@ -1,3 +1,32 @@
|
|||||||
|
[project]
|
||||||
|
name = "erpnext"
|
||||||
|
authors = [
|
||||||
|
{ name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io"}
|
||||||
|
]
|
||||||
|
description = "Open Source ERP"
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
readme = "README.md"
|
||||||
|
dynamic = ["version"]
|
||||||
|
dependencies = [
|
||||||
|
# Core dependencies
|
||||||
|
"pycountry~=20.7.3",
|
||||||
|
"python-stdnum~=1.16",
|
||||||
|
"Unidecode~=1.2.0",
|
||||||
|
"redisearch~=2.1.0",
|
||||||
|
|
||||||
|
# integration dependencies
|
||||||
|
"gocardless-pro~=1.22.0",
|
||||||
|
"googlemaps",
|
||||||
|
"plaid-python~=7.2.1",
|
||||||
|
"python-youtube~=0.8.0",
|
||||||
|
"taxjar~=1.9.2",
|
||||||
|
"tweepy~=3.10.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["flit_core >=3.4,<4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 99
|
line-length = 99
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
# frappe # https://github.com/frappe/frappe is installed during bench-init
|
|
||||||
gocardless-pro~=1.22.0
|
|
||||||
googlemaps
|
|
||||||
plaid-python~=7.2.1
|
|
||||||
pycountry~=20.7.3
|
|
||||||
python-stdnum~=1.16
|
|
||||||
python-youtube~=0.8.0
|
|
||||||
taxjar~=1.9.2
|
|
||||||
tweepy~=3.10.0
|
|
||||||
Unidecode~=1.2.0
|
|
||||||
redisearch~=2.1.0
|
|
25
setup.py
25
setup.py
@ -1,23 +1,6 @@
|
|||||||
from setuptools import setup, find_packages
|
# TODO: Remove this file when v15.0.0 is released
|
||||||
import re, ast
|
from setuptools import setup
|
||||||
|
|
||||||
# get version from __version__ variable in erpnext/__init__.py
|
name = "frappe"
|
||||||
_version_re = re.compile(r"__version__\s+=\s+(.*)")
|
|
||||||
|
|
||||||
with open("requirements.txt") as f:
|
setup()
|
||||||
install_requires = f.read().strip().split("\n")
|
|
||||||
|
|
||||||
with open("erpnext/__init__.py", "rb") as f:
|
|
||||||
version = str(ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)))
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="erpnext",
|
|
||||||
version=version,
|
|
||||||
description="Open Source ERP",
|
|
||||||
author="Frappe Technologies",
|
|
||||||
author_email="info@erpnext.com",
|
|
||||||
packages=find_packages(),
|
|
||||||
zip_safe=False,
|
|
||||||
include_package_data=True,
|
|
||||||
install_requires=install_requires,
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user