-
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 pull request #2 from lang-m/modernise-setup
Remove old files, change structure
- Loading branch information
Showing
19 changed files
with
127 additions
and
232 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,32 @@ | ||
name: workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: install package | ||
run: pip install . | ||
|
||
# TODO move to pyproject.toml | ||
- name: install test dependencies | ||
run: pip install pycodestyle | ||
|
||
- name: style | ||
run: pycodestyle src/blaupause | ||
|
||
- name: test | ||
run: pytest |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Blaupause - Python package template | ||
Martin Lang<sup>1</sup> and Marijan Beg<sup>1</sup> | ||
|
||
<sup>1</sup> *Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, United Kingdom* | ||
|
||
| Description | Badge | | ||
| --- | --- | | ||
| Builds | [](https://ci.appveyor.com/project/lang-m/blaupause/branch/main)| | ||
| | [](https://travis-ci.org/lang-m/blaupause) | | ||
| Coverage | [](https://codecov.io/gh/lang-m/blaupause) | | ||
| Documentation | [](https://blaupause.readthedocs.io/en/latest/?badge=latest)| | ||
| Binder | [](https://mybinder.org/v2/gh/lang-m/blaupause/main?filepath=docs%2Fipynb%2Findex.ipynb) | | ||
| License | [](https://opensource.org/licenses/BSD-3-Clause) | | ||
| DOI | [](https://doi.org/10.5281/zenodo.4327500) | | ||
|
||
## About | ||
|
||
A sample Python-based package that can be used a tutorial for setting up a project. | ||
|
||
Demonstrated are: | ||
- Testing with pytest/doctests | ||
- continuous integration | ||
- Travis | ||
- Appveyor | ||
- soon: GitHub actions | ||
- code coverage | ||
- docker | ||
- make files | ||
- packaging | ||
- documentation | ||
- licensing | ||
|
||
It is available on Windows, MacOS, and Linux. It requires Python 3.8+. | ||
|
||
## Documentation | ||
|
||
APIs and tutorials are available in documentation. To access them, use the documentation badge in the table above. | ||
|
||
## Installation, testing, and upgrade | ||
|
||
We recommend installation using `conda` package manager. Instructions can be found in the documentation. | ||
|
||
## Binder | ||
|
||
This package can be used in the cloud via Binder. To access Binder, use the Binder badge in the table above. | ||
|
||
## Support | ||
|
||
If you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue in this repository. | ||
|
||
## License | ||
|
||
Licensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to the [LICENSE](LICENSE) file. | ||
|
||
## How to cite | ||
|
||
Please cite this package as: | ||
|
||
Martin Lang and Marijan Beg. Blaupause - Python package template. Zenodo. DOI: [10.5281/zenodo.4327500](http://doi.org/10.5281/zenodo.4327500) (2020). | ||
|
||
## Acknowledgements | ||
|
||
- EPSRC Programme grant on [Skyrmionics](http://www.skyrmions.ac.uk) (EP/N032128/1). |
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,63 +1,8 @@ | ||
# Blaupause - Python package template | ||
Martin Lang<sup>1</sup> and Marijan Beg<sup>1</sup> | ||
|
||
<sup>1</sup> *Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, United Kingdom* | ||
|
||
| Description | Badge | | ||
| --- | --- | | ||
| Builds | [](https://ci.appveyor.com/project/lang-m/blaupause/branch/main)| | ||
| | [](https://travis-ci.org/lang-m/blaupause) | | ||
| Coverage | [](https://codecov.io/gh/lang-m/blaupause) | | ||
| Documentation | [](https://blaupause.readthedocs.io/en/latest/?badge=latest)| | ||
| Binder | [](https://mybinder.org/v2/gh/lang-m/blaupause/main?filepath=docs%2Fipynb%2Findex.ipynb) | | ||
| License | [](https://opensource.org/licenses/BSD-3-Clause) | | ||
| DOI | [](https://doi.org/10.5281/zenodo.4327500) | | ||
|
||
## About | ||
|
||
A sample Python-based package that can be used a tutorial for setting up a project. | ||
|
||
Demonstrated are: | ||
- Testing with pytest/doctests | ||
- continuous integration | ||
- Travis | ||
- Appveyor | ||
- soon: GitHub actions | ||
- code coverage | ||
- docker | ||
- make files | ||
- packaging | ||
- documentation | ||
- licensing | ||
|
||
It is available on Windows, MacOS, and Linux. It requires Python 3.8+. | ||
|
||
## Documentation | ||
|
||
APIs and tutorials are available in documentation. To access them, use the documentation badge in the table above. | ||
|
||
## Installation, testing, and upgrade | ||
|
||
We recommend installation using `conda` package manager. Instructions can be found in the documentation. | ||
|
||
## Binder | ||
|
||
This package can be used in the cloud via Binder. To access Binder, use the Binder badge in the table above. | ||
|
||
## Support | ||
|
||
If you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue in this repository. | ||
|
||
## License | ||
|
||
Licensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to the [LICENSE](LICENSE) file. | ||
|
||
## How to cite | ||
|
||
Please cite this package as: | ||
|
||
Martin Lang and Marijan Beg. Blaupause - Python package template. Zenodo. DOI: [10.5281/zenodo.4327500](http://doi.org/10.5281/zenodo.4327500) (2020). | ||
|
||
## Acknowledgements | ||
|
||
- EPSRC Programme grant on [Skyrmionics](http://www.skyrmions.ac.uk) (EP/N032128/1). |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
|
||
[project] | ||
name = "blaupause" | ||
version = "0.1.3" | ||
dependencies = [ | ||
"pytest", | ||
] | ||
requires-python = ">=3.8" | ||
|
||
authors = [ | ||
{name="Martin Lang"}, | ||
{name="Marijan Beg"}, | ||
] | ||
description = "Example package used as a template for setting up Python packages/repositories." | ||
readme = "README.md" | ||
license = "BSD-3-Clause" | ||
license-files = ["LICENSE"] | ||
|
||
|
||
[project.urls] | ||
Homepage = "https://github.com/lang-m/blaupause" | ||
# Documentation |
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
Oops, something went wrong.