Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions third_party/PySpice-org/PySpice/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://git-scm.com/docs/gitattributes

# *.cir text eol=lf
# *.lib text eol=lf
# *.mod text eol=lf

*.py text eol=lf
*.rst text eol=lf
*.yml text eol=lf
46 changes: 46 additions & 0 deletions third_party/PySpice-org/PySpice/.github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at pyspice at domain name fabrice-salvaire.fr. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
3 changes: 3 additions & 0 deletions third_party/PySpice-org/PySpice/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PySpice is an open-source project, and relies on its community of users to keep getting better.

To read further, look at this page https://pyspice.fabrice-salvaire.fr/development.html
7 changes: 7 additions & 0 deletions third_party/PySpice-org/PySpice/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Environment (OS, Python version, PySpice version, simulator)

### Expected Behaviour

### Actual Behaviour

### Steps to reproduce the behaviour
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To make it easier to merge your pull request, you should divide your PR into smaller and easier-to-verify units.

Please do not make a pull requests with a lot of modifications which are difficult to check. If I merge
pull requests blindly then there is a high risk this software will become a mess quickly for everybody.
3 changes: 3 additions & 0 deletions third_party/PySpice-org/PySpice/.github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
There is no mailing list or forum actually, so you can either contact me or fill an issue on Github.

If you encounter an issue, please fill an issue.
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '45 23 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
43 changes: 43 additions & 0 deletions third_party/PySpice-org/PySpice/.github/workflows/pyspice-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Pyspice Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8]

steps:
- uses: actions/checkout@v2
- 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
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Install PySpice
run: python setup.py install
# - name: Run Tox
# run: tox -e py
- name: Run Unit-Tests
run: pytest unit-test
# - name: Run examples
# run: pyterate --only-run
# - name: Make examples RST
# run: |
# # --skip-rst --skip-external-figure --skip-notebook
# pyterate --skip-external-figure --skip-notebook
130 changes: 130 additions & 0 deletions third_party/PySpice-org/PySpice/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# -*- mode: Conf -*-

####################################################################################################

*.stderr
*.stdout
*/tex/auto
*~
__pycache__
du.log
parser.out
parsetab.py

####################################################################################################
#
# Secrets
#

doc/pelican/SECRET_CONFIG.py
tasks/anaconda-login.txt
tasks/SECRET_CONFIG.py

####################################################################################################

MANIFEST

####################################################################################################

.cache/
.pytest_cache/
.tox/
PySpice.egg-info/
build/
dist/

doc/logo/logo-v1.jpg
doc/logo/logo-v1.png
doc/logo/logo-v2.jpg
doc/logo/logo-v2.png
doc/logo/logo.png

doc/pelican/output
doc/pelican/pelican-plugins
doc/pelican/pelican-themes
doc/pelican/theme/.yarnclean
doc/pelican/theme/node_modules
doc/pelican/theme/static/css/base.css
doc/pelican/theme/static/css/libs/bootstrap/bootstrap-grid.css
doc/pelican/theme/static/css/libs/bootstrap/bootstrap-reboot.css
doc/pelican/theme/static/css/libs/bootstrap/bootstrap.css
doc/pelican/theme/static/css/libs/fontawesome/brands.css
doc/pelican/theme/static/css/libs/fontawesome/fontawesome.css
doc/pelican/theme/static/css/libs/fontawesome/regular.css
doc/pelican/theme/static/css/libs/fontawesome/solid.css
doc/pelican/theme/static/css/libs/fontawesome/v4-shims.css
doc/pelican/theme/yarn-error.log
doc/pelican/theme/yarn.lock

doc/sphinx/build/
doc/sphinx/source/api/
doc/sphinx/source/examples/

####################################################################################################

examples/spice-examples/eg6.dat
examples/spice-examples/gnucap.cir
examples/spice-examples/mosfet-characterization.cir
examples/spice-examples/ring-modulator.cir
examples/spice-examples/xyce-error.cir
examples/spice-examples/xyce-error.cir.FD.prn
examples/spice-examples/xyce-raw.data
examples/spice-examples/xyce-test.cir
examples/spice-examples/xyce-test2.cir
examples/spice-examples/xyce-test2.csv

####################################################################################################

no-git

PySpice/Spice/notes.txt
PySpice/Spice/rf.diff
PySpice/Unit/numpy-notes.txt

__TRASH__/

doc/extern/
doc/logo/logo-square.png
doc/sphinx/source/-to-be-removed.txt
doc/sphinx/source/_static/stargazer.png

examples/diode/tex/auto/
examples/libraries/2N2907A.SP3.TXT
examples/libraries/2N6035.SP3
examples/libraries/2N6038.SP3
examples/libraries/Infineon-SimulationModel_OptiMOS_PowerMOSFET_PSpice_20V_Complementary-SM-v01_00-EN.zip
examples/libraries/Infineon-SimulationModel_OptiMOS_PowerMOSFET_PSpice_20V_N-Channel-SM-v01_00-EN.zip
examples/libraries/Infineon-SimulationModel_OptiMOS_PowerMOSFET_PSpice_20V_P-Channel-SM-v01_00-EN.zip
examples/libraries/S_AFBJT*
examples/libraries/S_bjtmir.lib
examples/power-supplies/notes/
examples/power-supplies/references/
examples/spice-parser/kicad-pyspice-example/kicad-pyspice-example.bak

issues/Tubemods/
issues/internal-parameters/
issues/multi-shared.py
issues/nazir/
issues/warning-example/

examples/c-examples/ngspice-shared/log
examples/c-examples/ngspice-shared/sharedspice.h

resources

unit-test/test.py

anaconda-recipe/conda-bld
doc/pelican/BUGS.md

examples/c-examples/ngspice_cb/ng_shared_test/ng_shared_test.cbp
examples/c-examples/ngspice_cb/ng_shared_test/ng_shared_test.depend
examples/c-examples/ngspice_cb/ng_shared_test/ng_shared_test.layout
examples/c-examples/ngspice_cb/ng_shared_test_sl/libngspice.dll.a
examples/c-examples/ngspice_cb/ng_shared_test_sl/ng_shared_test_sl.cbp
examples/c-examples/ngspice_cb/ng_shared_test_sl/ng_shared_test_sl.depend
examples/c-examples/ngspice_cb/ng_shared_test_sl/ng_shared_test_sl.layout
examples/c-examples/ngspice_cb/ng_shared_test_sl_v/
examples/c-examples/ngspice_cb/ng_shared_test_v/

Spice64_dll/
6 changes: 6 additions & 0 deletions third_party/PySpice-org/PySpice/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "pyspice-feedstock"]
path = pyspice-feedstock
url = https://github.com/conda-forge/pyspice-feedstock
[submodule "ngspice-feedstock"]
path = ngspice-feedstock
url = https://github.com/conda-forge/ngspice-feedstock.git
Loading