Skip to content

Commit 6297ad4

Browse files
committed
Add initial project skeleton.
0 parents  commit 6297ad4

36 files changed

+1119
-0
lines changed

.appveyor.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
version: '{branch}-{build}'
2+
build: off
3+
environment:
4+
matrix:
5+
- TOXENV: check
6+
TOXPYTHON: C:\Python36\python.exe
7+
PYTHON_HOME: C:\Python36
8+
PYTHON_VERSION: '3.6'
9+
PYTHON_ARCH: '32'
10+
- TOXENV: py27,codecov
11+
TOXPYTHON: C:\Python27\python.exe
12+
PYTHON_HOME: C:\Python27
13+
PYTHON_VERSION: '2.7'
14+
PYTHON_ARCH: '32'
15+
- TOXENV: py27,codecov
16+
TOXPYTHON: C:\Python27-x64\python.exe
17+
PYTHON_HOME: C:\Python27-x64
18+
PYTHON_VERSION: '2.7'
19+
PYTHON_ARCH: '64'
20+
WINDOWS_SDK_VERSION: v7.0
21+
- TOXENV: py35,codecov
22+
TOXPYTHON: C:\Python35\python.exe
23+
PYTHON_HOME: C:\Python35
24+
PYTHON_VERSION: '3.5'
25+
PYTHON_ARCH: '32'
26+
- TOXENV: py35,codecov
27+
TOXPYTHON: C:\Python35-x64\python.exe
28+
PYTHON_HOME: C:\Python35-x64
29+
PYTHON_VERSION: '3.5'
30+
PYTHON_ARCH: '64'
31+
- TOXENV: py36,codecov
32+
TOXPYTHON: C:\Python36\python.exe
33+
PYTHON_HOME: C:\Python36
34+
PYTHON_VERSION: '3.6'
35+
PYTHON_ARCH: '32'
36+
- TOXENV: py36,codecov
37+
TOXPYTHON: C:\Python36-x64\python.exe
38+
PYTHON_HOME: C:\Python36-x64
39+
PYTHON_VERSION: '3.6'
40+
PYTHON_ARCH: '64'
41+
- TOXENV: py37,codecov
42+
TOXPYTHON: C:\Python37\python.exe
43+
PYTHON_HOME: C:\Python37
44+
PYTHON_VERSION: '3.7'
45+
PYTHON_ARCH: '32'
46+
- TOXENV: py37,codecov
47+
TOXPYTHON: C:\Python37-x64\python.exe
48+
PYTHON_HOME: C:\Python37-x64
49+
PYTHON_VERSION: '3.7'
50+
PYTHON_ARCH: '64'
51+
- TOXENV: py38,codecov
52+
TOXPYTHON: C:\Python38\python.exe
53+
PYTHON_HOME: C:\Python38
54+
PYTHON_VERSION: '3.8'
55+
PYTHON_ARCH: '32'
56+
- TOXENV: py38,codecov
57+
TOXPYTHON: C:\Python38-x64\python.exe
58+
PYTHON_HOME: C:\Python38-x64
59+
PYTHON_VERSION: '3.8'
60+
PYTHON_ARCH: '64'
61+
init:
62+
- ps: echo $env:TOXENV
63+
- ps: ls C:\Python*
64+
install:
65+
- '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt'
66+
- '%PYTHON_HOME%\Scripts\virtualenv --version'
67+
- '%PYTHON_HOME%\Scripts\easy_install --version'
68+
- '%PYTHON_HOME%\Scripts\pip --version'
69+
- '%PYTHON_HOME%\Scripts\tox --version'
70+
test_script:
71+
- cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd %PYTHON_HOME%\Scripts\tox
72+
on_failure:
73+
- ps: dir "env:"
74+
- ps: get-content .tox\*\log\*
75+
76+
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
77+
# on_finish:
78+
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

.bumpversion.cfg

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[bumpversion]
2+
current_version = 0.0.0
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:setup.py]
7+
search = version='{current_version}'
8+
replace = version='{new_version}'
9+
10+
[bumpversion:file:README.rst]
11+
search = v{current_version}.
12+
replace = v{new_version}.
13+
14+
[bumpversion:file:docs/conf.py]
15+
search = version = release = '{current_version}'
16+
replace = version = release = '{new_version}'
17+
18+
[bumpversion:file:src/py_dss_interface/__init__.py]
19+
search = __version__ = '{current_version}'
20+
replace = __version__ = '{new_version}'

.cookiecutterrc

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# This file exists so you can easily regenerate your project.
2+
#
3+
# `cookiepatcher` is a convenient shim around `cookiecutter`
4+
# for regenerating projects (it will generate a .cookiecutterrc
5+
# automatically for any template). To use it:
6+
#
7+
# pip install cookiepatcher
8+
# cookiepatcher gh:ionelmc/cookiecutter-pylibrary project-path
9+
#
10+
# See:
11+
# https://pypi.org/project/cookiepatcher
12+
#
13+
# Alternatively, you can run:
14+
#
15+
# cookiecutter --overwrite-if-exists --config-file=project-path/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary
16+
17+
default_context:
18+
19+
_extensions: ['jinja2_time.TimeExtension']
20+
_template: 'gh:ionelmc/cookiecutter-pylibrary'
21+
allow_tests_inside_package: 'no'
22+
appveyor: 'yes'
23+
c_extension_function: 'longest'
24+
c_extension_module: '_py_dss_interface'
25+
c_extension_optional: 'no'
26+
c_extension_support: 'no'
27+
c_extension_test_pypi: 'no'
28+
c_extension_test_pypi_username: 'PauloRadatz'
29+
codacy: 'no'
30+
codacy_projectid: '[Get ID from https://app.codacy.com/app/PauloRadatz/py_dss_interface/settings]'
31+
codeclimate: 'no'
32+
codecov: 'yes'
33+
command_line_interface: 'no'
34+
command_line_interface_bin_name: 'py-dss-interface'
35+
coveralls: 'no'
36+
coveralls_token: '[Required for Appveyor, take it from https://coveralls.io/github/PauloRadatz/py_dss_interface]'
37+
distribution_name: 'py-dss-interface'
38+
39+
full_name: 'Paulo Radatz'
40+
landscape: 'no'
41+
license: 'MIT license'
42+
linter: 'flake8'
43+
package_name: 'py_dss_interface'
44+
pre_commit: 'no'
45+
project_name: 'py_dss_interface'
46+
project_short_description: 'opendsspy is a Windows Python package providing access to OpenDSS direct dll version of OpenDSS.'
47+
pypi_badge: 'yes'
48+
pypi_disable_upload: 'no'
49+
release_date: 'today'
50+
repo_hosting: 'github.com'
51+
repo_hosting_domain: 'github.com'
52+
repo_name: 'py_dss_interface'
53+
repo_username: 'PauloRadatz'
54+
requiresio: 'yes'
55+
scrutinizer: 'no'
56+
setup_py_uses_setuptools_scm: 'no'
57+
setup_py_uses_test_runner: 'no'
58+
sphinx_docs: 'yes'
59+
sphinx_docs_hosting: 'https://py_dss_interface.readthedocs.io/'
60+
sphinx_doctest: 'no'
61+
sphinx_theme: 'sphinx-rtd-theme'
62+
test_matrix_configurator: 'no'
63+
test_matrix_separate_coverage: 'no'
64+
test_runner: 'pytest'
65+
travis: 'yes'
66+
travis_osx: 'no'
67+
version: '0.0.0'
68+
website: 'https://www.linkedin.com/in/pauloradatz/'
69+
year_from: '2020'
70+
year_to: '2020'

.coveragerc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[paths]
2+
source =
3+
src
4+
*/site-packages
5+
6+
[run]
7+
branch = true
8+
source =
9+
py_dss_interface
10+
tests
11+
parallel = true
12+
13+
[report]
14+
show_missing = true
15+
precision = 2
16+
omit = *migrations*

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# see https://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
charset = utf-8
11+
12+
[*.{bat,cmd,ps1}]
13+
end_of_line = crlf
14+
15+
[*.{yml,yaml}]
16+
indent_size = 2

.gitignore

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
*.py[cod]
2+
__pycache__
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
.eggs
14+
parts
15+
bin
16+
var
17+
sdist
18+
wheelhouse
19+
develop-eggs
20+
.installed.cfg
21+
lib
22+
lib64
23+
venv*/
24+
pyvenv*/
25+
pip-wheel-metadata/
26+
27+
# Installer logs
28+
pip-log.txt
29+
30+
# Unit test / coverage reports
31+
.coverage
32+
.tox
33+
.coverage.*
34+
.pytest_cache/
35+
nosetests.xml
36+
coverage.xml
37+
htmlcov
38+
39+
# Translations
40+
*.mo
41+
42+
# Mr Developer
43+
.mr.developer.cfg
44+
.project
45+
.pydevproject
46+
.idea
47+
*.iml
48+
*.komodoproject
49+
50+
# Complexity
51+
output/*.html
52+
output/*/index.html
53+
54+
# Sphinx
55+
docs/_build
56+
57+
.DS_Store
58+
*~
59+
.*.sw[po]
60+
.build
61+
.ve
62+
.env
63+
.cache
64+
.pytest
65+
.benchmarks
66+
.bootstrap
67+
.appveyor.token
68+
*.bak
69+
70+
# Mypy Cache
71+
.mypy_cache/

.readthedocs.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2+
version: 2
3+
sphinx:
4+
configuration: docs/conf.py
5+
formats: all
6+
python:
7+
install:
8+
- requirements: docs/requirements.txt
9+
- method: pip
10+
path: .

.travis.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
language: python
2+
dist: xenial
3+
cache: false
4+
env:
5+
global:
6+
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
7+
- SEGFAULT_SIGNALS=all
8+
- LANG=en_US.UTF-8
9+
matrix:
10+
include:
11+
- python: '3.6'
12+
env:
13+
- TOXENV=check
14+
- python: '3.6'
15+
env:
16+
- TOXENV=docs
17+
- env:
18+
- TOXENV=py27,codecov
19+
python: '2.7'
20+
- env:
21+
- TOXENV=py35,codecov
22+
python: '3.5'
23+
- env:
24+
- TOXENV=py36,codecov
25+
python: '3.6'
26+
- env:
27+
- TOXENV=py37,codecov
28+
python: '3.7'
29+
- env:
30+
- TOXENV=py38,codecov
31+
python: '3.8'
32+
- env:
33+
- TOXENV=pypy,codecov
34+
python: 'pypy'
35+
- env:
36+
- TOXENV=pypy3,codecov
37+
- TOXPYTHON=pypy3
38+
python: 'pypy3'
39+
before_install:
40+
- python --version
41+
- uname -a
42+
- lsb_release -a || true
43+
install:
44+
- python -mpip install --progress-bar=off tox -rci/requirements.txt
45+
- virtualenv --version
46+
- easy_install --version
47+
- pip --version
48+
- tox --version
49+
script:
50+
- tox -v
51+
after_failure:
52+
- more .tox/log/* | cat
53+
- more .tox/*/log/* | cat
54+
notifications:
55+
email:
56+
on_success: never
57+
on_failure: always

AUTHORS.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
Authors
3+
=======
4+
5+
* Paulo Radatz - https://www.linkedin.com/in/pauloradatz/

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
Changelog
3+
=========
4+
5+
0.0.0 (2020-06-12)
6+
------------------
7+
8+
* First release on PyPI.

0 commit comments

Comments
 (0)