-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
2,484 additions
and
1,530 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,42 @@ | ||
version: '{branch}-{build}' | ||
build: off | ||
image: Visual Studio 2019 | ||
environment: | ||
global: | ||
COVERALLS_EXTRAS: '-v' | ||
COVERALLS_REPO_TOKEN: JVitTjQVdcRCicP5tvLOg0sAS0nSjGqJB | ||
matrix: | ||
- TOXENV: check | ||
TOXPYTHON: C:\Python39\python.exe | ||
PYTHON_HOME: C:\Python36 | ||
PYTHON_VERSION: '3.9' | ||
PYTHON_ARCH: '32' | ||
- TOXENV: py39 | ||
TOXPYTHON: C:\Python39\python.exe | ||
PYTHON_HOME: C:\Python39 | ||
PYTHON_VERSION: '3.9' | ||
PYTHON_ARCH: '32' | ||
WHEEL_PATH: .tox/dist | ||
- TOXENV: py39 | ||
TOXPYTHON: C:\Python39-x64\python.exe | ||
PYTHON_HOME: C:\Python39-x64 | ||
PYTHON_VERSION: '3.9' | ||
PYTHON_ARCH: '64' | ||
WHEEL_PATH: .tox/dist | ||
init: | ||
- ps: echo $env:TOXENV | ||
- ps: ls C:\Python* | ||
install: | ||
- '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt' | ||
- '%PYTHON_HOME%\Scripts\virtualenv --version' | ||
- '%PYTHON_HOME%\Scripts\pip --version' | ||
- '%PYTHON_HOME%\Scripts\tox --version' | ||
test_script: | ||
- cmd /E:ON /V:ON /C %PYTHON_HOME%\Scripts\tox | ||
on_failure: | ||
- ps: dir "env:" | ||
- ps: get-content .tox\*\log\* | ||
|
||
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker): | ||
# on_finish: | ||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |
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,24 @@ | ||
[bumpversion] | ||
current_version = 0.1.9 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
|
||
[bumpversion:file (badge):README.rst] | ||
search = /v{current_version}.svg | ||
replace = /v{new_version}.svg | ||
|
||
[bumpversion:file (link):README.rst] | ||
search = /v{current_version}...master | ||
replace = /v{new_version}...master | ||
|
||
[bumpversion:file:docs/conf.py] | ||
search = version = release = '{current_version}' | ||
replace = version = release = '{new_version}' | ||
|
||
[bumpversion:file:src/demandlib/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' |
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,71 @@ | ||
# This file exists so you can easily regenerate your project. | ||
# | ||
# `cookiepatcher` is a convenient shim around `cookiecutter` | ||
# for regenerating projects (it will generate a .cookiecutterrc | ||
# automatically for any template). To use it: | ||
# | ||
# pip install cookiepatcher | ||
# cookiepatcher gh:ionelmc/cookiecutter-pylibrary demandlib | ||
# | ||
# See: | ||
# https://pypi.org/project/cookiepatcher | ||
# | ||
# Alternatively, you can run: | ||
# | ||
# cookiecutter --overwrite-if-exists --config-file=demandlib/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary | ||
|
||
default_context: | ||
|
||
_extensions: ['jinja2_time.TimeExtension'] | ||
_template: 'gh:ionelmc/cookiecutter-pylibrary' | ||
allow_tests_inside_package: 'yes' | ||
appveyor: 'yes' | ||
c_extension_function: 'longest' | ||
c_extension_module: '_demandlib' | ||
c_extension_optional: 'no' | ||
c_extension_support: 'no' | ||
c_extension_test_pypi: 'no' | ||
c_extension_test_pypi_username: 'oemof' | ||
codacy: 'no' | ||
codacy_projectid: 'CODACY_ID' | ||
codeclimate: 'no' | ||
codecov: 'yes' | ||
command_line_interface: 'no' | ||
command_line_interface_bin_name: 'demandlib' | ||
coveralls: 'yes' | ||
coveralls_token: 'COVERALLS_TOKEN' | ||
distribution_name: 'demandlib' | ||
email: 'contact@oemof.org' | ||
full_name: 'oemof developer group' | ||
legacy_python: 'no' | ||
license: 'MIT license' | ||
linter: 'flake8' | ||
package_name: 'demandlib' | ||
pre_commit: 'no' | ||
project_name: 'oemof' | ||
project_short_description: 'Creating heat and power demand profiles from annual values.' | ||
pypi_badge: 'yes' | ||
pypi_disable_upload: 'no' | ||
release_date: 'today' | ||
repo_hosting: 'github.com' | ||
repo_hosting_domain: 'github.com' | ||
repo_name: 'demandlib' | ||
repo_username: 'oemof' | ||
requiresio: 'yes' | ||
scrutinizer: 'no' | ||
setup_py_uses_setuptools_scm: 'no' | ||
setup_py_uses_test_runner: 'no' | ||
sphinx_docs: 'yes' | ||
sphinx_docs_hosting: 'https://demandlib.readthedocs.io/' | ||
sphinx_doctest: 'no' | ||
sphinx_theme: 'sphinx-rtd-theme' | ||
test_matrix_configurator: 'yes' | ||
test_matrix_separate_coverage: 'yes' | ||
test_runner: 'pytest' | ||
travis: 'no' | ||
travis_osx: 'no' | ||
version: '0.1.9' | ||
version_manager: 'bump2version' | ||
website: 'oemof.org' | ||
year_from: '2016' | ||
year_to: '2021' |
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,4 +1,14 @@ | ||
[paths] | ||
source = src | ||
|
||
[run] | ||
omit = tests/* | ||
*example.py | ||
source = demandlib | ||
branch = true | ||
source = | ||
src | ||
tests | ||
parallel = true | ||
|
||
[report] | ||
show_missing = true | ||
precision = 2 | ||
omit = *migrations* |
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,20 @@ | ||
# see https://editorconfig.org/ | ||
root = true | ||
|
||
[*] | ||
# Use Unix-style newlines for most files (except Windows files, see below). | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
insert_final_newline = true | ||
indent_size = 4 | ||
charset = utf-8 | ||
|
||
[*.{bat,cmd,ps1}] | ||
end_of_line = crlf | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[*.tsv] | ||
indent_style = tab |
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,31 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS, Debian, Ubuntu, Windows10] | ||
- Python version [e.g. 3.8] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,10 @@ | ||
--- | ||
name: General issue | ||
about: General purpose | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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,13 @@ | ||
* Describe your pull request as transparent as possible | ||
* What functionality does it implement? | ||
* Where is it located? | ||
* How does the API look? | ||
... | ||
|
||
* Related issues? | ||
|
||
* Share your knowledge: Insights/Remarks | ||
|
||
* Other comments and questions | ||
|
||
* [] For new features: Remember the documentation! |
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,38 @@ | ||
name: Black | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
|
||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Python dependencies | ||
run: pip install black flake8 | ||
|
||
- name: Run linters | ||
uses: samuelmeuli/lint-action@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Enable linters | ||
black: true | ||
flake8: false | ||
# Mark the following line true if you want linters to attempt to autocorrect your code | ||
auto_fix: false | ||
git_name: "Greene Lab Linter" | ||
git_email: "csgreene@upenn.edu" |
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,37 @@ | ||
name: packaging | ||
|
||
on: | ||
# Make sure packaging process is not broken | ||
push: | ||
branches: [master, dev] | ||
pull_request: | ||
# Make a package for release | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools setuptools_scm twine wheel | ||
- name: Create packages | ||
run: python setup.py sdist bdist_wheel | ||
- name: Run twine check | ||
run: twine check dist/* | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: tox-gh-actions-dist | ||
path: dist |
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,52 @@ | ||
# NB: this name is used in the status badge | ||
name: tox checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
|
||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 5 * * 6" # 5:00 UTC every Saturday | ||
|
||
jobs: | ||
lint: | ||
name: ${{ matrix.toxenv }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
toxenv: | ||
- clean | ||
- check | ||
- docs | ||
|
||
steps: | ||
- name: Git clone | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ env.default_python || '3.9' }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "${{ env.default_python || '3.9' }}" | ||
|
||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.toxenv }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U setuptools wheel | ||
python -m pip install -U tox | ||
- name: Run ${{ matrix.toxenv }} | ||
run: python -m tox -e ${{ matrix.toxenv }} |
Oops, something went wrong.