-
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.
#306 Migratie pyproject + GH Actions
- Loading branch information
Showing
7 changed files
with
150 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
feature: ['feature/*', 'feat/*'] | ||
fix: ['bugfix/*', 'fix/*'] | ||
test: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: PR Labeler | ||
on: | ||
pull_request: | ||
types: [opened] | ||
branches: | ||
- 'develop' | ||
- 'epic' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pr-labeler: | ||
permissions: | ||
contents: read # for TimonVS/pr-labeler-action to read config file | ||
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: TimonVS/pr-labeler-action@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
configuration-path: .github/pr-labeler.yml |
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,39 @@ | ||
name: pyoes | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHON_VERSION: "3.11" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
python setup.py develop | ||
- name: Run checks and tests | ||
run: | | ||
./check_versions.sh | ||
py.test --cov pyoes --cov-report term-missing | ||
- name: Upload coverage to Coveralls | ||
run: coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_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,28 @@ | ||
pyoes: Pyramid OE style | ||
======================= | ||
|
||
.. image:: https://travis-ci.org/OnroerendErfgoed/pyoes.png | ||
:target: https://travis-ci.org/OnroerendErfgoed/pyoes | ||
.. image:: https://coveralls.io/repos/OnroerendErfgoed/pyoes/badge.png?branch=master | ||
:target: https://coveralls.io/r/OnroerendErfgoed/pyoes | ||
|
||
.. image:: https://readthedocs.org/projects/pyoes/badge/?version=latest | ||
:target: https://readthedocs.org/projects/pyoes/?badge=latest | ||
:alt: Documentation Status | ||
.. image:: https://badge.fury.io/py/pyoes.png | ||
:target: http://badge.fury.io/py/pyoes | ||
|
||
Pyoes helps to share layout between different websites and applications of | ||
Onroerend Erfgoed (Flanders Heritage). | ||
|
||
More information about this library can be found in the docs `folder`. These can | ||
be build using `Sphinx <http://sphinx-doc.org>`_. | ||
|
||
.. code-block:: bash | ||
|
||
# activate your virtual env | ||
$ pip install -r requirements-dev.txt | ||
$ cd docs | ||
$ make html | ||
# You can also build a pdf, provided you have the correct latex toolchain installed. | ||
$ make latexpdf |
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,58 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
version = "0.22.0" | ||
name = "pyoes" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Flanders Heritage Agency", email = "ict@onroerenderfgoed.be" }, | ||
] | ||
description = "pyoes" | ||
requires-python = ">=3.10,<3.12" | ||
keywords = ["pyramid", "sass", "compass", "style", "css", "jinja2", "templates"] | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Framework :: Pyramid", | ||
] | ||
dependencies = [ | ||
"pyramid==2.0.2", | ||
"pyramid-jinja2==2.10", | ||
"MarkupSafe==2.1.3", | ||
"Jinja2==3.1.4", | ||
"python-dateutil==2.8.2" | ||
] | ||
|
||
[project.optional-dependencies] | ||
|
||
dev = [ | ||
"waitress==2.1.2"" | ||
"Sphinx==7.1.2", | ||
"sphinxcontrib-httpdomain==1.8.1, | ||
"sphinx-rtd-theme==2.0.0", | ||
"sphinxcontrib-plantuml==0.27", | ||
"oe-sphinx-theme==0.4.0", | ||
"pytest==7.4.3", | ||
"pytest-cov==4.1.0", | ||
"coveralls==3.3.1", | ||
"pep8==1.7.1" | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
# In the wheel we want to have toelatingen_archeologie in the root as a python module. | ||
packages = [ | ||
"/pyoes", | ||
] | ||
|
||
[project.entry-points."paste.app_factory"] | ||
main = "pyoes:main" | ||
|
||
[project.entry-points."pyramid.scaffold"] | ||
pyoes = "pyoes.scaffolds:PyoesTemplate" | ||
pyoesAdmin = "pyoes.scaffolds:PyoesAdminTemplate" | ||
pyoesProces = "pyoes.scaffolds:PyoesProcesTemplate" | ||
|
||
[tool.hatch.metadata] | ||
# This allows us to use github links as dependencies | ||
allow-direct-references = true |