Skip to content

Commit c129cc0

Browse files
authored
Merge branch 'main' into 82-githooks
2 parents 12c69ea + b8ce771 commit c129cc0

22 files changed

Lines changed: 227 additions & 295 deletions

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
python-version: '3.x'
1616
- name: Install dependencies
1717
run: |
18-
python -m pip install --upgrade pip
19-
pip install -r requirements.txt
18+
python3 -m pip install --upgrade pip setuptools
19+
python3 -m pip install .[dev]
2020
- name: Run tests
2121
run: |
2222
pytest

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ docs/apidocs
2020

2121
# Mac
2222
.DS_Store
23+
24+
# virtual environments
25+
env
26+
env3
27+
venv
28+
venv3

.mlc-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
},
77
{
88
"pattern": "\\{\\{"
9+
},
10+
{
11+
"pattern": "^https://doi.org/<replace-with-created-DOI>"
12+
},
13+
{
14+
"pattern": "^https://bestpractices.coreinfrastructure.org/projects/<replace-with-created-project-identifier>"
915
}
1016
],
1117
"replacementPatterns": [

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at j.vanderzwaan@esciencecenter.nl. All
58+
reported by contacting the project team at XXX@esciencecenter.nl. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The sections below outline the steps in each case.
3434
1. make sure the existing tests still work by running ``pytest``. If project tests fails use ``pytest --keep-baked-projects`` to keep generated project in /tmp/pytest-* and investigate;
3535
1. add your own tests (if necessary);
3636
1. update or expand the documentation;
37-
1. [push](http://rogerdudler.github.io/git-guide/) your feature branch to (your fork of) the Python Template repository on GitHub;
37+
1. push your feature branch to (your fork of) the Python Template repository on GitHub;
3838
1. create the pull request, e.g. following the instructions [here](https://help.github.com/articles/creating-a-pull-request/).
3939

4040
In case you feel like you've made a valuable contribution, but you don't know how to write or run tests for it, or how to generate the documentation: don't let this discourage you from making the pull request; we can help you! Just go ahead and submit the pull request, but keep in mind that you might be asked to append additional commits to your pull request.

README.dev.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ path/to/package/
1010
├── .gitignore
1111
├── pyproject.toml
1212
├── .prospector.yml
13-
├── CHANGELOG.rst
14-
├── CODE_OF_CONDUCT.rst
15-
├── CONTRIBUTING.rst
13+
├── CHANGELOG.md
14+
├── CODE_OF_CONDUCT.md
15+
├── CONTRIBUTING.md
1616
├── docs
1717
│   ├── conf.py
1818
│   ├── index.rst
@@ -24,8 +24,8 @@ path/to/package/
2424
│   ├── __init__.py
2525
│   ├── __version__.py
2626
│   └── package.py
27-
├── README.rst
28-
├── project_setup.rst
27+
├── README.md
28+
├── project_setup.md
2929
├── requirements.txt
3030
├── setup.cfg
3131
├── setup.py

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ an empty Python package. Features include:
1313
- [Default Github actions]({{cookiecutter.project_name}}/.github/workflows) for building, testing and deployment
1414
- Code style checking,
1515
- [Editorconfig]({{cookiecutter.project_name}}/.editorconfig),
16-
- Miscellaneous files, such as [Change log]({{cookiecutter.project_name}}/CHANGELOG.rst), [Code of Conduct]({{cookiecutter.project_name}}/CODE_OF_CONDUCT.rst), and [Contributing guidelines]({{cookiecutter.project_name}}/CONTRIBUTING.rst),
17-
- A [README]({{cookiecutter.project_name}}/README.rst) and [a separate document]({{cookiecutter.project_name}}/project_setup.md) with extensive documentation about project setup.
16+
- Miscellaneous files, such as [Change log]({{cookiecutter.project_name}}/CHANGELOG.md), [Code of Conduct]({{cookiecutter.project_name}}/CODE_OF_CONDUCT.md), and [Contributing guidelines]({{cookiecutter.project_name}}/CONTRIBUTING.md),
17+
- A [README]({{cookiecutter.project_name}}/README.md) and [a separate document]({{cookiecutter.project_name}}/project_setup.md) with extensive documentation about project setup.
1818
- Continuous code quality and code coverage reporting using [Sonarcloud](https://sonarcloud.io/)
1919

2020
## Badges
@@ -76,10 +76,10 @@ Good job! You have now generated the skeleton for your package:
7676

7777
```text
7878
my-python-project/
79-
├── CHANGELOG.rst
79+
├── CHANGELOG.md
8080
├── CITATION.cff
81-
├── CODE_OF_CONDUCT.rst
82-
├── CONTRIBUTING.rst
81+
├── CODE_OF_CONDUCT.md
82+
├── CONTRIBUTING.md
8383
├── docs
8484
│ ├── conf.py
8585
│ ├── index.rst
@@ -96,7 +96,7 @@ my-python-project/
9696
│ └── __version__.py
9797
├── NOTICE
9898
├── project_setup.md
99-
├── README.rst
99+
├── README.md
100100
├── setup.cfg
101101
├── setup.py
102102
└── tests

pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.cfg

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# see documentation, e.g.
2+
# - https://packaging.python.org/tutorials/packaging-projects/#configuring-metadata
3+
# - https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
4+
# - https://www.python.org/dev/peps/pep-0314/
5+
6+
7+
[metadata]
8+
author = Netherlands eScience Center
9+
classifiers =
10+
Development Status :: 2 - Pre-Alpha
11+
Intended Audience :: Developers
12+
License :: OSI Approved :: Apache Software License
13+
Natural Language :: English
14+
Programming Language :: Python :: 3
15+
Programming Language :: Python :: 3.6
16+
Programming Language :: Python :: 3.7
17+
Programming Language :: Python :: 3.8
18+
Programming Language :: Python :: 3.9
19+
description = Cookiecutter template to initialize Python projects in accordance with Netherlands eScience Center best practices
20+
long_description = file: README.md
21+
long_description_content_type = text/markdown
22+
name = Netherlands eScience Center Python Template
23+
project_urls =
24+
Bug Tracker = https://github.com/NLeSC/python-template/issues
25+
url = https://github.com/NLeSC/python-template
26+
version = 0.2.0
27+
28+
29+
[options]
30+
zip_safe = False
31+
include_package_data = True
32+
packages =
33+
install_requires =
34+
cookiecutter==1.7.2
35+
36+
[options.data_files]
37+
# This section requires setuptools>=40.6.0
38+
# It remains empty for now
39+
# Check if MANIFEST.in works for your purposes
40+
41+
42+
[options.extras_require]
43+
dev =
44+
pytest<5.0.0,>=3.3.0
45+
pytest-cookies
46+
47+
48+
[tool:pytest]
49+
testpaths = tests
50+
norecursedirs = .git .github hooks {{cookiecutter.project_name}}

0 commit comments

Comments
 (0)